7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/AIAgentType.h>
11#include <aws/qconnect/model/AIPromptType.h>
12#include <aws/qconnect/model/SpanMessage.h>
13#include <aws/qconnect/model/SpanMessageValue.h>
46 template <
typename OperationNameT = Aws::String>
48 m_operationNameHasBeenSet =
true;
49 m_operationName = std::forward<OperationNameT>(value);
51 template <
typename OperationNameT = Aws::String>
64 template <
typename Prov
iderNameT = Aws::String>
66 m_providerNameHasBeenSet =
true;
67 m_providerName = std::forward<ProviderNameT>(value);
69 template <
typename Prov
iderNameT = Aws::String>
82 template <
typename ErrorTypeT = Aws::String>
84 m_errorTypeHasBeenSet =
true;
85 m_errorType = std::forward<ErrorTypeT>(value);
87 template <
typename ErrorTypeT = Aws::String>
100 template <
typename AgentIdT = Aws::String>
102 m_agentIdHasBeenSet =
true;
103 m_agentId = std::forward<AgentIdT>(value);
105 template <
typename AgentIdT = Aws::String>
118 template <
typename InstanceArnT = Aws::String>
120 m_instanceArnHasBeenSet =
true;
121 m_instanceArn = std::forward<InstanceArnT>(value);
123 template <
typename InstanceArnT = Aws::String>
136 template <
typename ContactIdT = Aws::String>
138 m_contactIdHasBeenSet =
true;
139 m_contactId = std::forward<ContactIdT>(value);
141 template <
typename ContactIdT = Aws::String>
154 template <
typename InitialContactIdT = Aws::String>
156 m_initialContactIdHasBeenSet =
true;
157 m_initialContactId = std::forward<InitialContactIdT>(value);
159 template <
typename InitialContactIdT = Aws::String>
172 template <
typename SessionNameT = Aws::String>
174 m_sessionNameHasBeenSet =
true;
175 m_sessionName = std::forward<SessionNameT>(value);
177 template <
typename SessionNameT = Aws::String>
190 template <
typename AiAgentArnT = Aws::String>
192 m_aiAgentArnHasBeenSet =
true;
193 m_aiAgentArn = std::forward<AiAgentArnT>(value);
195 template <
typename AiAgentArnT = Aws::String>
209 m_aiAgentTypeHasBeenSet =
true;
210 m_aiAgentType = value;
224 template <
typename AiAgentNameT = Aws::String>
226 m_aiAgentNameHasBeenSet =
true;
227 m_aiAgentName = std::forward<AiAgentNameT>(value);
229 template <
typename AiAgentNameT = Aws::String>
242 template <
typename AiAgentIdT = Aws::String>
244 m_aiAgentIdHasBeenSet =
true;
245 m_aiAgentId = std::forward<AiAgentIdT>(value);
247 template <
typename AiAgentIdT = Aws::String>
261 m_aiAgentVersionHasBeenSet =
true;
262 m_aiAgentVersion = value;
276 template <
typename AiAgentInvokerT = Aws::String>
278 m_aiAgentInvokerHasBeenSet =
true;
279 m_aiAgentInvoker = std::forward<AiAgentInvokerT>(value);
281 template <
typename AiAgentInvokerT = Aws::String>
294 template <
typename AiAgentOrchestratorUseCaseT = Aws::String>
296 m_aiAgentOrchestratorUseCaseHasBeenSet =
true;
297 m_aiAgentOrchestratorUseCase = std::forward<AiAgentOrchestratorUseCaseT>(value);
299 template <
typename AiAgentOrchestratorUseCaseT = Aws::String>
312 template <
typename RequestModelT = Aws::String>
314 m_requestModelHasBeenSet =
true;
315 m_requestModel = std::forward<RequestModelT>(value);
317 template <
typename RequestModelT = Aws::String>
331 m_requestMaxTokensHasBeenSet =
true;
332 m_requestMaxTokens = value;
347 m_temperatureHasBeenSet =
true;
348 m_temperature = value;
360 inline double GetTopP()
const {
return m_topP; }
363 m_topPHasBeenSet =
true;
378 template <
typename ResponseModelT = Aws::String>
380 m_responseModelHasBeenSet =
true;
381 m_responseModel = std::forward<ResponseModelT>(value);
383 template <
typename ResponseModelT = Aws::String>
396 template <
typename ResponseFinishReasonsT = Aws::Vector<Aws::String>>
398 m_responseFinishReasonsHasBeenSet =
true;
399 m_responseFinishReasons = std::forward<ResponseFinishReasonsT>(value);
401 template <
typename ResponseFinishReasonsT = Aws::Vector<Aws::String>>
406 template <
typename ResponseFinishReasonsT = Aws::String>
408 m_responseFinishReasonsHasBeenSet =
true;
409 m_responseFinishReasons.emplace_back(std::forward<ResponseFinishReasonsT>(value));
421 m_usageInputTokensHasBeenSet =
true;
422 m_usageInputTokens = value;
437 m_usageOutputTokensHasBeenSet =
true;
438 m_usageOutputTokens = value;
453 m_usageTotalTokensHasBeenSet =
true;
454 m_usageTotalTokens = value;
469 m_cacheReadInputTokensHasBeenSet =
true;
470 m_cacheReadInputTokens = value;
485 m_cacheWriteInputTokensHasBeenSet =
true;
486 m_cacheWriteInputTokens = value;
500 template <
typename InputMessagesT = Aws::Vector<SpanMessage>>
502 m_inputMessagesHasBeenSet =
true;
503 m_inputMessages = std::forward<InputMessagesT>(value);
505 template <
typename InputMessagesT = Aws::Vector<SpanMessage>>
510 template <
typename InputMessagesT = SpanMessage>
512 m_inputMessagesHasBeenSet =
true;
513 m_inputMessages.emplace_back(std::forward<InputMessagesT>(value));
524 template <
typename OutputMessagesT = Aws::Vector<SpanMessage>>
526 m_outputMessagesHasBeenSet =
true;
527 m_outputMessages = std::forward<OutputMessagesT>(value);
529 template <
typename OutputMessagesT = Aws::Vector<SpanMessage>>
534 template <
typename OutputMessagesT = SpanMessage>
536 m_outputMessagesHasBeenSet =
true;
537 m_outputMessages.emplace_back(std::forward<OutputMessagesT>(value));
548 template <
typename SystemInstructionsT = Aws::Vector<SpanMessageValue>>
550 m_systemInstructionsHasBeenSet =
true;
551 m_systemInstructions = std::forward<SystemInstructionsT>(value);
553 template <
typename SystemInstructionsT = Aws::Vector<SpanMessageValue>>
558 template <
typename SystemInstructionsT = SpanMessageValue>
560 m_systemInstructionsHasBeenSet =
true;
561 m_systemInstructions.emplace_back(std::forward<SystemInstructionsT>(value));
572 template <
typename PromptArnT = Aws::String>
574 m_promptArnHasBeenSet =
true;
575 m_promptArn = std::forward<PromptArnT>(value);
577 template <
typename PromptArnT = Aws::String>
590 template <
typename PromptIdT = Aws::String>
592 m_promptIdHasBeenSet =
true;
593 m_promptId = std::forward<PromptIdT>(value);
595 template <
typename PromptIdT = Aws::String>
609 m_promptTypeHasBeenSet =
true;
610 m_promptType = value;
624 template <
typename PromptNameT = Aws::String>
626 m_promptNameHasBeenSet =
true;
627 m_promptName = std::forward<PromptNameT>(value);
629 template <
typename PromptNameT = Aws::String>
643 m_promptVersionHasBeenSet =
true;
644 m_promptVersion = value;
676 int m_aiAgentVersion{0};
684 int m_requestMaxTokens{0};
686 double m_temperature{0.0};
694 int m_usageInputTokens{0};
696 int m_usageOutputTokens{0};
698 int m_usageTotalTokens{0};
700 int m_cacheReadInputTokens{0};
702 int m_cacheWriteInputTokens{0};
718 int m_promptVersion{0};
719 bool m_operationNameHasBeenSet =
false;
720 bool m_providerNameHasBeenSet =
false;
721 bool m_errorTypeHasBeenSet =
false;
722 bool m_agentIdHasBeenSet =
false;
723 bool m_instanceArnHasBeenSet =
false;
724 bool m_contactIdHasBeenSet =
false;
725 bool m_initialContactIdHasBeenSet =
false;
726 bool m_sessionNameHasBeenSet =
false;
727 bool m_aiAgentArnHasBeenSet =
false;
728 bool m_aiAgentTypeHasBeenSet =
false;
729 bool m_aiAgentNameHasBeenSet =
false;
730 bool m_aiAgentIdHasBeenSet =
false;
731 bool m_aiAgentVersionHasBeenSet =
false;
732 bool m_aiAgentInvokerHasBeenSet =
false;
733 bool m_aiAgentOrchestratorUseCaseHasBeenSet =
false;
734 bool m_requestModelHasBeenSet =
false;
735 bool m_requestMaxTokensHasBeenSet =
false;
736 bool m_temperatureHasBeenSet =
false;
737 bool m_topPHasBeenSet =
false;
738 bool m_responseModelHasBeenSet =
false;
739 bool m_responseFinishReasonsHasBeenSet =
false;
740 bool m_usageInputTokensHasBeenSet =
false;
741 bool m_usageOutputTokensHasBeenSet =
false;
742 bool m_usageTotalTokensHasBeenSet =
false;
743 bool m_cacheReadInputTokensHasBeenSet =
false;
744 bool m_cacheWriteInputTokensHasBeenSet =
false;
745 bool m_inputMessagesHasBeenSet =
false;
746 bool m_outputMessagesHasBeenSet =
false;
747 bool m_systemInstructionsHasBeenSet =
false;
748 bool m_promptArnHasBeenSet =
false;
749 bool m_promptIdHasBeenSet =
false;
750 bool m_promptTypeHasBeenSet =
false;
751 bool m_promptNameHasBeenSet =
false;
752 bool m_promptVersionHasBeenSet =
false;
const Aws::String & GetAgentId() const
void SetUsageOutputTokens(int value)
const Aws::Vector< SpanMessage > & GetOutputMessages() const
const Aws::String & GetSessionName() const
SpanAttributes & WithAgentId(AgentIdT &&value)
bool OutputMessagesHasBeenSet() const
const Aws::String & GetErrorType() const
AIPromptType GetPromptType() const
double GetTemperature() const
bool InitialContactIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetResponseFinishReasons() const
int GetUsageInputTokens() const
bool ErrorTypeHasBeenSet() const
SpanAttributes & WithInitialContactId(InitialContactIdT &&value)
void SetPromptName(PromptNameT &&value)
void SetAiAgentType(AIAgentType value)
bool PromptIdHasBeenSet() const
void SetAiAgentOrchestratorUseCase(AiAgentOrchestratorUseCaseT &&value)
SpanAttributes & WithResponseModel(ResponseModelT &&value)
bool AiAgentNameHasBeenSet() const
void SetCacheWriteInputTokens(int value)
SpanAttributes & WithRequestModel(RequestModelT &&value)
void SetInstanceArn(InstanceArnT &&value)
void SetContactId(ContactIdT &&value)
void SetPromptArn(PromptArnT &&value)
void SetProviderName(ProviderNameT &&value)
SpanAttributes & AddInputMessages(InputMessagesT &&value)
bool UsageTotalTokensHasBeenSet() const
SpanAttributes & WithOperationName(OperationNameT &&value)
bool CacheWriteInputTokensHasBeenSet() const
SpanAttributes & WithAiAgentType(AIAgentType value)
bool PromptArnHasBeenSet() const
SpanAttributes & WithPromptArn(PromptArnT &&value)
int GetPromptVersion() const
SpanAttributes & WithSystemInstructions(SystemInstructionsT &&value)
SpanAttributes & WithTemperature(double value)
const Aws::Vector< SpanMessageValue > & GetSystemInstructions() const
SpanAttributes & WithContactId(ContactIdT &&value)
SpanAttributes & WithAiAgentOrchestratorUseCase(AiAgentOrchestratorUseCaseT &&value)
void SetInitialContactId(InitialContactIdT &&value)
SpanAttributes & WithResponseFinishReasons(ResponseFinishReasonsT &&value)
const Aws::String & GetAiAgentArn() const
SpanAttributes & WithAiAgentVersion(int value)
bool PromptVersionHasBeenSet() const
void SetAiAgentId(AiAgentIdT &&value)
bool UsageOutputTokensHasBeenSet() const
SpanAttributes & WithAiAgentArn(AiAgentArnT &&value)
void SetTopP(double value)
SpanAttributes & WithCacheReadInputTokens(int value)
SpanAttributes & WithPromptName(PromptNameT &&value)
bool SessionNameHasBeenSet() const
bool AiAgentOrchestratorUseCaseHasBeenSet() const
bool UsageInputTokensHasBeenSet() const
int GetUsageTotalTokens() const
SpanAttributes & WithCacheWriteInputTokens(int value)
SpanAttributes & WithRequestMaxTokens(int value)
bool OperationNameHasBeenSet() const
SpanAttributes & WithPromptId(PromptIdT &&value)
const Aws::String & GetInitialContactId() const
const Aws::String & GetAiAgentId() const
bool ContactIdHasBeenSet() const
int GetRequestMaxTokens() const
SpanAttributes & WithTopP(double value)
void SetInputMessages(InputMessagesT &&value)
bool InputMessagesHasBeenSet() const
const Aws::String & GetProviderName() const
int GetAiAgentVersion() const
const Aws::String & GetAiAgentOrchestratorUseCase() const
void SetRequestMaxTokens(int value)
bool PromptTypeHasBeenSet() const
SpanAttributes & WithSessionName(SessionNameT &&value)
bool ProviderNameHasBeenSet() const
const Aws::String & GetContactId() const
SpanAttributes & WithUsageInputTokens(int value)
SpanAttributes & AddOutputMessages(OutputMessagesT &&value)
SpanAttributes & AddResponseFinishReasons(ResponseFinishReasonsT &&value)
bool AiAgentArnHasBeenSet() const
const Aws::String & GetAiAgentName() const
void SetPromptId(PromptIdT &&value)
void SetErrorType(ErrorTypeT &&value)
void SetTemperature(double value)
AWS_QCONNECT_API SpanAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRequestModel(RequestModelT &&value)
AWS_QCONNECT_API SpanAttributes()=default
bool TemperatureHasBeenSet() const
bool CacheReadInputTokensHasBeenSet() const
bool ResponseFinishReasonsHasBeenSet() const
SpanAttributes & WithUsageOutputTokens(int value)
void SetAiAgentInvoker(AiAgentInvokerT &&value)
const Aws::Vector< SpanMessage > & GetInputMessages() const
void SetAiAgentVersion(int value)
const Aws::String & GetResponseModel() const
bool RequestModelHasBeenSet() const
void SetResponseFinishReasons(ResponseFinishReasonsT &&value)
bool TopPHasBeenSet() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSystemInstructions(SystemInstructionsT &&value)
void SetSessionName(SessionNameT &&value)
SpanAttributes & WithPromptVersion(int value)
void SetUsageInputTokens(int value)
void SetResponseModel(ResponseModelT &&value)
SpanAttributes & AddSystemInstructions(SystemInstructionsT &&value)
SpanAttributes & WithAiAgentId(AiAgentIdT &&value)
bool AiAgentInvokerHasBeenSet() const
const Aws::String & GetRequestModel() const
void SetAiAgentArn(AiAgentArnT &&value)
SpanAttributes & WithInputMessages(InputMessagesT &&value)
bool AiAgentIdHasBeenSet() const
void SetUsageTotalTokens(int value)
SpanAttributes & WithInstanceArn(InstanceArnT &&value)
SpanAttributes & WithErrorType(ErrorTypeT &&value)
const Aws::String & GetOperationName() const
bool SystemInstructionsHasBeenSet() const
int GetUsageOutputTokens() const
const Aws::String & GetPromptName() const
int GetCacheWriteInputTokens() const
SpanAttributes & WithOutputMessages(OutputMessagesT &&value)
const Aws::String & GetPromptId() const
void SetOperationName(OperationNameT &&value)
AIAgentType GetAiAgentType() const
const Aws::String & GetPromptArn() const
void SetOutputMessages(OutputMessagesT &&value)
SpanAttributes & WithProviderName(ProviderNameT &&value)
bool RequestMaxTokensHasBeenSet() const
AWS_QCONNECT_API SpanAttributes(Aws::Utils::Json::JsonView jsonValue)
int GetCacheReadInputTokens() const
bool AiAgentTypeHasBeenSet() const
SpanAttributes & WithAiAgentName(AiAgentNameT &&value)
void SetCacheReadInputTokens(int value)
SpanAttributes & WithPromptType(AIPromptType value)
void SetAgentId(AgentIdT &&value)
const Aws::String & GetInstanceArn() const
SpanAttributes & WithAiAgentInvoker(AiAgentInvokerT &&value)
bool ResponseModelHasBeenSet() const
const Aws::String & GetAiAgentInvoker() const
void SetAiAgentName(AiAgentNameT &&value)
bool InstanceArnHasBeenSet() const
bool PromptNameHasBeenSet() const
bool AiAgentVersionHasBeenSet() const
void SetPromptVersion(int value)
void SetPromptType(AIPromptType value)
bool AgentIdHasBeenSet() const
SpanAttributes & WithUsageTotalTokens(int value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue