List tasks. Returns a lean summary per task and omits params; fetch GET /tasks/{task_id} for the full record including params.
List Tasks
import os
from agentex import Agentex
client = Agentex(
api_key=os.environ.get("AGENTEX_SDK_API_KEY"), # This is the default and can be omitted
)
tasks = client.tasks.list()
print(tasks)[
{
"id": "id",
"agents": [
{
"id": "id",
"acp_type": "sync",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_input_type": "text",
"production_deployment_id": "production_deployment_id",
"registered_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"status": "Ready",
"status_reason": "status_reason"
}
],
"cleaned_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"status": "CANCELED",
"status_reason": "status_reason",
"task_metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
]Returns Examples
[
{
"id": "id",
"agents": [
{
"id": "id",
"acp_type": "sync",
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z",
"agent_input_type": "text",
"production_deployment_id": "production_deployment_id",
"registered_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"status": "Ready",
"status_reason": "status_reason"
}
],
"cleaned_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"status": "CANCELED",
"status_reason": "status_reason",
"task_metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
]