objectiveai-sdk 2.0.10

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "functions.executions.response.unary.VectorCompletionTask",
  "description": "A complete vector completion response (non-streaming).\n\nContains the final scores, all votes from the swarm, and the underlying\nagent completions that produced those votes.",
  "type": "object",
  "properties": {
    "completions": {
      "description": "The underlying agent completions from each agent in the swarm.",
      "type": "array",
      "items": {
        "$ref": "vector.completions.response.unary.AgentCompletion"
      }
    },
    "created": {
      "description": "Unix timestamp when the completion was created.",
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615
    },
    "error": {
      "anyOf": [
        {
          "$ref": "error.ResponseError"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "description": "Unique identifier for this vector completion.",
      "type": "string"
    },
    "index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615
    },
    "object": {
      "description": "Object type identifier (`\"vector.completion\"`).",
      "$ref": "vector.completions.response.unary.Object"
    },
    "scores": {
      "description": "Final weighted scores for each response option. Sums to 1.",
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -3.4028234663852886e+38,
        "maximum": 3.4028234663852886e+38
      }
    },
    "swarm": {
      "description": "ID of the swarm used for this completion.",
      "type": "string"
    },
    "task_index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615
    },
    "task_path": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 18446744073709551615
      }
    },
    "usage": {
      "description": "Aggregated token and cost usage across all completions.",
      "$ref": "agent.completions.response.Usage"
    },
    "votes": {
      "description": "Individual votes from each agent, showing their selections.",
      "type": "array",
      "items": {
        "$ref": "vector.completions.response.Vote"
      }
    },
    "weights": {
      "description": "Total weight allocated to each response option. Same length as `scores`.\nFor discrete votes, an LLM's full weight goes to its selected response.\nFor probabilistic votes, the weight is divided according to the distribution.",
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -3.4028234663852886e+38,
        "maximum": 3.4028234663852886e+38
      }
    }
  }
}