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
| Field | Type | Required | Description |
|---|---|---|---|
object | components.AgentRunObject | ✔️ | N/A |
id | string | ✔️ | N/A |
agentId | string | ✔️ | N/A |
agentVersion | number | ✔️ | The agent configuration version this run executed against. Null for runs created before versioning. |
status | components.AgentRunStatus | ✔️ | N/A |
input | any | ✔️ | Arbitrary JSON value. |
conversation | any | ✔️ | N/A |
previousResponseId | string | ✔️ | N/A |
metadata | Record<string, string> | ✔️ | N/A |
gatewayResponseId | string | ✔️ | N/A |
gatewayResponse | any | ✔️ | N/A |
error | any | ✔️ | N/A |
createdAt | Date | ✔️ | N/A |
completedAt | Date | ✔️ | N/A |