Skip to content

CreateAgenticContextRequest

Source code in docs_src/capo_workspaces/types/create_agentic_context_request.py
class CreateAgenticContextRequest(TypedDict, closed=True):
    client_token: NotRequired[
        "capo_workspaces.types.idempotency_token.IdempotencyToken"
    ]
    """<p>A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another context.</p> <p>If you reuse the token with different parameters, the operation returns <code>ValidationException</code>. If you deleted the context created with this token, the operation returns <code>ResourceNotFoundException</code>.</p>"""
    name: "capo_workspaces.types.agentic_context_name.AgenticContextName"
    """<p>The name of the context.</p>"""
    description: NotRequired[
        "capo_workspaces.types.agentic_context_description.AgenticContextDescription"
    ]
    """<p>The description of the context.</p>"""
    context_type: "capo_workspaces.types.agentic_context_type.AgenticContextType"
    """<p>The type of the context. Valid values:</p> <ul> <li> <p> <code>STEERING</code> – Guidance that shapes how the agent behaves.</p> </li> <li> <p> <code>SKILL</code> – A reusable capability that the agent can use.</p> </li> <li> <p> <code>WORKFLOW</code> – A multi-step procedure that the agent follows.</p> </li> </ul>"""
    target_file_path: "capo_workspaces.types.agentic_context_target_file_path.AgenticContextTargetFilePath"
    """<p>The name of the Markdown file that the context is written to on the WorkSpace, for example <code>code-review.md</code>. This is a file name, not a path. It can contain letters, digits, periods (.), underscores (_), and hyphens (-), can be 1–255 characters long, and can't be <code>.</code> or <code>..</code>.</p>"""
    context_body: NotRequired[
        "capo_workspaces.types.agentic_context_body.AgenticContextBody"
    ]
    """<p>The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.</p>"""
    tags: NotRequired["capo_workspaces.types.tag_list.TagList"]
    """<p>The tags to add to the context. Each tag key can appear only once.</p>"""

client_token instance-attribute

client_token: NotRequired[IdempotencyToken]

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another context.

If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the context created with this token, the operation returns ResourceNotFoundException.

context_body instance-attribute

context_body: NotRequired[AgenticContextBody]

The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.

context_type instance-attribute

context_type: AgenticContextType

The type of the context. Valid values:

  • STEERING – Guidance that shapes how the agent behaves.

  • SKILL – A reusable capability that the agent can use.

  • WORKFLOW – A multi-step procedure that the agent follows.

description instance-attribute

description: NotRequired[AgenticContextDescription]

The description of the context.

name instance-attribute

The name of the context.

tags instance-attribute

tags: NotRequired[TagList]

The tags to add to the context. Each tag key can appear only once.

target_file_path instance-attribute

target_file_path: AgenticContextTargetFilePath

The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md. This is a file name, not a path. It can contain letters, digits, periods (.), underscores (_), and hyphens (-), can be 1–255 characters long, and can't be . or ...