StartTaskResponse
¶
Source code in docs_src/capo_context/types/start_task_response.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.
input_configuration
instance-attribute
¶
input_configuration: TaskInputConfigurationSummary
A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
outputs
instance-attribute
¶
outputs: NotRequired[TaskOutputList]
What the task created, in creation order. Set when it finishes.
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.