TaskSummary
¶
Source code in docs_src/capo_context/types/task_summary.py
agent_context_id
instance-attribute
¶
agent_context_id: AgentContextIdentifier
The agent context's ID.
description
instance-attribute
¶
description: NotRequired[TaskDescription]
The description of the task, as given to StartTask.
statistics
instance-attribute
¶
statistics: NotRequired[TaskStatistics]
Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is COMPLETED, FAILED, or CANCELLED.
status
instance-attribute
¶
status: TaskStatus
The status of the task. A task moves from PENDING to IN_PROGRESS and ends COMPLETED, FAILED, or CANCELLED. After CancelTask, it is CANCELLING until it stops.
status_message
instance-attribute
¶
status_message: NotRequired[TaskStatusMessage]
The reason the task failed. Present only when status is FAILED.
status_reason_code
instance-attribute
¶
status_reason_code: NotRequired[TaskStatusReasonCode]
The code for why the task failed. Present only when status is FAILED.
Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn't be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.