Invoke function
Changed onRun the specified function with the provided input and return its result. Use version to select a specific function version, parent to attach the call to a trace, and stream to receive results in the Braintrust SSE format.
Request
- Base URLhttps://api.braintrust.dev
- Auth
- HTTP bearer
- or none
Path parameters
Function id
Request body
Response
Function invocation response. Scorer results follow the ScoreResult schema: a single score defaults to the function name when unnamed; arrays require a unique name for every score.
Changes
- breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
/////became not nullable - breaking
the request property
/////became not nullable - breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
///became not nullable - breaking
the request property
became not nullable - breaking
the request property
/became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
/became not nullable - breaking
the request property
//became not nullable - breaking
the request property
///became not nullable - breaking
the request property
//became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the request property
became not nullable
- breaking
- info
added the new optional request property
- info