AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BedrockAgentRuntimeClient.h
1
6#pragma once
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>
13
14namespace Aws
15{
16namespace BedrockAgentRuntime
17{
22 class AWS_BEDROCKAGENTRUNTIME_API BedrockAgentRuntimeClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<BedrockAgentRuntimeClient>
23 {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider = nullptr);
38
44 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider = nullptr,
46
51 BedrockAgentRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> endpointProvider = nullptr,
54
55
56 /* Legacy constructors due deprecation */
62
68 const Aws::Client::ClientConfiguration& clientConfiguration);
69
74 BedrockAgentRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
77 /* End of legacy constructors due deprecation */
79
87
91 template<typename DeleteAgentMemoryRequestT = Model::DeleteAgentMemoryRequest>
92 Model::DeleteAgentMemoryOutcomeCallable DeleteAgentMemoryCallable(const DeleteAgentMemoryRequestT& request) const
93 {
94 return SubmitCallable(&BedrockAgentRuntimeClient::DeleteAgentMemory, request);
95 }
96
100 template<typename DeleteAgentMemoryRequestT = Model::DeleteAgentMemoryRequest>
101 void DeleteAgentMemoryAsync(const DeleteAgentMemoryRequestT& request, const DeleteAgentMemoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
102 {
103 return SubmitAsync(&BedrockAgentRuntimeClient::DeleteAgentMemory, request, handler, context);
104 }
105
113
117 template<typename GetAgentMemoryRequestT = Model::GetAgentMemoryRequest>
118 Model::GetAgentMemoryOutcomeCallable GetAgentMemoryCallable(const GetAgentMemoryRequestT& request) const
119 {
120 return SubmitCallable(&BedrockAgentRuntimeClient::GetAgentMemory, request);
121 }
122
126 template<typename GetAgentMemoryRequestT = Model::GetAgentMemoryRequest>
127 void GetAgentMemoryAsync(const GetAgentMemoryRequestT& request, const GetAgentMemoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
128 {
129 return SubmitAsync(&BedrockAgentRuntimeClient::GetAgentMemory, request, handler, context);
130 }
131
161
165 template<typename InvokeAgentRequestT = Model::InvokeAgentRequest>
166 Model::InvokeAgentOutcomeCallable InvokeAgentCallable(InvokeAgentRequestT& request) const
167 {
168 return SubmitCallable(&BedrockAgentRuntimeClient::InvokeAgent, request);
169 }
170
174 template<typename InvokeAgentRequestT = Model::InvokeAgentRequest>
175 void InvokeAgentAsync(InvokeAgentRequestT& request, const InvokeAgentResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
176 {
177 return SubmitAsync(&BedrockAgentRuntimeClient::InvokeAgent, request, handler, context);
178 }
179
192
196 template<typename InvokeFlowRequestT = Model::InvokeFlowRequest>
197 Model::InvokeFlowOutcomeCallable InvokeFlowCallable(InvokeFlowRequestT& request) const
198 {
199 return SubmitCallable(&BedrockAgentRuntimeClient::InvokeFlow, request);
200 }
201
205 template<typename InvokeFlowRequestT = Model::InvokeFlowRequest>
206 void InvokeFlowAsync(InvokeFlowRequestT& request, const InvokeFlowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
207 {
208 return SubmitAsync(&BedrockAgentRuntimeClient::InvokeFlow, request, handler, context);
209 }
210
218
222 template<typename RetrieveRequestT = Model::RetrieveRequest>
223 Model::RetrieveOutcomeCallable RetrieveCallable(const RetrieveRequestT& request) const
224 {
225 return SubmitCallable(&BedrockAgentRuntimeClient::Retrieve, request);
226 }
227
231 template<typename RetrieveRequestT = Model::RetrieveRequest>
232 void RetrieveAsync(const RetrieveRequestT& request, const RetrieveResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
233 {
234 return SubmitAsync(&BedrockAgentRuntimeClient::Retrieve, request, handler, context);
235 }
236
247
251 template<typename RetrieveAndGenerateRequestT = Model::RetrieveAndGenerateRequest>
252 Model::RetrieveAndGenerateOutcomeCallable RetrieveAndGenerateCallable(const RetrieveAndGenerateRequestT& request) const
253 {
254 return SubmitCallable(&BedrockAgentRuntimeClient::RetrieveAndGenerate, request);
255 }
256
260 template<typename RetrieveAndGenerateRequestT = Model::RetrieveAndGenerateRequest>
261 void RetrieveAndGenerateAsync(const RetrieveAndGenerateRequestT& request, const RetrieveAndGenerateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
262 {
263 return SubmitAsync(&BedrockAgentRuntimeClient::RetrieveAndGenerate, request, handler, context);
264 }
265
266
267 void OverrideEndpoint(const Aws::String& endpoint);
268 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase>& accessEndpointProvider();
269 private:
271 void init(const BedrockAgentRuntimeClientConfiguration& clientConfiguration);
272
273 BedrockAgentRuntimeClientConfiguration m_clientConfiguration;
274 std::shared_ptr<BedrockAgentRuntimeEndpointProviderBase> m_endpointProvider;
275 };
276
277} // namespace BedrockAgentRuntime
278} // namespace Aws
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
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
void RetrieveAndGenerateAsync(const RetrieveAndGenerateRequestT &request, const RetrieveAndGenerateResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
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< 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