retrieveAndGenerate
inline suspend fun BedrockAgentRuntimeClient.retrieveAndGenerate(crossinline block: RetrieveAndGenerateRequest.Builder.() -> Unit): RetrieveAndGenerateResponse
Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.