Class BedrockProxyChatModel.Builder
java.lang.Object
org.springframework.ai.bedrock.converse.BedrockProxyChatModel.Builder
- Enclosing class:
- BedrockProxyChatModel
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
functionCallbackResolver
(FunctionCallbackResolver functionCallbackResolver) withBedrockRuntimeAsyncClient
(software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient bedrockRuntimeAsyncClient) withBedrockRuntimeClient
(software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient bedrockRuntimeClient) withCredentialsProvider
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider) withCustomObservationConvention
(ChatModelObservationConvention observationConvention) withDefaultOptions
(FunctionCallingOptions defaultOptions) withFunctionCallbackContext
(FunctionCallbackResolver functionCallbackResolver) Deprecated.withObservationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) withRegion
(software.amazon.awssdk.regions.Region region) withTimeout
(Duration timeout) withToolFunctionCallbacks
(List<FunctionCallback> toolFunctionCallbacks)
-
Method Details
-
withCredentialsProvider
public BedrockProxyChatModel.Builder withCredentialsProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider) -
withRegion
-
withTimeout
-
withDefaultOptions
-
withFunctionCallbackContext
@Deprecated public BedrockProxyChatModel.Builder withFunctionCallbackContext(FunctionCallbackResolver functionCallbackResolver) Deprecated.UsefunctionCallbackResolver(FunctionCallbackResolver)
instead. -
functionCallbackResolver
public BedrockProxyChatModel.Builder functionCallbackResolver(FunctionCallbackResolver functionCallbackResolver) -
withToolFunctionCallbacks
public BedrockProxyChatModel.Builder withToolFunctionCallbacks(List<FunctionCallback> toolFunctionCallbacks) -
withObservationRegistry
public BedrockProxyChatModel.Builder withObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) -
withCustomObservationConvention
public BedrockProxyChatModel.Builder withCustomObservationConvention(ChatModelObservationConvention observationConvention) -
withBedrockRuntimeClient
public BedrockProxyChatModel.Builder withBedrockRuntimeClient(software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient bedrockRuntimeClient) -
withBedrockRuntimeAsyncClient
public BedrockProxyChatModel.Builder withBedrockRuntimeAsyncClient(software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient bedrockRuntimeAsyncClient) -
build
-
functionCallbackResolver(FunctionCallbackResolver)
instead.