SearchAgentContextRequest
¶
Source code in docs_src/capo_context/types/search_agent_context_request.py
agent_context_id
instance-attribute
¶
agent_context_id: AgentContextIdentifier
The agent context to search, by ID or full Amazon Resource Name (ARN).
filter
instance-attribute
¶
filter: NotRequired[SearchFilter]
Optional filter on node attributes: a single comparison, or andAll of comparisons that must all match.
max_results
instance-attribute
¶
max_results: NotRequired[int]
Maximum number of results to return per page.
next_token
instance-attribute
¶
next_token: NotRequired[str]
Opaque continuation token from a prior response. Omit on the first page.
query
instance-attribute
¶
query: SearchQuery
The natural-language query or keywords to search for in the agent context. AWS Context interprets it based on searchType: as literal text for KEYWORD, as a semantic concept for SEMANTIC, or as both for AUTO.
search_type
instance-attribute
¶
search_type: SearchAgentContextType
The search strategy to use. Valid values:
-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.