Skip to content

AgentVersion

Example Usage

typescript
import { AgentVersion } from "@meetkai/mka1/models/components";

let value: AgentVersion = {
  object: "agent.version",
  id: "<id>",
  agentId: "<id>",
  version: 616293,
  isCurrent: true,
  restoredFromVersion: 732509,
  name: "<value>",
  description: null,
  model: "functionary-pt",
  instructions: null,
  tools: [
    {
      type: "function",
      name: "<value>",
      parameters: {
        "key": "<value>",
        "key1": "<value>",
      },
    },
  ],
  toolChoice: "<value>",
  parallelToolCalls: false,
  maxToolCalls: 882407,
  text: {},
  reasoning: {},
  metadata: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
  createdAt: new Date("2025-10-21T22:00:02.055Z"),
};

Fields

FieldTypeRequiredDescriptionExample
objectcomponents.AgentVersionObject✔️N/A
idstring✔️N/A
agentIdstring✔️N/A
versionnumber✔️N/A
isCurrentboolean✔️True when this version matches the agent's current configuration.
restoredFromVersionnumber✔️When this version was produced by a rollback, the version it was restored from.
namestring✔️N/A
descriptionstring✔️N/A
modelstring✔️N/Afunctionary-pt
instructionsstring✔️N/A
toolscomponents.ToolDefinition[]✔️N/A
toolChoiceany✔️Arbitrary JSON value.
parallelToolCallsboolean✔️N/A
maxToolCallsnumber✔️N/A
textcomponents.AgentTextConfiguration✔️N/A
reasoningcomponents.AgentReasoningConfiguration✔️N/A
metadataRecord<string, string>✔️N/A
createdAtDate✔️N/A