{
"title": "functions.Function",
"description": "A Function definition, either remote or inline.\n\nFunctions are composable scoring pipelines that transform structured input\ninto scores. Each task has an `output` expression that transforms its raw result\ninto a `TaskOutputOwned`. The function's final output is the weighted average of\nall task outputs using profile weights.\n\nUse [`compile_tasks`](Self::compile_tasks) to preview how task expressions resolve\nfor given inputs.",
"anyOf": [
{
"title": "Remote",
"description": "A remote function with metadata (description, schema, etc.).",
"$ref": "functions.RemoteFunction"
},
{
"title": "Inline",
"description": "An inline function definition without metadata.",
"$ref": "functions.InlineFunction"
}
]
}