Skip to content

ListTasksRequest

Source code in docs_src/capo_context/types/list_tasks_request.py
class ListTasksRequest(TypedDict, closed=True):
    agent_context_id: (
        "capo_context.types.agent_context_identifier.AgentContextIdentifier"
    )
    """<p>The agent context, as an ID or ARN.</p>"""
    status: NotRequired["capo_context.types.task_status.TaskStatus"]
    """<p>Specify a status to list only the tasks with that status.</p>"""
    type: NotRequired["capo_context.types.task_type.TaskType"]
    """<p>Specify a type to list only the tasks of that type.</p>"""
    max_results: NotRequired["capo_context.types.max_results.MaxResults"]
    """<p>The maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with <code>ValidationException</code>.</p>"""
    next_token: NotRequired["capo_context.types.pagination_token.PaginationToken"]
    """<p>The pagination token from a previous ListTasks response. Omit it for the first page, and keep the <code>status</code> and <code>type</code> filters the same on every page.</p>"""

agent_context_id instance-attribute

agent_context_id: AgentContextIdentifier

The agent context, as an ID or ARN.

max_results instance-attribute

max_results: NotRequired[MaxResults]

The maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with ValidationException.

next_token instance-attribute

next_token: NotRequired[PaginationToken]

The pagination token from a previous ListTasks response. Omit it for the first page, and keep the status and type filters the same on every page.

status instance-attribute

status: NotRequired[TaskStatus]

Specify a status to list only the tasks with that status.

type instance-attribute

type: NotRequired[TaskType]

Specify a type to list only the tasks of that type.