Back to Functions
Create
Function Definition Editor
Build composable scoring pipelines. Functions execute tasks (Vector Completions or nested Functions) and combine results using expressions.
Functions are GitHub-hosted
Save the generated JSON as function.json at your repository root. Reference it as owner/repo in API calls.
Function Type
Input Maps
Transform input into 2D arrays for mapped task execution
No input maps defined. Add one to enable mapped task execution.
Tasks
Add Vector Completions or nested Function calls
No tasks defined. Add a Vector Completion or Function task.
Output Expression
Compute final result from input and task outputs. Available: input, tasks
Output must be a number in [0, 1]
JSON Preview
Save as function.json in your repo