{
"title": "functions.Task",
"description": "A compiled task ready for execution.\n\nProduced by compiling a [`TaskExpression`] against input data. All\nexpressions have been resolved to concrete values.",
"anyOf": [
{
"title": "ScalarFunction",
"description": "Calls a scalar function (produces a single score).",
"type": "object",
"$ref": "functions.ScalarFunctionTask",
"properties": {
"type": {
"type": "string",
"enum": [
"scalar.function"
]
}
}
},
{
"title": "VectorFunction",
"description": "Calls a vector function (produces a vector of scores).",
"type": "object",
"$ref": "functions.VectorFunctionTask",
"properties": {
"type": {
"type": "string",
"enum": [
"vector.function"
]
}
}
},
{
"title": "VectorCompletion",
"description": "Runs a vector completion.",
"type": "object",
"$ref": "functions.VectorCompletionTask",
"properties": {
"type": {
"type": "string",
"enum": [
"vector.completion"
]
}
}
},
{
"title": "PlaceholderScalarFunction",
"description": "Placeholder scalar function (always outputs 0.5).",
"type": "object",
"$ref": "functions.PlaceholderScalarFunctionTask",
"properties": {
"type": {
"type": "string",
"enum": [
"placeholder.scalar.function"
]
}
}
},
{
"title": "PlaceholderVectorFunction",
"description": "Placeholder vector function (always outputs equalized vector).",
"type": "object",
"$ref": "functions.PlaceholderVectorFunctionTask",
"properties": {
"type": {
"type": "string",
"enum": [
"placeholder.vector.function"
]
}
}
}
]
}