List agents
client.agents.list(AgentListParams { model, name, ordering, 5 more } query?, RequestOptionsoptions?): AgentListResponse { count, results, next, previous }
GET/api/agents/
List agents
Parameters
Returns
List agents
import OvermindLab from 'overmind-lab';
const client = new OvermindLab();
const agents = await client.agents.list();
console.log(agents.count);{
"count": 123,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_path": "agent_path",
"analyzer_model": "analyzer_model",
"dataset_has_expected_output": true,
"dataset_size": -9007199254740991,
"description": "description",
"display_name": "display_name",
"entrypoint_fn": "entrypoint_fn",
"model": "model",
"status": "status",
"structure_weight": 0,
"tags": {},
"tool_usage_weight": 0,
"total_points": 0
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Returns Examples
{
"count": 123,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"project": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_path": "agent_path",
"analyzer_model": "analyzer_model",
"dataset_has_expected_output": true,
"dataset_size": -9007199254740991,
"description": "description",
"display_name": "display_name",
"entrypoint_fn": "entrypoint_fn",
"model": "model",
"status": "status",
"structure_weight": 0,
"tags": {},
"tool_usage_weight": 0,
"total_points": 0
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}