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: {
    "key": 3301.98,
  },
  parallelToolCalls: false,
  maxToolCalls: 197260,
  text: {},
  reasoning: {},
  metadata: {
    "key": "<value>",
    "key1": "<value>",
  },
  createdAt: new Date("2025-01-23T12:18:08.641Z"),
  updatedAt: new Date("2025-06-09T08:04:10.745Z"),
  deletedAt: new Date("2025-01-16T18:27:48.556Z"),
};

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
toolChoicecomponents.JsonValue✔️N/A
parallelToolCallsboolean✔️N/A
maxToolCallsnumber✔️N/A
textcomponents.AgentTextConfiguration✔️N/A
reasoningcomponents.AgentReasoningConfiguration✔️N/A
metadataRecord<string, string>✔️N/A
createdAtDate✔️N/A
updatedAtDate✔️N/A
deletedAtDate✔️N/A