AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Observation.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ActionGroupInvocationOutput.h>
9#include <aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationOutput.h>
10#include <aws/bedrock-agent-runtime/model/CodeInterpreterInvocationOutput.h>
11#include <aws/bedrock-agent-runtime/model/FinalResponse.h>
12#include <aws/bedrock-agent-runtime/model/KnowledgeBaseLookupOutput.h>
13#include <aws/bedrock-agent-runtime/model/RepromptResponse.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/bedrock-agent-runtime/model/Type.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace BedrockAgentRuntime
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_BEDROCKAGENTRUNTIME_API Observation() = default;
43 AWS_BEDROCKAGENTRUNTIME_API Observation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Observation& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const ActionGroupInvocationOutput& GetActionGroupInvocationOutput() const { return m_actionGroupInvocationOutput; }
54 inline bool ActionGroupInvocationOutputHasBeenSet() const { return m_actionGroupInvocationOutputHasBeenSet; }
55 template<typename ActionGroupInvocationOutputT = ActionGroupInvocationOutput>
56 void SetActionGroupInvocationOutput(ActionGroupInvocationOutputT&& value) { m_actionGroupInvocationOutputHasBeenSet = true; m_actionGroupInvocationOutput = std::forward<ActionGroupInvocationOutputT>(value); }
57 template<typename ActionGroupInvocationOutputT = ActionGroupInvocationOutput>
58 Observation& WithActionGroupInvocationOutput(ActionGroupInvocationOutputT&& value) { SetActionGroupInvocationOutput(std::forward<ActionGroupInvocationOutputT>(value)); return *this;}
60
62
65 inline const AgentCollaboratorInvocationOutput& GetAgentCollaboratorInvocationOutput() const { return m_agentCollaboratorInvocationOutput; }
66 inline bool AgentCollaboratorInvocationOutputHasBeenSet() const { return m_agentCollaboratorInvocationOutputHasBeenSet; }
67 template<typename AgentCollaboratorInvocationOutputT = AgentCollaboratorInvocationOutput>
68 void SetAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT&& value) { m_agentCollaboratorInvocationOutputHasBeenSet = true; m_agentCollaboratorInvocationOutput = std::forward<AgentCollaboratorInvocationOutputT>(value); }
69 template<typename AgentCollaboratorInvocationOutputT = AgentCollaboratorInvocationOutput>
70 Observation& WithAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT&& value) { SetAgentCollaboratorInvocationOutput(std::forward<AgentCollaboratorInvocationOutputT>(value)); return *this;}
72
74
78 inline const CodeInterpreterInvocationOutput& GetCodeInterpreterInvocationOutput() const { return m_codeInterpreterInvocationOutput; }
79 inline bool CodeInterpreterInvocationOutputHasBeenSet() const { return m_codeInterpreterInvocationOutputHasBeenSet; }
80 template<typename CodeInterpreterInvocationOutputT = CodeInterpreterInvocationOutput>
81 void SetCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT&& value) { m_codeInterpreterInvocationOutputHasBeenSet = true; m_codeInterpreterInvocationOutput = std::forward<CodeInterpreterInvocationOutputT>(value); }
82 template<typename CodeInterpreterInvocationOutputT = CodeInterpreterInvocationOutput>
83 Observation& WithCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT&& value) { SetCodeInterpreterInvocationOutput(std::forward<CodeInterpreterInvocationOutputT>(value)); return *this;}
85
87
90 inline const FinalResponse& GetFinalResponse() const { return m_finalResponse; }
91 inline bool FinalResponseHasBeenSet() const { return m_finalResponseHasBeenSet; }
92 template<typename FinalResponseT = FinalResponse>
93 void SetFinalResponse(FinalResponseT&& value) { m_finalResponseHasBeenSet = true; m_finalResponse = std::forward<FinalResponseT>(value); }
94 template<typename FinalResponseT = FinalResponse>
95 Observation& WithFinalResponse(FinalResponseT&& value) { SetFinalResponse(std::forward<FinalResponseT>(value)); return *this;}
97
99
102 inline const KnowledgeBaseLookupOutput& GetKnowledgeBaseLookupOutput() const { return m_knowledgeBaseLookupOutput; }
103 inline bool KnowledgeBaseLookupOutputHasBeenSet() const { return m_knowledgeBaseLookupOutputHasBeenSet; }
104 template<typename KnowledgeBaseLookupOutputT = KnowledgeBaseLookupOutput>
105 void SetKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT&& value) { m_knowledgeBaseLookupOutputHasBeenSet = true; m_knowledgeBaseLookupOutput = std::forward<KnowledgeBaseLookupOutputT>(value); }
106 template<typename KnowledgeBaseLookupOutputT = KnowledgeBaseLookupOutput>
107 Observation& WithKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT&& value) { SetKnowledgeBaseLookupOutput(std::forward<KnowledgeBaseLookupOutputT>(value)); return *this;}
109
111
114 inline const RepromptResponse& GetRepromptResponse() const { return m_repromptResponse; }
115 inline bool RepromptResponseHasBeenSet() const { return m_repromptResponseHasBeenSet; }
116 template<typename RepromptResponseT = RepromptResponse>
117 void SetRepromptResponse(RepromptResponseT&& value) { m_repromptResponseHasBeenSet = true; m_repromptResponse = std::forward<RepromptResponseT>(value); }
118 template<typename RepromptResponseT = RepromptResponse>
119 Observation& WithRepromptResponse(RepromptResponseT&& value) { SetRepromptResponse(std::forward<RepromptResponseT>(value)); return *this;}
121
123
126 inline const Aws::String& GetTraceId() const { return m_traceId; }
127 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
128 template<typename TraceIdT = Aws::String>
129 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
130 template<typename TraceIdT = Aws::String>
131 Observation& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
133
135
145 inline Type GetType() const { return m_type; }
146 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
147 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
148 inline Observation& WithType(Type value) { SetType(value); return *this;}
150 private:
151
152 ActionGroupInvocationOutput m_actionGroupInvocationOutput;
153 bool m_actionGroupInvocationOutputHasBeenSet = false;
154
155 AgentCollaboratorInvocationOutput m_agentCollaboratorInvocationOutput;
156 bool m_agentCollaboratorInvocationOutputHasBeenSet = false;
157
158 CodeInterpreterInvocationOutput m_codeInterpreterInvocationOutput;
159 bool m_codeInterpreterInvocationOutputHasBeenSet = false;
160
161 FinalResponse m_finalResponse;
162 bool m_finalResponseHasBeenSet = false;
163
164 KnowledgeBaseLookupOutput m_knowledgeBaseLookupOutput;
165 bool m_knowledgeBaseLookupOutputHasBeenSet = false;
166
167 RepromptResponse m_repromptResponse;
168 bool m_repromptResponseHasBeenSet = false;
169
170 Aws::String m_traceId;
171 bool m_traceIdHasBeenSet = false;
172
173 Type m_type{Type::NOT_SET};
174 bool m_typeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace BedrockAgentRuntime
179} // namespace Aws
void SetActionGroupInvocationOutput(ActionGroupInvocationOutputT &&value)
Definition Observation.h:56
void SetKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT &&value)
Observation & WithActionGroupInvocationOutput(ActionGroupInvocationOutputT &&value)
Definition Observation.h:58
void SetRepromptResponse(RepromptResponseT &&value)
const RepromptResponse & GetRepromptResponse() const
Observation & WithTraceId(TraceIdT &&value)
Observation & WithCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT &&value)
Definition Observation.h:83
AWS_BEDROCKAGENTRUNTIME_API Observation()=default
const AgentCollaboratorInvocationOutput & GetAgentCollaboratorInvocationOutput() const
Definition Observation.h:65
const Aws::String & GetTraceId() const
void SetFinalResponse(FinalResponseT &&value)
Definition Observation.h:93
const CodeInterpreterInvocationOutput & GetCodeInterpreterInvocationOutput() const
Definition Observation.h:78
AWS_BEDROCKAGENTRUNTIME_API Observation(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API Observation & operator=(Aws::Utils::Json::JsonView jsonValue)
Observation & WithFinalResponse(FinalResponseT &&value)
Definition Observation.h:95
const KnowledgeBaseLookupOutput & GetKnowledgeBaseLookupOutput() const
const ActionGroupInvocationOutput & GetActionGroupInvocationOutput() const
Definition Observation.h:53
Observation & WithAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT &&value)
Definition Observation.h:70
Observation & WithKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT &&value)
void SetCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT &&value)
Definition Observation.h:81
Observation & WithRepromptResponse(RepromptResponseT &&value)
const FinalResponse & GetFinalResponse() const
Definition Observation.h:90
void SetAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT &&value)
Definition Observation.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue