7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/bedrock-runtime/BedrockRuntimeServiceClientModel.h>
16namespace BedrockRuntime
37 std::shared_ptr<BedrockRuntimeEndpointProviderBase> endpointProvider =
nullptr);
44 std::shared_ptr<BedrockRuntimeEndpointProviderBase> endpointProvider =
nullptr,
52 std::shared_ptr<BedrockRuntimeEndpointProviderBase> endpointProvider =
nullptr,
90 template<
typename ApplyGuardrailRequestT = Model::ApplyGuardrailRequest>
93 return SubmitCallable(&BedrockRuntimeClient::ApplyGuardrail, request);
99 template<
typename ApplyGuardrailRequestT = Model::ApplyGuardrailRequest>
102 return SubmitAsync(&BedrockRuntimeClient::ApplyGuardrail, request, handler, context);
128 template<
typename ConverseRequestT = Model::ConverseRequest>
131 return SubmitCallable(&BedrockRuntimeClient::Converse, request);
137 template<
typename ConverseRequestT = Model::ConverseRequest>
140 return SubmitAsync(&BedrockRuntimeClient::Converse, request, handler, context);
172 template<
typename ConverseStreamRequestT = Model::ConverseStreamRequest>
175 return SubmitCallable(&BedrockRuntimeClient::ConverseStream, request);
181 template<
typename ConverseStreamRequestT = Model::ConverseStreamRequest>
184 return SubmitAsync(&BedrockRuntimeClient::ConverseStream, request, handler, context);
202 template<
typename InvokeModelRequestT = Model::InvokeModelRequest>
205 return SubmitCallable(&BedrockRuntimeClient::InvokeModel, request);
211 template<
typename InvokeModelRequestT = Model::InvokeModelRequest>
214 return SubmitAsync(&BedrockRuntimeClient::InvokeModel, request, handler, context);
237 template<
typename InvokeModelWithResponseStreamRequestT = Model::InvokeModelWithResponseStreamRequest>
240 return SubmitCallable(&BedrockRuntimeClient::InvokeModelWithResponseStream, request);
246 template<
typename InvokeModelWithResponseStreamRequestT = Model::InvokeModelWithResponseStreamRequest>
249 return SubmitAsync(&BedrockRuntimeClient::InvokeModelWithResponseStream, request, handler, context);
260 std::shared_ptr<BedrockRuntimeEndpointProviderBase> m_endpointProvider;
BedrockRuntimeEndpointProvider EndpointProviderType
BedrockRuntimeClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void OverrideEndpoint(const Aws::String &endpoint)
static const char * GetServiceName()
std::shared_ptr< BedrockRuntimeEndpointProviderBase > & accessEndpointProvider()
static const char * GetAllocationTag()
BedrockRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< BedrockRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::BedrockRuntime::BedrockRuntimeClientConfiguration &clientConfiguration=Aws::BedrockRuntime::BedrockRuntimeClientConfiguration())
Model::InvokeModelOutcomeCallable InvokeModelCallable(const InvokeModelRequestT &request) const
Aws::Client::AWSJsonClient BASECLASS
BedrockRuntimeClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ConverseOutcome Converse(const Model::ConverseRequest &request) const
BedrockRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< BedrockRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::BedrockRuntime::BedrockRuntimeClientConfiguration &clientConfiguration=Aws::BedrockRuntime::BedrockRuntimeClientConfiguration())
virtual Model::ApplyGuardrailOutcome ApplyGuardrail(const Model::ApplyGuardrailRequest &request) const
void ConverseAsync(const ConverseRequestT &request, const ConverseResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::InvokeModelWithResponseStreamOutcome InvokeModelWithResponseStream(Model::InvokeModelWithResponseStreamRequest &request) const
Model::ApplyGuardrailOutcomeCallable ApplyGuardrailCallable(const ApplyGuardrailRequestT &request) const
virtual ~BedrockRuntimeClient()
Model::InvokeModelWithResponseStreamOutcomeCallable InvokeModelWithResponseStreamCallable(InvokeModelWithResponseStreamRequestT &request) const
virtual Model::ConverseStreamOutcome ConverseStream(Model::ConverseStreamRequest &request) const
BedrockRuntimeClient(const Aws::BedrockRuntime::BedrockRuntimeClientConfiguration &clientConfiguration=Aws::BedrockRuntime::BedrockRuntimeClientConfiguration(), std::shared_ptr< BedrockRuntimeEndpointProviderBase > endpointProvider=nullptr)
void InvokeModelWithResponseStreamAsync(InvokeModelWithResponseStreamRequestT &request, const InvokeModelWithResponseStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ConverseStreamOutcomeCallable ConverseStreamCallable(ConverseStreamRequestT &request) const
BedrockRuntimeClientConfiguration ClientConfigurationType
void ConverseStreamAsync(ConverseStreamRequestT &request, const ConverseStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void InvokeModelAsync(const InvokeModelRequestT &request, const InvokeModelResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ApplyGuardrailAsync(const ApplyGuardrailRequestT &request, const ApplyGuardrailResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ConverseOutcomeCallable ConverseCallable(const ConverseRequestT &request) const
virtual Model::InvokeModelOutcome InvokeModel(const Model::InvokeModelRequest &request) const
BedrockRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
std::future< InvokeModelWithResponseStreamOutcome > InvokeModelWithResponseStreamOutcomeCallable
std::future< InvokeModelOutcome > InvokeModelOutcomeCallable
std::future< ConverseOutcome > ConverseOutcomeCallable
std::future< ConverseStreamOutcome > ConverseStreamOutcomeCallable
std::future< ApplyGuardrailOutcome > ApplyGuardrailOutcomeCallable
std::function< void(const BedrockRuntimeClient *, const Model::InvokeModelRequest &, Model::InvokeModelOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > InvokeModelResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ApplyGuardrailRequest &, const Model::ApplyGuardrailOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ApplyGuardrailResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ConverseRequest &, const Model::ConverseOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ConverseResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ConverseStreamRequest &, const Model::ConverseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ConverseStreamResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::InvokeModelWithResponseStreamRequest &, const Model::InvokeModelWithResponseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > InvokeModelWithResponseStreamResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String