7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_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-agent-runtime/BedrockAgentRuntimeServiceClientModel.h>
16namespace BedrockAgentRuntime
37 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider =
nullptr);
44 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider =
nullptr,
52 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider =
nullptr,
91 template<
typename DeleteAgentMemoryRequestT = Model::DeleteAgentMemoryRequest>
94 return SubmitCallable(&BedrockAgentRuntimeClient::DeleteAgentMemory, request);
100 template<
typename DeleteAgentMemoryRequestT = Model::DeleteAgentMemoryRequest>
103 return SubmitAsync(&BedrockAgentRuntimeClient::DeleteAgentMemory, request, handler, context);
117 template<
typename GetAgentMemoryRequestT = Model::GetAgentMemoryRequest>
120 return SubmitCallable(&BedrockAgentRuntimeClient::GetAgentMemory, request);
126 template<
typename GetAgentMemoryRequestT = Model::GetAgentMemoryRequest>
129 return SubmitAsync(&BedrockAgentRuntimeClient::GetAgentMemory, request, handler, context);
165 template<
typename InvokeAgentRequestT = Model::InvokeAgentRequest>
168 return SubmitCallable(&BedrockAgentRuntimeClient::InvokeAgent, request);
174 template<
typename InvokeAgentRequestT = Model::InvokeAgentRequest>
177 return SubmitAsync(&BedrockAgentRuntimeClient::InvokeAgent, request, handler, context);
196 template<
typename InvokeFlowRequestT = Model::InvokeFlowRequest>
199 return SubmitCallable(&BedrockAgentRuntimeClient::InvokeFlow, request);
205 template<
typename InvokeFlowRequestT = Model::InvokeFlowRequest>
208 return SubmitAsync(&BedrockAgentRuntimeClient::InvokeFlow, request, handler, context);
222 template<
typename RetrieveRequestT = Model::RetrieveRequest>
225 return SubmitCallable(&BedrockAgentRuntimeClient::Retrieve, request);
231 template<
typename RetrieveRequestT = Model::RetrieveRequest>
234 return SubmitAsync(&BedrockAgentRuntimeClient::Retrieve, request, handler, context);
251 template<
typename RetrieveAndGenerateRequestT = Model::RetrieveAndGenerateRequest>
254 return SubmitCallable(&BedrockAgentRuntimeClient::RetrieveAndGenerate, request);
260 template<
typename RetrieveAndGenerateRequestT = Model::RetrieveAndGenerateRequest>
263 return SubmitAsync(&BedrockAgentRuntimeClient::RetrieveAndGenerate, request, handler, context);
274 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> m_endpointProvider;
static const char * GetAllocationTag()
virtual ~BedrockAgentRuntimeClient()
BedrockAgentRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
void RetrieveAsync(const RetrieveRequestT &request, const RetrieveResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::RetrieveOutcomeCallable RetrieveCallable(const RetrieveRequestT &request) const
BedrockAgentRuntimeClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetAgentMemoryOutcomeCallable GetAgentMemoryCallable(const GetAgentMemoryRequestT &request) const
Model::InvokeFlowOutcomeCallable InvokeFlowCallable(InvokeFlowRequestT &request) const
static const char * GetServiceName()
BedrockAgentRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< BedrockAgentRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration &clientConfiguration=Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration())
virtual Model::InvokeFlowOutcome InvokeFlow(Model::InvokeFlowRequest &request) const
virtual Model::RetrieveOutcome Retrieve(const Model::RetrieveRequest &request) const
BedrockAgentRuntimeEndpointProvider EndpointProviderType
void RetrieveAndGenerateAsync(const RetrieveAndGenerateRequestT &request, const RetrieveAndGenerateResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::Client::AWSJsonClient BASECLASS
BedrockAgentRuntimeClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::RetrieveAndGenerateOutcomeCallable RetrieveAndGenerateCallable(const RetrieveAndGenerateRequestT &request) const
void InvokeAgentAsync(InvokeAgentRequestT &request, const InvokeAgentResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void DeleteAgentMemoryAsync(const DeleteAgentMemoryRequestT &request, const DeleteAgentMemoryResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void InvokeFlowAsync(InvokeFlowRequestT &request, const InvokeFlowResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< BedrockAgentRuntimeEndpointProviderBase > & accessEndpointProvider()
virtual Model::RetrieveAndGenerateOutcome RetrieveAndGenerate(const Model::RetrieveAndGenerateRequest &request) const
virtual Model::DeleteAgentMemoryOutcome DeleteAgentMemory(const Model::DeleteAgentMemoryRequest &request) const
Model::InvokeAgentOutcomeCallable InvokeAgentCallable(InvokeAgentRequestT &request) const
Model::DeleteAgentMemoryOutcomeCallable DeleteAgentMemoryCallable(const DeleteAgentMemoryRequestT &request) const
BedrockAgentRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< BedrockAgentRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration &clientConfiguration=Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration())
BedrockAgentRuntimeClient(const Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration &clientConfiguration=Aws::BedrockAgentRuntime::BedrockAgentRuntimeClientConfiguration(), std::shared_ptr< BedrockAgentRuntimeEndpointProviderBase > endpointProvider=nullptr)
void GetAgentMemoryAsync(const GetAgentMemoryRequestT &request, const GetAgentMemoryResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
BedrockAgentRuntimeClientConfiguration ClientConfigurationType
virtual Model::InvokeAgentOutcome InvokeAgent(Model::InvokeAgentRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::GetAgentMemoryOutcome GetAgentMemory(const Model::GetAgentMemoryRequest &request) const
std::future< GetAgentMemoryOutcome > GetAgentMemoryOutcomeCallable
std::future< InvokeFlowOutcome > InvokeFlowOutcomeCallable
std::future< RetrieveOutcome > RetrieveOutcomeCallable
std::future< InvokeAgentOutcome > InvokeAgentOutcomeCallable
std::future< RetrieveAndGenerateOutcome > RetrieveAndGenerateOutcomeCallable
std::future< DeleteAgentMemoryOutcome > DeleteAgentMemoryOutcomeCallable
std::function< void(const BedrockAgentRuntimeClient *, const Model::RetrieveAndGenerateRequest &, const Model::RetrieveAndGenerateOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RetrieveAndGenerateResponseReceivedHandler
std::function< void(const BedrockAgentRuntimeClient *, const Model::RetrieveRequest &, const Model::RetrieveOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RetrieveResponseReceivedHandler
std::function< void(const BedrockAgentRuntimeClient *, const Model::InvokeAgentRequest &, const Model::InvokeAgentOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > InvokeAgentResponseReceivedHandler
std::function< void(const BedrockAgentRuntimeClient *, const Model::GetAgentMemoryRequest &, const Model::GetAgentMemoryOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAgentMemoryResponseReceivedHandler
std::function< void(const BedrockAgentRuntimeClient *, const Model::DeleteAgentMemoryRequest &, const Model::DeleteAgentMemoryOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteAgentMemoryResponseReceivedHandler
std::function< void(const BedrockAgentRuntimeClient *, const Model::InvokeFlowRequest &, const Model::InvokeFlowOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > InvokeFlowResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String