import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.agents.listAgents({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
}, {});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"object": "agent",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"model": "functionary-pt",
"instructions": "<string>",
"tools": [
{
"type": "web_search",
"search_context_size": "low",
"user_location": {
"type": "approximate",
"city": "<string>",
"country": "<string>",
"region": "<string>",
"timezone": "<string>"
},
"filters": {
"allowed_domains": [
"<string>"
]
}
}
],
"tool_choice": "<string>",
"parallel_tool_calls": true,
"max_tool_calls": 123,
"text": {
"format": {
"type": "text"
},
"verbosity": "low"
},
"reasoning": {
"effort": "low"
},
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.agents.listAgents({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
}, {});
console.log(result);
}
run();{
"object": "list",
"data": [
{
"object": "agent",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"model": "functionary-pt",
"instructions": "<string>",
"tools": [
{
"type": "web_search",
"search_context_size": "low",
"user_location": {
"type": "approximate",
"city": "<string>",
"country": "<string>",
"region": "<string>",
"timezone": "<string>"
},
"filters": {
"allowed_domains": [
"<string>"
]
}
}
],
"tool_choice": "<string>",
"parallel_tool_calls": true,
"max_tool_calls": 123,
"text": {
"format": {
"type": "text"
},
"verbosity": "low"
},
"reasoning": {
"effort": "low"
},
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Optional external end-user identifier forwarded by the API gateway.
1 <= x <= 100asc, desc Was this page helpful?