Skip to content

Agent

Example Usage

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

let value: Agent = {
  object: "agent",
  id: "<id>",
  name: "<value>",
  description: "unlike beside moist unto league with till per rear license",
  model: "functionary-pt",
  instructions: "<value>",
  tools: [
    {
      type: "file_search",
    },
  ],
  toolChoice: "<value>",
  parallelToolCalls: false,
  maxToolCalls: 182471,
  text: {},
  reasoning: {},
  metadata: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
  version: 197260,
  createdAt: new Date("2025-03-25T10:59:00.090Z"),
  updatedAt: new Date("2025-12-21T08:31:13.203Z"),
  deletedAt: new Date("2025-01-23T12:18:08.641Z"),
};

Fields

FieldTypeRequiredDescriptionExample
objectcomponents.AgentObject✔️N/A
idstring✔️N/A
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
versionnumber✔️Current configuration version. Incremented on every update or rollback.
createdAtDate✔️N/A
updatedAtDate✔️N/A
deletedAtDate✔️N/A