Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
Task.areport_external_task is the @classmethod version of Backend.areport_external_task. It logs a task that was executed outside the xpander.ai runtime so it appears in task history and metrics.
Use this form when you don’t have a Backend instance in scope but do have a Configuration.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
configuration | Configuration | No | New Configuration() | SDK config (api_key + organization_id). |
agent_id | str | Yes | – | Agent the run belongs to. |
id | str | No | None | External task id. Re-using the same id updates the existing record. |
input | str | No | None | Run input. |
llm_response | Any | No | None | Raw provider response. Stored verbatim. |
tokens | Tokens | No | None | Token usage. |
is_success | bool | No | True | Pass/fail. |
result | str | No | None | Final result. |
duration | float | No | 0 | Wall-clock seconds. |
used_tools | list[str] | No | [] | Tool names. |
Returns Task
The platform-side Task after persistence. Carries the id, status, and timestamps assigned by the cloud.
When to use this vs. Backend.areport_external_task
Functionally identical. Backend.areport_external_task is more discoverable (it sits next to the other Backend methods you’d be using); this classmethod is convenient when you don’t want to instantiate Backend.
Backend page for typical usage patterns (idempotent updates, failure reporting).

