BedrockAgentRuntimeClient

Amazon Bedrock Agent

Properties

Link copied to clipboard

BedrockAgentRuntimeClient's configuration

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
abstract suspend fun retrieve(input: RetrieveRequest): RetrieveResponse

Retrieve from knowledge base.

Link copied to clipboard

RetrieveAndGenerate API

Inherited functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Retrieve from knowledge base.

Link copied to clipboard

RetrieveAndGenerate API

Link copied to clipboard

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.