Skip to content

TaskSummary

Source code in docs_src/capo_context/types/task_summary.py
class TaskSummary(TypedDict, closed=True):
    id: "capo_context.types.task_id.TaskId"
    """<p>The ID of the task. Pass it as <code>taskId</code> to GetTask or CancelTask.</p>"""
    arn: "capo_context.types.task_arn.TaskArn"
    """<p>The Amazon Resource Name (ARN) of the task.</p>"""
    agent_context_id: (
        "capo_context.types.agent_context_identifier.AgentContextIdentifier"
    )
    """<p>The agent context's ID.</p>"""
    type: "capo_context.types.task_type.TaskType"
    """<p>The type of the task. It is set by the <code>inputConfiguration</code> member that the task was started with: <code>IMPORT_DATA_DICTIONARY</code>, <code>IMPORT_VERIFIED_QUERIES</code>, or <code>IMPORT_ONTOLOGY</code>.</p>"""
    status: "capo_context.types.task_status.TaskStatus"
    """<p>The status of the task. A task moves from <code>PENDING</code> to <code>IN_PROGRESS</code> and ends <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>. After CancelTask, it is <code>CANCELLING</code> until it stops.</p>"""
    description: NotRequired["capo_context.types.task_description.TaskDescription"]
    """<p>The description of the task, as given to StartTask.</p>"""
    created_at: "datetime.datetime"
    """<p>The date and time when the task was created.</p>"""
    updated_at: "datetime.datetime"
    """<p>The date and time when the task was last updated, such as when its status changed. Equal to <code>createdAt</code> until the task first changes.</p>"""
    status_reason_code: NotRequired[
        "capo_context.types.task_status_reason_code.TaskStatusReasonCode"
    ]
    """<p>The code for why the task failed. Present only when <code>status</code> is <code>FAILED</code>.</p> <p>Valid values:</p> <ul> <li> <p> <code>GRAPH_NOT_ACTIVE</code> - The agent context was deleted, or was not yet available, while the task ran.</p> </li> <li> <p> <code>ONTOLOGY_INVALID</code> - An ontology is missing, has no loadable source, or its source is unsafe or too large.</p> </li> <li> <p> <code>ONTOLOGY_IMPORT_UNAVAILABLE</code> - An ontology couldn't be imported because of a temporary problem. Start a new task.</p> </li> <li> <p> <code>ONTOLOGY_ALREADY_IMPORTED</code> - This ontology version is already imported into the agent context.</p> </li> </ul>"""
    status_message: NotRequired[
        "capo_context.types.task_status_message.TaskStatusMessage"
    ]
    """<p>The reason the task failed. Present only when status is FAILED.</p>"""
    statistics: NotRequired["capo_context.types.task_statistics.TaskStatistics"]
    """<p>Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>"""

agent_context_id instance-attribute

agent_context_id: AgentContextIdentifier

The agent context's ID.

arn instance-attribute

arn: TaskArn

The Amazon Resource Name (ARN) of the task.

created_at instance-attribute

created_at: datetime

The date and time when the task was created.

description instance-attribute

description: NotRequired[TaskDescription]

The description of the task, as given to StartTask.

id instance-attribute

id: TaskId

The ID of the task. Pass it as taskId to GetTask or CancelTask.

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.

type instance-attribute

type: TaskType

The type of the task. It is set by the inputConfiguration member that the task was started with: IMPORT_DATA_DICTIONARY, IMPORT_VERIFIED_QUERIES, or IMPORT_ONTOLOGY.

updated_at instance-attribute

updated_at: datetime

The date and time when the task was last updated, such as when its status changed. Equal to createdAt until the task first changes.