Skip to content

StartTaskRequest

Source code in docs_src/capo_context/types/start_task_request.py
class StartTaskRequest(TypedDict, closed=True):
    agent_context_id: (
        "capo_context.types.agent_context_identifier.AgentContextIdentifier"
    )
    """<p>The agent context, as an ID or ARN.</p>"""
    client_token: NotRequired["capo_context.types.client_token.ClientToken"]
    """<p>A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with <code>ValidationException</code>.</p>"""
    description: NotRequired["capo_context.types.task_description.TaskDescription"]
    """<p>A description of the task. Up to 1,024 characters, with no control characters.</p>"""
    input_configuration: (
        "capo_context.types.task_input_configuration.TaskInputConfiguration"
    )
    """<p>What the task imports. Set exactly one member. The member that you set determines the task's <code>type</code>.</p>"""
    access_control_config: NotRequired[
        "capo_context.types.access_control_config.AccessControlConfig"
    ]
    """<p>Who can see the content that the task adds to the agent context. AWS Context supports only one entry: <code>ALLOW</code> with <code>principalId</code> <code>*</code>, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include a <code>DENY</code> entry, or send more than one entry, the request fails with <code>ValidationException</code>, and no task is started.</p>"""

access_control_config instance-attribute

access_control_config: NotRequired[AccessControlConfig]

Who can see the content that the task adds to the agent context. AWS Context supports only one entry: ALLOW with principalId *, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include a DENY entry, or send more than one entry, the request fails with ValidationException, and no task is started.

agent_context_id instance-attribute

agent_context_id: AgentContextIdentifier

The agent context, as an ID or ARN.

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with ValidationException.

description instance-attribute

description: NotRequired[TaskDescription]

A description of the task. Up to 1,024 characters, with no control characters.

input_configuration instance-attribute

input_configuration: TaskInputConfiguration

What the task imports. Set exactly one member. The member that you set determines the task's type.