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
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
object | components.AgentVersionObject | ✔️ | N/A | |
id | string | ✔️ | N/A | |
agentId | string | ✔️ | N/A | |
version | number | ✔️ | N/A | |
isCurrent | boolean | ✔️ | True when this version matches the agent's current configuration. | |
restoredFromVersion | number | ✔️ | When this version was produced by a rollback, the version it was restored from. | |
name | string | ✔️ | N/A | |
description | string | ✔️ | N/A | |
model | string | ✔️ | N/A | functionary-pt |
instructions | string | ✔️ | N/A | |
tools | components.ToolDefinition[] | ✔️ | N/A | |
toolChoice | any | ✔️ | Arbitrary JSON value. | |
parallelToolCalls | boolean | ✔️ | N/A | |
maxToolCalls | number | ✔️ | N/A | |
text | components.AgentTextConfiguration | ✔️ | N/A | |
reasoning | components.AgentReasoningConfiguration | ✔️ | N/A | |
metadata | Record<string, string> | ✔️ | N/A | |
createdAt | Date | ✔️ | N/A |