BedrockAgentRuntimeClient
Amazon Bedrock Agent
Functions
Link copied to clipboard
abstract suspend fun <T> invokeAgent(input: InvokeAgentRequest, block: suspend (InvokeAgentResponse) -> T): T
Invokes the specified Bedrock model to run inference using the input provided in the request body.
Link copied to clipboard
Retrieve from knowledge base.
Link copied to clipboard
abstract suspend fun retrieveAndGenerate(input: RetrieveAndGenerateRequest): RetrieveAndGenerateResponse
RetrieveAndGenerate API
Inherited functions
Link copied to clipboard
inline suspend fun BedrockAgentRuntimeClient.retrieve(crossinline block: RetrieveRequest.Builder.() -> Unit): RetrieveResponse
Retrieve from knowledge base.
Link copied to clipboard
inline suspend fun BedrockAgentRuntimeClient.retrieveAndGenerate(crossinline block: RetrieveAndGenerateRequest.Builder.() -> Unit): RetrieveAndGenerateResponse
RetrieveAndGenerate API
Link copied to clipboard
fun BedrockAgentRuntimeClient.withConfig(block: BedrockAgentRuntimeClient.Config.Builder.() -> Unit): BedrockAgentRuntimeClient
Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.