Task management API reference for the xpander SDK
Parameter | Type | Required | Description |
---|---|---|---|
input | string | Yes | Task description or user message |
thread_id | string | No | Thread ID for connecting related tasks |
files | List[Dict] | No | Files to attach to the task |
use_worker | boolean | No | Whether to use a worker for execution (default: true) |
add_task()
, the agent’s execution
property is initialized, and agent.messages
is populated with system instructions and the user input.boolean
- True
if task has finished, False
otherwise.
xpfinish-agent-execution-finished
tool or if the task has failed.Parameter | Type | Required | Description |
---|---|---|---|
execution_id | string | Yes | ID of the task |
add_task()
.
retrieve_execution_result()
rather than the execution object.