import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.agentRuns.createAgentRun({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
}, {
agentId: "<id>",
createAgentRunRequest: {
input: [
{
type: "<value>",
},
],
},
});
console.log(result);
}
run();{
"object": "agent.run",
"id": "<string>",
"agent_id": "<string>",
"status": "queued",
"input": "<string>",
"conversation": "<string>",
"previous_response_id": "<string>",
"metadata": {},
"gateway_response_id": "<string>",
"gateway_response": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.agentRuns.createAgentRun({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
}, {
agentId: "<id>",
createAgentRunRequest: {
input: [
{
type: "<value>",
},
],
},
});
console.log(result);
}
run();{
"object": "agent.run",
"id": "<string>",
"agent_id": "<string>",
"status": "queued",
"input": "<string>",
"conversation": "<string>",
"previous_response_id": "<string>",
"metadata": {},
"gateway_response_id": "<string>",
"gateway_response": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Optional external end-user identifier forwarded by the API gateway.
Persisted run result.
agent.run queued, completed, failed Show child attributes
Was this page helpful?