AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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/GetAsyncInvokeResult.h>
24#include <aws/bedrock-runtime/model/InvokeModelResult.h>
25#include <aws/bedrock-runtime/model/ListAsyncInvokesResult.h>
26#include <aws/bedrock-runtime/model/StartAsyncInvokeResult.h>
27#include <aws/bedrock-runtime/model/ListAsyncInvokesRequest.h>
28#include <aws/core/NoResult.h>
29/* End of service model headers required in BedrockRuntimeClient header */
30
31namespace Aws
32{
33 namespace Http
34 {
35 class HttpClient;
36 class HttpClientFactory;
37 } // namespace Http
38
39 namespace Utils
40 {
41 template< typename R, typename E> class Outcome;
42
43 namespace Event
44 {
45 class EventEncoderStream;
46 } // namespace Event
47
48 namespace Threading
49 {
50 class Executor;
51 } // namespace Threading
52 } // namespace Utils
53
54 namespace Auth
55 {
56 class AWSCredentials;
57 class AWSCredentialsProvider;
58 } // namespace Auth
59
60 namespace Client
61 {
62 class RetryStrategy;
63 } // namespace Client
64
65 namespace BedrockRuntime
66 {
70
71 namespace Model
72 {
73 /* Service model forward declarations required in BedrockRuntimeClient header */
75 class ConverseRequest;
84 /* End of service model forward declarations required in BedrockRuntimeClient header */
85
86 /* Service model Outcome class definitions */
96 /* End of service model Outcome class definitions */
97
98 /* Service model Outcome callable definitions */
99 typedef std::future<ApplyGuardrailOutcome> ApplyGuardrailOutcomeCallable;
100 typedef std::future<ConverseOutcome> ConverseOutcomeCallable;
101 typedef std::future<ConverseStreamOutcome> ConverseStreamOutcomeCallable;
102 typedef std::future<GetAsyncInvokeOutcome> GetAsyncInvokeOutcomeCallable;
103 typedef std::future<InvokeModelOutcome> InvokeModelOutcomeCallable;
104 typedef std::future<InvokeModelWithBidirectionalStreamOutcome> InvokeModelWithBidirectionalStreamOutcomeCallable;
105 typedef std::future<InvokeModelWithResponseStreamOutcome> InvokeModelWithResponseStreamOutcomeCallable;
106 typedef std::future<ListAsyncInvokesOutcome> ListAsyncInvokesOutcomeCallable;
107 typedef std::future<StartAsyncInvokeOutcome> StartAsyncInvokeOutcomeCallable;
108 /* End of service model Outcome callable definitions */
109 } // namespace Model
110
112
113 /* Service model async handlers definitions */
114 typedef std::function<void(const BedrockRuntimeClient*, const Model::ApplyGuardrailRequest&, const Model::ApplyGuardrailOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ApplyGuardrailResponseReceivedHandler;
115 typedef std::function<void(const BedrockRuntimeClient*, const Model::ConverseRequest&, const Model::ConverseOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ConverseResponseReceivedHandler;
116 typedef std::function<void(const BedrockRuntimeClient*, const Model::ConverseStreamRequest&, const Model::ConverseStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ConverseStreamResponseReceivedHandler;
117 typedef std::function<void(const BedrockRuntimeClient*, const Model::GetAsyncInvokeRequest&, const Model::GetAsyncInvokeOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetAsyncInvokeResponseReceivedHandler;
118 typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelRequest&, Model::InvokeModelOutcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeModelResponseReceivedHandler;
120 typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelWithBidirectionalStreamRequest&, const Model::InvokeModelWithBidirectionalStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeModelWithBidirectionalStreamResponseReceivedHandler;
121 typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeModelWithResponseStreamRequest&, const Model::InvokeModelWithResponseStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeModelWithResponseStreamResponseReceivedHandler;
122 typedef std::function<void(const BedrockRuntimeClient*, const Model::ListAsyncInvokesRequest&, const Model::ListAsyncInvokesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListAsyncInvokesResponseReceivedHandler;
123 typedef std::function<void(const BedrockRuntimeClient*, const Model::StartAsyncInvokeRequest&, const Model::StartAsyncInvokeOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartAsyncInvokeResponseReceivedHandler;
124 /* End of service model async handlers definitions */
125 } // namespace BedrockRuntime
126} // namespace Aws
EndpointProviderBase< BedrockRuntimeClientConfiguration, BedrockRuntimeBuiltInParameters, BedrockRuntimeClientContextParameters > BedrockRuntimeEndpointProviderBase
Aws::Utils::Outcome< ApplyGuardrailResult, BedrockRuntimeError > ApplyGuardrailOutcome
std::future< InvokeModelWithBidirectionalStreamOutcome > InvokeModelWithBidirectionalStreamOutcomeCallable
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< 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