Skip to content

SearchAgentContextResponse

Source code in docs_src/capo_context/types/search_agent_context_response.py
class SearchAgentContextResponse(TypedDict, closed=True):
    next_token: NotRequired["str"]
    """<p>Pagination cursor for the next page. Absent when there are no more results.</p>"""
    items: "capo_context.types.search_agent_context_result_list.SearchAgentContextResultList"
    """<p>The matching entities, ranked by relevance.</p>"""
    authorization_required: NotRequired[
        "capo_context.types.authorization_required.AuthorizationRequired"
    ]
    """<p>Present when the end user must authorize access to a third-party resource before the search can run. In that case, <code>items</code> is empty. Show <code>authorizationUrl</code> to the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.</p>"""

authorization_required instance-attribute

authorization_required: NotRequired[AuthorizationRequired]

Present when the end user must authorize access to a third-party resource before the search can run. In that case, items is empty. Show authorizationUrl to the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.

items instance-attribute

The matching entities, ranked by relevance.

next_token instance-attribute

next_token: NotRequired[str]

Pagination cursor for the next page. Absent when there are no more results.