Skip to content

AgentRun

Example Usage

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

let value: AgentRun = {
  object: "agent.run",
  id: "<id>",
  agentId: "<id>",
  agentVersion: 350685,
  status: "submitting",
  input: "<value>",
  conversation: "<value>",
  previousResponseId: "<id>",
  metadata: {},
  gatewayResponseId: "<id>",
  gatewayResponse: "<value>",
  error: "<value>",
  createdAt: new Date("2024-07-20T17:55:44.853Z"),
  completedAt: new Date("2024-05-11T22:06:28.971Z"),
};

Fields

FieldTypeRequiredDescription
objectcomponents.AgentRunObject✔️N/A
idstring✔️N/A
agentIdstring✔️N/A
agentVersionnumber✔️The agent configuration version this run executed against. Null for runs created before versioning.
statuscomponents.AgentRunStatus✔️N/A
inputany✔️Arbitrary JSON value.
conversationany✔️N/A
previousResponseIdstring✔️N/A
metadataRecord<string, string>✔️N/A
gatewayResponseIdstring✔️N/A
gatewayResponseany✔️N/A
errorany✔️N/A
createdAtDate✔️N/A
completedAtDate✔️N/A