RetrieveAndGenerateStreamRequest
¶
Source code in docs_src/capo_bedrock_agent_runtime/types/retrieve_and_generate_stream_request.py
input
instance-attribute
¶
input: RetrieveAndGenerateInput
Contains the query to be made to the knowledge base.
retrieve_and_generate_configuration
instance-attribute
¶
retrieve_and_generate_configuration: NotRequired[RetrieveAndGenerateConfiguration]
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
session_configuration
instance-attribute
¶
session_configuration: NotRequired[RetrieveAndGenerateSessionConfiguration]
Contains details about the session with the knowledge base.
session_id
instance-attribute
¶
session_id: NotRequired[SessionId]
The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.
user_context
instance-attribute
¶
user_context: NotRequired[UserContext]
Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include documents the user is authorized to access.