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/SpanGuardrailAssessment.h>
13#include <aws/qconnect/model/SpanMessage.h>
14#include <aws/qconnect/model/SpanMessageValue.h>
47 template <
typename OperationNameT = Aws::String>
49 m_operationNameHasBeenSet =
true;
50 m_operationName = std::forward<OperationNameT>(value);
52 template <
typename OperationNameT = Aws::String>
65 template <
typename Prov
iderNameT = Aws::String>
67 m_providerNameHasBeenSet =
true;
68 m_providerName = std::forward<ProviderNameT>(value);
70 template <
typename Prov
iderNameT = Aws::String>
83 template <
typename ErrorTypeT = Aws::String>
85 m_errorTypeHasBeenSet =
true;
86 m_errorType = std::forward<ErrorTypeT>(value);
88 template <
typename ErrorTypeT = Aws::String>
101 template <
typename AgentIdT = Aws::String>
103 m_agentIdHasBeenSet =
true;
104 m_agentId = std::forward<AgentIdT>(value);
106 template <
typename AgentIdT = Aws::String>
119 template <
typename InstanceArnT = Aws::String>
121 m_instanceArnHasBeenSet =
true;
122 m_instanceArn = std::forward<InstanceArnT>(value);
124 template <
typename InstanceArnT = Aws::String>
137 template <
typename ContactIdT = Aws::String>
139 m_contactIdHasBeenSet =
true;
140 m_contactId = std::forward<ContactIdT>(value);
142 template <
typename ContactIdT = Aws::String>
155 template <
typename InitialContactIdT = Aws::String>
157 m_initialContactIdHasBeenSet =
true;
158 m_initialContactId = std::forward<InitialContactIdT>(value);
160 template <
typename InitialContactIdT = Aws::String>
173 template <
typename SessionNameT = Aws::String>
175 m_sessionNameHasBeenSet =
true;
176 m_sessionName = std::forward<SessionNameT>(value);
178 template <
typename SessionNameT = Aws::String>
191 template <
typename AiAgentArnT = Aws::String>
193 m_aiAgentArnHasBeenSet =
true;
194 m_aiAgentArn = std::forward<AiAgentArnT>(value);
196 template <
typename AiAgentArnT = Aws::String>
210 m_aiAgentTypeHasBeenSet =
true;
211 m_aiAgentType = value;
225 template <
typename AiAgentNameT = Aws::String>
227 m_aiAgentNameHasBeenSet =
true;
228 m_aiAgentName = std::forward<AiAgentNameT>(value);
230 template <
typename AiAgentNameT = Aws::String>
243 template <
typename AiAgentIdT = Aws::String>
245 m_aiAgentIdHasBeenSet =
true;
246 m_aiAgentId = std::forward<AiAgentIdT>(value);
248 template <
typename AiAgentIdT = Aws::String>
262 m_aiAgentVersionHasBeenSet =
true;
263 m_aiAgentVersion = value;
277 template <
typename AiAgentInvokerT = Aws::String>
279 m_aiAgentInvokerHasBeenSet =
true;
280 m_aiAgentInvoker = std::forward<AiAgentInvokerT>(value);
282 template <
typename AiAgentInvokerT = Aws::String>
295 template <
typename AiAgentOrchestratorUseCaseT = Aws::String>
297 m_aiAgentOrchestratorUseCaseHasBeenSet =
true;
298 m_aiAgentOrchestratorUseCase = std::forward<AiAgentOrchestratorUseCaseT>(value);
300 template <
typename AiAgentOrchestratorUseCaseT = Aws::String>
313 template <
typename RequestModelT = Aws::String>
315 m_requestModelHasBeenSet =
true;
316 m_requestModel = std::forward<RequestModelT>(value);
318 template <
typename RequestModelT = Aws::String>
332 m_requestMaxTokensHasBeenSet =
true;
333 m_requestMaxTokens = value;
348 m_temperatureHasBeenSet =
true;
349 m_temperature = value;
361 inline double GetTopP()
const {
return m_topP; }
364 m_topPHasBeenSet =
true;
379 template <
typename ResponseModelT = Aws::String>
381 m_responseModelHasBeenSet =
true;
382 m_responseModel = std::forward<ResponseModelT>(value);
384 template <
typename ResponseModelT = Aws::String>
397 template <
typename ResponseFinishReasonsT = Aws::Vector<Aws::String>>
399 m_responseFinishReasonsHasBeenSet =
true;
400 m_responseFinishReasons = std::forward<ResponseFinishReasonsT>(value);
402 template <
typename ResponseFinishReasonsT = Aws::Vector<Aws::String>>
407 template <
typename ResponseFinishReasonsT = Aws::String>
409 m_responseFinishReasonsHasBeenSet =
true;
410 m_responseFinishReasons.emplace_back(std::forward<ResponseFinishReasonsT>(value));
422 m_usageInputTokensHasBeenSet =
true;
423 m_usageInputTokens = value;
438 m_usageOutputTokensHasBeenSet =
true;
439 m_usageOutputTokens = value;
454 m_usageTotalTokensHasBeenSet =
true;
455 m_usageTotalTokens = value;
470 m_cacheReadInputTokensHasBeenSet =
true;
471 m_cacheReadInputTokens = value;
486 m_cacheWriteInputTokensHasBeenSet =
true;
487 m_cacheWriteInputTokens = value;
501 template <
typename InputMessagesT = Aws::Vector<SpanMessage>>
503 m_inputMessagesHasBeenSet =
true;
504 m_inputMessages = std::forward<InputMessagesT>(value);
506 template <
typename InputMessagesT = Aws::Vector<SpanMessage>>
511 template <
typename InputMessagesT = SpanMessage>
513 m_inputMessagesHasBeenSet =
true;
514 m_inputMessages.emplace_back(std::forward<InputMessagesT>(value));
525 template <
typename OutputMessagesT = Aws::Vector<SpanMessage>>
527 m_outputMessagesHasBeenSet =
true;
528 m_outputMessages = std::forward<OutputMessagesT>(value);
530 template <
typename OutputMessagesT = Aws::Vector<SpanMessage>>
535 template <
typename OutputMessagesT = SpanMessage>
537 m_outputMessagesHasBeenSet =
true;
538 m_outputMessages.emplace_back(std::forward<OutputMessagesT>(value));
549 template <
typename SystemInstructionsT = Aws::Vector<SpanMessageValue>>
551 m_systemInstructionsHasBeenSet =
true;
552 m_systemInstructions = std::forward<SystemInstructionsT>(value);
554 template <
typename SystemInstructionsT = Aws::Vector<SpanMessageValue>>
559 template <
typename SystemInstructionsT = SpanMessageValue>
561 m_systemInstructionsHasBeenSet =
true;
562 m_systemInstructions.emplace_back(std::forward<SystemInstructionsT>(value));
573 template <
typename PromptArnT = Aws::String>
575 m_promptArnHasBeenSet =
true;
576 m_promptArn = std::forward<PromptArnT>(value);
578 template <
typename PromptArnT = Aws::String>
591 template <
typename PromptIdT = Aws::String>
593 m_promptIdHasBeenSet =
true;
594 m_promptId = std::forward<PromptIdT>(value);
596 template <
typename PromptIdT = Aws::String>
610 m_promptTypeHasBeenSet =
true;
611 m_promptType = value;
625 template <
typename PromptNameT = Aws::String>
627 m_promptNameHasBeenSet =
true;
628 m_promptName = std::forward<PromptNameT>(value);
630 template <
typename PromptNameT = Aws::String>
644 m_promptVersionHasBeenSet =
true;
645 m_promptVersion = value;
661 m_timeToFirstTokenMsHasBeenSet =
true;
662 m_timeToFirstTokenMs = value;
677 template <
typename GuardrailAssessmentsT = Aws::Vector<SpanGuardrailAssessment>>
679 m_guardrailAssessmentsHasBeenSet =
true;
680 m_guardrailAssessments = std::forward<GuardrailAssessmentsT>(value);
682 template <
typename GuardrailAssessmentsT = Aws::Vector<SpanGuardrailAssessment>>
687 template <
typename GuardrailAssessmentsT = SpanGuardrailAssessment>
689 m_guardrailAssessmentsHasBeenSet =
true;
690 m_guardrailAssessments.emplace_back(std::forward<GuardrailAssessmentsT>(value));
719 int m_aiAgentVersion{0};
727 int m_requestMaxTokens{0};
729 double m_temperature{0.0};
737 int m_usageInputTokens{0};
739 int m_usageOutputTokens{0};
741 int m_usageTotalTokens{0};
743 int m_cacheReadInputTokens{0};
745 int m_cacheWriteInputTokens{0};
761 int m_promptVersion{0};
763 int m_timeToFirstTokenMs{0};
766 bool m_operationNameHasBeenSet =
false;
767 bool m_providerNameHasBeenSet =
false;
768 bool m_errorTypeHasBeenSet =
false;
769 bool m_agentIdHasBeenSet =
false;
770 bool m_instanceArnHasBeenSet =
false;
771 bool m_contactIdHasBeenSet =
false;
772 bool m_initialContactIdHasBeenSet =
false;
773 bool m_sessionNameHasBeenSet =
false;
774 bool m_aiAgentArnHasBeenSet =
false;
775 bool m_aiAgentTypeHasBeenSet =
false;
776 bool m_aiAgentNameHasBeenSet =
false;
777 bool m_aiAgentIdHasBeenSet =
false;
778 bool m_aiAgentVersionHasBeenSet =
false;
779 bool m_aiAgentInvokerHasBeenSet =
false;
780 bool m_aiAgentOrchestratorUseCaseHasBeenSet =
false;
781 bool m_requestModelHasBeenSet =
false;
782 bool m_requestMaxTokensHasBeenSet =
false;
783 bool m_temperatureHasBeenSet =
false;
784 bool m_topPHasBeenSet =
false;
785 bool m_responseModelHasBeenSet =
false;
786 bool m_responseFinishReasonsHasBeenSet =
false;
787 bool m_usageInputTokensHasBeenSet =
false;
788 bool m_usageOutputTokensHasBeenSet =
false;
789 bool m_usageTotalTokensHasBeenSet =
false;
790 bool m_cacheReadInputTokensHasBeenSet =
false;
791 bool m_cacheWriteInputTokensHasBeenSet =
false;
792 bool m_inputMessagesHasBeenSet =
false;
793 bool m_outputMessagesHasBeenSet =
false;
794 bool m_systemInstructionsHasBeenSet =
false;
795 bool m_promptArnHasBeenSet =
false;
796 bool m_promptIdHasBeenSet =
false;
797 bool m_promptTypeHasBeenSet =
false;
798 bool m_promptNameHasBeenSet =
false;
799 bool m_promptVersionHasBeenSet =
false;
800 bool m_timeToFirstTokenMsHasBeenSet =
false;
801 bool m_guardrailAssessmentsHasBeenSet =
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)
void SetGuardrailAssessments(GuardrailAssessmentsT &&value)
bool UsageTotalTokensHasBeenSet() const
SpanAttributes & WithOperationName(OperationNameT &&value)
bool CacheWriteInputTokensHasBeenSet() const
SpanAttributes & WithAiAgentType(AIAgentType value)
bool PromptArnHasBeenSet() const
SpanAttributes & WithPromptArn(PromptArnT &&value)
SpanAttributes & WithGuardrailAssessments(GuardrailAssessmentsT &&value)
bool TimeToFirstTokenMsHasBeenSet() const
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)
int GetTimeToFirstTokenMs() const
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
SpanAttributes & WithTimeToFirstTokenMs(int value)
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 & AddGuardrailAssessments(GuardrailAssessmentsT &&value)
const Aws::Vector< SpanGuardrailAssessment > & GetGuardrailAssessments() const
SpanAttributes & WithAiAgentInvoker(AiAgentInvokerT &&value)
bool ResponseModelHasBeenSet() const
void SetTimeToFirstTokenMs(int value)
const Aws::String & GetAiAgentInvoker() const
void SetAiAgentName(AiAgentNameT &&value)
bool InstanceArnHasBeenSet() const
bool PromptNameHasBeenSet() const
bool GuardrailAssessmentsHasBeenSet() 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