AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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/InvokeGuardrailChecksResult.h>
27#include <aws/bedrock-runtime/model/InvokeModelResult.h>
28#include <aws/bedrock-runtime/model/ListAsyncInvokesRequest.h>
29#include <aws/bedrock-runtime/model/ListAsyncInvokesResult.h>
30#include <aws/bedrock-runtime/model/StartAsyncInvokeResult.h>
31#include <aws/core/NoResult.h>
32/* End of service model headers required in BedrockRuntimeClient header */
33
34namespace Aws {
35namespace Http {
36class HttpClient;
37class HttpClientFactory;
38} // namespace Http
39
40namespace Utils {
41template <typename R, typename E>
42class Outcome;
43
44namespace Event {
45class EventEncoderStream;
46} // namespace Event
47
48namespace Threading {
49class Executor;
50} // namespace Threading
51} // namespace Utils
52
53namespace Auth {
54class BearerTokenAuthSignerProvider;
55class AWSCredentials;
56class AWSCredentialsProvider;
57} // namespace Auth
58
59namespace Client {
60class RetryStrategy;
61} // namespace Client
62
63namespace BedrockRuntime {
66
67namespace Model {
68/* Service model forward declarations required in BedrockRuntimeClient header */
70class ConverseRequest;
81/* End of service model forward declarations required in BedrockRuntimeClient header */
82
83/* Service model Outcome class definitions */
95/* End of service model Outcome class definitions */
96
97/* Service model Outcome callable definitions */
98typedef std::future<ApplyGuardrailOutcome> ApplyGuardrailOutcomeCallable;
99typedef std::future<ConverseOutcome> ConverseOutcomeCallable;
100typedef std::future<ConverseStreamOutcome> ConverseStreamOutcomeCallable;
101typedef std::future<CountTokensOutcome> CountTokensOutcomeCallable;
102typedef std::future<GetAsyncInvokeOutcome> GetAsyncInvokeOutcomeCallable;
103typedef std::future<InvokeGuardrailChecksOutcome> InvokeGuardrailChecksOutcomeCallable;
104typedef std::future<InvokeModelOutcome> InvokeModelOutcomeCallable;
105typedef std::future<InvokeModelWithBidirectionalStreamOutcome> InvokeModelWithBidirectionalStreamOutcomeCallable;
106typedef std::future<InvokeModelWithResponseStreamOutcome> InvokeModelWithResponseStreamOutcomeCallable;
107typedef std::future<ListAsyncInvokesOutcome> ListAsyncInvokesOutcomeCallable;
108typedef std::future<StartAsyncInvokeOutcome> StartAsyncInvokeOutcomeCallable;
109/* End of service model Outcome callable definitions */
110} // namespace Model
111
113
114/* Service model async handlers definitions */
116 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
118typedef std::function<void(const BedrockRuntimeClient*, const Model::ConverseRequest&, const Model::ConverseOutcome&,
119 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
122 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
124typedef std::function<void(const BedrockRuntimeClient*, const Model::CountTokensRequest&, const Model::CountTokensOutcome&,
125 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
128 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
130typedef std::function<void(const BedrockRuntimeClient*, const Model::InvokeGuardrailChecksRequest&,
131 const Model::InvokeGuardrailChecksOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
134 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
139 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
143 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
146 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
149 const std::shared_ptr<const Aws::Client::AsyncCallerContext>&)>
151/* End of service model async handlers definitions */
152} // namespace BedrockRuntime
153} // namespace Aws
EndpointProviderBase< BedrockRuntimeClientConfiguration, BedrockRuntimeBuiltInParameters, BedrockRuntimeClientContextParameters > BedrockRuntimeEndpointProviderBase
Aws::Utils::Outcome< ApplyGuardrailResult, BedrockRuntimeError > ApplyGuardrailOutcome
Aws::Utils::Outcome< InvokeGuardrailChecksResult, BedrockRuntimeError > InvokeGuardrailChecksOutcome
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::future< InvokeGuardrailChecksOutcome > InvokeGuardrailChecksOutcomeCallable
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::InvokeGuardrailChecksRequest &, const Model::InvokeGuardrailChecksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeGuardrailChecksResponseReceivedHandler
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
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)