objectiveai-sdk 2.0.7

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "agent.OutputMode",
  "description": "The method used to constrain LLM output to valid response keys.\n\nIn vector completions, the model must select from a predefined set of\nresponses. This enum controls *how* that constraint is enforced.\n\n**Note:** This setting is only relevant for vector completions and is\ncompletely ignored for agent completions.",
  "anyOf": [
    {
      "title": "Instruction",
      "description": "The model is instructed via the prompt to output a specific key.\n\nThis is the default and most widely supported mode.",
      "type": "string",
      "enum": [
        "instruction"
      ]
    },
    {
      "title": "JsonSchema",
      "description": "A JSON schema response format is used with an enum of possible keys.\n\nRequires model support for structured JSON output.",
      "type": "string",
      "enum": [
        "json_schema"
      ]
    },
    {
      "title": "ToolCall",
      "description": "A forced tool call with an argument schema containing possible keys.\n\nRequires model support for tool/function calling.",
      "type": "string",
      "enum": [
        "tool_call"
      ]
    }
  ]
}