Skip to content

AgenticRetrieveStreamRequest

Source code in docs_src/capo_context/types/agentic_retrieve_stream_request.py
class AgenticRetrieveStreamRequest(TypedDict, closed=True):
    agent_context_id: (
        "capo_context.types.agent_context_identifier.AgentContextIdentifier"
    )
    """<p>The agent context to retrieve from, by its ID or ARN.</p>"""
    messages: "capo_context.types.message_list.MessageList"
    """<p>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.</p>"""
    session_id: NotRequired["capo_context.types.session_id.SessionId"]
    """<p>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.</p>"""
    analysis_configuration: NotRequired[
        "capo_context.types.analysis_configuration.AnalysisConfiguration"
    ]
    """<p>Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis. Trace events are streamed either way.</p>"""
    retrieval_configuration: NotRequired[
        "capo_context.types.stream_retrieval_configuration.StreamRetrievalConfiguration"
    ]
    """<p>Optional bounds and configuration for the agent loop.</p>"""

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. Trace events are streamed either way.

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[StreamRetrievalConfiguration]

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.