AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
BedrockRuntimeServiceClientModel.h
1
6#pragma once
7
8/* Generic header includes */
9#include <aws/bedrock-runtime/BedrockRuntimeEndpointProvider.h>
10#include <aws/bedrock-runtime/BedrockRuntimeErrors.h>
11#include <aws/core/client/AWSError.h>
12#include <aws/core/client/AsyncCallerContext.h>
13#include <aws/core/client/GenericClientConfiguration.h>
14#include <aws/core/http/HttpTypes.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <functional>
18#include <future>
19/* End of generic header includes */
20
21/* Service model headers required in BedrockRuntimeClient header */
22#include <aws/bedrock-runtime/model/ApplyGuardrailResult.h>
23#include <aws/bedrock-runtime/model/ConverseResult.h>
24#include <aws/bedrock-runtime/model/CountTokensResult.h>
25#include <aws/bedrock-runtime/model/GetAsyncInvokeResult.h>
26#include <aws/bedrock-runtime/model/InvokeModelResult.h>
27#include <aws/bedrock-runtime/model/ListAsyncInvokesRequest.h>
28#include <aws/bedrock-runtime/model/ListAsyncInvokesResult.h>
29#include <aws/bedrock-runtime/model/StartAsyncInvokeResult.h>
30#include <aws/core/NoResult.h>
31/* End of service model headers required in BedrockRuntimeClient header */
32
33namespace Aws {
34namespace Http {
35class HttpClient;
36class HttpClientFactory;
37} // namespace Http
38
39namespace Utils {
40template <typename R, typename E>
41class Outcome;
42
43namespace Event {
44class EventEncoderStream;
45} // namespace Event
46
47namespace Threading {
48class Executor;
49} // namespace Threading
50} // namespace Utils
51
52namespace Auth {
53class AWSCredentials;
54class AWSCredentialsProvider;
55} // namespace Auth
56
57namespace Client {
58class RetryStrategy;
59} // namespace Client
60
61namespace BedrockRuntime {
65
66namespace Model {
67/* Service model forward declarations required in BedrockRuntimeClient header */
69class ConverseRequest;
79/* End of service model forward declarations required in BedrockRuntimeClient header */
80
81/* Service model Outcome class definitions */
92/* End of service model Outcome class definitions */
93
94/* Service model Outcome callable definitions */
95typedef std::future<ApplyGuardrailOutcome> ApplyGuardrailOutcomeCallable;
96typedef std::future<ConverseOutcome> ConverseOutcomeCallable;
97typedef std::future<ConverseStreamOutcome> ConverseStreamOutcomeCallable;
98typedef std::future<CountTokensOutcome> CountTokensOutcomeCallable;
99typedef std::future<GetAsyncInvokeOutcome> GetAsyncInvokeOutcomeCallable;
100typedef std::future<InvokeModelOutcome> InvokeModelOutcomeCallable;
101typedef std::future<InvokeModelWithBidirectionalStreamOutcome> InvokeModelWithBidirectionalStreamOutcomeCallable;
102typedef std::future<InvokeModelWithResponseStreamOutcome> InvokeModelWithResponseStreamOutcomeCallable;
103typedef std::future<ListAsyncInvokesOutcome> ListAsyncInvokesOutcomeCallable;
104typedef std::future<StartAsyncInvokeOutcome> StartAsyncInvokeOutcomeCallable;
105/* End of service model Outcome callable definitions */
106} // namespace Model
107
109
110/* Service model async handlers definitions */
111typedef std::function<void(const BedrockRuntimeClient*, const Model::ApplyGuardrailRequest&, const Model::ApplyGuardrailOutcome&,
112 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
114typedef std::function<void(const BedrockRuntimeClient*, const Model::ConverseRequest&, const Model::ConverseOutcome&,
115 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
117typedef std::function<void(const BedrockRuntimeClient*, const Model::ConverseStreamRequest&, const Model::ConverseStreamOutcome&,
118 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
120typedef std::function<void(const BedrockRuntimeClient*, const Model::CountTokensRequest&, const Model::CountTokensOutcome&,
121 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
123typedef std::function<void(const BedrockRuntimeClient*, const Model::GetAsyncInvokeRequest&, const Model::GetAsyncInvokeOutcome&,
124 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
126typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelRequest&, Model::InvokeModelOutcome,
127 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
130typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelWithBidirectionalStreamRequest&,
132 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
134typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelWithResponseStreamRequest&,
136 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
138typedef std::function<void(const BedrockRuntimeClient*, const Model::ListAsyncInvokesRequest&, const Model::ListAsyncInvokesOutcome&,
139 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
141typedef std::function<void(const BedrockRuntimeClient*, const Model::StartAsyncInvokeRequest&, const Model::StartAsyncInvokeOutcome&,
142 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
144/* End of service model async handlers definitions */
145} // namespace BedrockRuntime
146} // namespace Aws
EndpointProviderBase< BedrockRuntimeClientConfiguration, BedrockRuntimeBuiltInParameters, BedrockRuntimeClientContextParameters > BedrockRuntimeEndpointProviderBase
Aws::Utils::Outcome< ApplyGuardrailResult, BedrockRuntimeError > ApplyGuardrailOutcome
std::future< InvokeModelWithBidirectionalStreamOutcome > InvokeModelWithBidirectionalStreamOutcomeCallable
Aws::Utils::Outcome< CountTokensResult, BedrockRuntimeError > CountTokensOutcome
Aws::Utils::Outcome< StartAsyncInvokeResult, BedrockRuntimeError > StartAsyncInvokeOutcome
Aws::Utils::Outcome< Aws::NoResult, BedrockRuntimeError > InvokeModelWithResponseStreamOutcome
Aws::Utils::Outcome< ConverseResult, BedrockRuntimeError > ConverseOutcome
std::future< InvokeModelWithResponseStreamOutcome > InvokeModelWithResponseStreamOutcomeCallable
std::future< GetAsyncInvokeOutcome > GetAsyncInvokeOutcomeCallable
std::future< StartAsyncInvokeOutcome > StartAsyncInvokeOutcomeCallable
std::future< CountTokensOutcome > CountTokensOutcomeCallable
std::future< InvokeModelOutcome > InvokeModelOutcomeCallable
std::future< ConverseOutcome > ConverseOutcomeCallable
Aws::Utils::Outcome< ListAsyncInvokesResult, BedrockRuntimeError > ListAsyncInvokesOutcome
Aws::Utils::Outcome< Aws::NoResult, BedrockRuntimeError > ConverseStreamOutcome
std::future< ConverseStreamOutcome > ConverseStreamOutcomeCallable
Aws::Utils::Outcome< InvokeModelResult, BedrockRuntimeError > InvokeModelOutcome
std::future< ApplyGuardrailOutcome > ApplyGuardrailOutcomeCallable
Aws::Utils::Outcome< Aws::NoResult, BedrockRuntimeError > InvokeModelWithBidirectionalStreamOutcome
Aws::Utils::Outcome< GetAsyncInvokeResult, BedrockRuntimeError > GetAsyncInvokeOutcome
std::future< ListAsyncInvokesOutcome > ListAsyncInvokesOutcomeCallable
std::function< void(const BedrockRuntimeClient *, const Model::GetAsyncInvokeRequest &, const Model::GetAsyncInvokeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetAsyncInvokeResponseReceivedHandler
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::InvokeModelRequest &, Model::InvokeModelOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeModelResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::InvokeModelWithResponseStreamRequest &, const Model::InvokeModelWithResponseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeModelWithResponseStreamResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ListAsyncInvokesRequest &, const Model::ListAsyncInvokesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListAsyncInvokesResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ApplyGuardrailRequest &, const Model::ApplyGuardrailOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ApplyGuardrailResponseReceivedHandler
std::function< void(Model::InvokeModelWithBidirectionalStreamInput &)> InvokeModelWithBidirectionalStreamStreamReadyHandler
std::function< void(const BedrockRuntimeClient *, const Model::InvokeModelWithBidirectionalStreamRequest &, const Model::InvokeModelWithBidirectionalStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeModelWithBidirectionalStreamResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::CountTokensRequest &, const Model::CountTokensOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> CountTokensResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::StartAsyncInvokeRequest &, const Model::StartAsyncInvokeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> StartAsyncInvokeResponseReceivedHandler
std::function< void(const BedrockRuntimeClient *, const Model::ConverseStreamRequest &, const Model::ConverseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ConverseStreamResponseReceivedHandler