objectiveai-sdk 2.0.8

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "vector.completions.request.VectorCompletionCreateParams",
  "description": "Parameters for creating a vector completion.\n\nVector completions run multiple agent completions (one per LLM in the\nswarm), force each to vote for one of the predefined responses, and\ncombine votes using the provided profile weights to produce final scores.",
  "type": "object",
  "properties": {
    "continuation": {
      "description": "Continuation from a previous completion, as a base64-encoded string.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "from_cache": {
      "description": "If true, uses cached votes when available.",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "messages": {
      "description": "The conversation messages (the prompt).",
      "type": "array",
      "items": {
        "$ref": "agent.completions.message.Message"
      }
    },
    "provider": {
      "description": "Provider routing preferences.",
      "anyOf": [
        {
          "$ref": "agent.completions.request.Provider"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "responses": {
      "description": "The possible responses the LLMs can vote for.",
      "type": "array",
      "items": {
        "$ref": "agent.completions.message.RichContent"
      }
    },
    "retry": {
      "description": "If present, reuses votes from a previous request with this ID.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "seed": {
      "description": "Random seed for deterministic results.",
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "stream": {
      "description": "Whether to stream the response.",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "swarm": {
      "description": "The Swarm of agents to use.",
      "$ref": "swarm.InlineSwarmBaseOrRemoteCommitOptional"
    }
  }
}