AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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