objectiveai-sdk 2.0.7

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "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"
    }
  ]
}