Skip to content

AgenticRetrieveRequest

Source code in docs_src/capo_context/types/agentic_retrieve_request.py
class AgenticRetrieveRequest(TypedDict, closed=True):
    agent_context_id: (
        "capo_context.types.agent_context_identifier.AgentContextIdentifier"
    )
    """The agent context to retrieve from, by its ID or ARN."""
    messages: "capo_context.types.message_list.MessageList"
    """The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns."""
    session_id: NotRequired["capo_context.types.session_id.SessionId"]
    """Optional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation."""
    analysis_configuration: NotRequired[
        "capo_context.types.analysis_configuration.AnalysisConfiguration"
    ]
    """Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis."""
    retrieval_configuration: NotRequired[
        "capo_context.types.retrieval_configuration.RetrievalConfiguration"
    ]
    """Optional bounds and configuration for the agent loop."""

agent_context_id instance-attribute

agent_context_id: AgentContextIdentifier

The agent context to retrieve from, by its ID or ARN.

analysis_configuration instance-attribute

analysis_configuration: NotRequired[AnalysisConfiguration]

Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis.

messages instance-attribute

messages: MessageList

The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.

retrieval_configuration instance-attribute

retrieval_configuration: NotRequired[RetrievalConfiguration]

Optional bounds and configuration for the agent loop.

session_id instance-attribute

session_id: NotRequired[SessionId]

Optional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation.