AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/bedrock-agent-runtime/model/Type.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime {
27namespace Model {
28
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API Observation() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Observation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const ActionGroupInvocationOutput& GetActionGroupInvocationOutput() const { return m_actionGroupInvocationOutput; }
48 inline bool ActionGroupInvocationOutputHasBeenSet() const { return m_actionGroupInvocationOutputHasBeenSet; }
49 template <typename ActionGroupInvocationOutputT = ActionGroupInvocationOutput>
51 m_actionGroupInvocationOutputHasBeenSet = true;
52 m_actionGroupInvocationOutput = std::forward<ActionGroupInvocationOutputT>(value);
53 }
54 template <typename ActionGroupInvocationOutputT = ActionGroupInvocationOutput>
56 SetActionGroupInvocationOutput(std::forward<ActionGroupInvocationOutputT>(value));
57 return *this;
58 }
60
62
66 return m_agentCollaboratorInvocationOutput;
67 }
68 inline bool AgentCollaboratorInvocationOutputHasBeenSet() const { return m_agentCollaboratorInvocationOutputHasBeenSet; }
69 template <typename AgentCollaboratorInvocationOutputT = AgentCollaboratorInvocationOutput>
71 m_agentCollaboratorInvocationOutputHasBeenSet = true;
72 m_agentCollaboratorInvocationOutput = std::forward<AgentCollaboratorInvocationOutputT>(value);
73 }
74 template <typename AgentCollaboratorInvocationOutputT = AgentCollaboratorInvocationOutput>
76 SetAgentCollaboratorInvocationOutput(std::forward<AgentCollaboratorInvocationOutputT>(value));
77 return *this;
78 }
80
82
86 inline const CodeInterpreterInvocationOutput& GetCodeInterpreterInvocationOutput() const { return m_codeInterpreterInvocationOutput; }
87 inline bool CodeInterpreterInvocationOutputHasBeenSet() const { return m_codeInterpreterInvocationOutputHasBeenSet; }
88 template <typename CodeInterpreterInvocationOutputT = CodeInterpreterInvocationOutput>
90 m_codeInterpreterInvocationOutputHasBeenSet = true;
91 m_codeInterpreterInvocationOutput = std::forward<CodeInterpreterInvocationOutputT>(value);
92 }
93 template <typename CodeInterpreterInvocationOutputT = CodeInterpreterInvocationOutput>
95 SetCodeInterpreterInvocationOutput(std::forward<CodeInterpreterInvocationOutputT>(value));
96 return *this;
97 }
99
101
104 inline const FinalResponse& GetFinalResponse() const { return m_finalResponse; }
105 inline bool FinalResponseHasBeenSet() const { return m_finalResponseHasBeenSet; }
106 template <typename FinalResponseT = FinalResponse>
108 m_finalResponseHasBeenSet = true;
109 m_finalResponse = std::forward<FinalResponseT>(value);
110 }
111 template <typename FinalResponseT = FinalResponse>
113 SetFinalResponse(std::forward<FinalResponseT>(value));
114 return *this;
115 }
117
119
122 inline const KnowledgeBaseLookupOutput& GetKnowledgeBaseLookupOutput() const { return m_knowledgeBaseLookupOutput; }
123 inline bool KnowledgeBaseLookupOutputHasBeenSet() const { return m_knowledgeBaseLookupOutputHasBeenSet; }
124 template <typename KnowledgeBaseLookupOutputT = KnowledgeBaseLookupOutput>
126 m_knowledgeBaseLookupOutputHasBeenSet = true;
127 m_knowledgeBaseLookupOutput = std::forward<KnowledgeBaseLookupOutputT>(value);
128 }
129 template <typename KnowledgeBaseLookupOutputT = KnowledgeBaseLookupOutput>
131 SetKnowledgeBaseLookupOutput(std::forward<KnowledgeBaseLookupOutputT>(value));
132 return *this;
133 }
135
137
140 inline const RepromptResponse& GetRepromptResponse() const { return m_repromptResponse; }
141 inline bool RepromptResponseHasBeenSet() const { return m_repromptResponseHasBeenSet; }
142 template <typename RepromptResponseT = RepromptResponse>
144 m_repromptResponseHasBeenSet = true;
145 m_repromptResponse = std::forward<RepromptResponseT>(value);
146 }
147 template <typename RepromptResponseT = RepromptResponse>
149 SetRepromptResponse(std::forward<RepromptResponseT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetTraceId() const { return m_traceId; }
159 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
160 template <typename TraceIdT = Aws::String>
161 void SetTraceId(TraceIdT&& value) {
162 m_traceIdHasBeenSet = true;
163 m_traceId = std::forward<TraceIdT>(value);
164 }
165 template <typename TraceIdT = Aws::String>
167 SetTraceId(std::forward<TraceIdT>(value));
168 return *this;
169 }
171
173
183 inline Type GetType() const { return m_type; }
184 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
185 inline void SetType(Type value) {
186 m_typeHasBeenSet = true;
187 m_type = value;
188 }
189 inline Observation& WithType(Type value) {
190 SetType(value);
191 return *this;
192 }
194 private:
195 ActionGroupInvocationOutput m_actionGroupInvocationOutput;
196
197 AgentCollaboratorInvocationOutput m_agentCollaboratorInvocationOutput;
198
199 CodeInterpreterInvocationOutput m_codeInterpreterInvocationOutput;
200
201 FinalResponse m_finalResponse;
202
203 KnowledgeBaseLookupOutput m_knowledgeBaseLookupOutput;
204
205 RepromptResponse m_repromptResponse;
206
207 Aws::String m_traceId;
208
209 Type m_type{Type::NOT_SET};
210 bool m_actionGroupInvocationOutputHasBeenSet = false;
211 bool m_agentCollaboratorInvocationOutputHasBeenSet = false;
212 bool m_codeInterpreterInvocationOutputHasBeenSet = false;
213 bool m_finalResponseHasBeenSet = false;
214 bool m_knowledgeBaseLookupOutputHasBeenSet = false;
215 bool m_repromptResponseHasBeenSet = false;
216 bool m_traceIdHasBeenSet = false;
217 bool m_typeHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace BedrockAgentRuntime
222} // namespace Aws
void SetActionGroupInvocationOutput(ActionGroupInvocationOutputT &&value)
Definition Observation.h:50
void SetKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT &&value)
Observation & WithActionGroupInvocationOutput(ActionGroupInvocationOutputT &&value)
Definition Observation.h:55
void SetRepromptResponse(RepromptResponseT &&value)
const RepromptResponse & GetRepromptResponse() const
Observation & WithTraceId(TraceIdT &&value)
Observation & WithCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT &&value)
Definition Observation.h:94
AWS_BEDROCKAGENTRUNTIME_API Observation()=default
const AgentCollaboratorInvocationOutput & GetAgentCollaboratorInvocationOutput() const
Definition Observation.h:65
const Aws::String & GetTraceId() const
void SetFinalResponse(FinalResponseT &&value)
const CodeInterpreterInvocationOutput & GetCodeInterpreterInvocationOutput() const
Definition Observation.h:86
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)
const KnowledgeBaseLookupOutput & GetKnowledgeBaseLookupOutput() const
const ActionGroupInvocationOutput & GetActionGroupInvocationOutput() const
Definition Observation.h:47
Observation & WithAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT &&value)
Definition Observation.h:75
Observation & WithKnowledgeBaseLookupOutput(KnowledgeBaseLookupOutputT &&value)
void SetCodeInterpreterInvocationOutput(CodeInterpreterInvocationOutputT &&value)
Definition Observation.h:89
Observation & WithRepromptResponse(RepromptResponseT &&value)
const FinalResponse & GetFinalResponse() const
void SetAgentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutputT &&value)
Definition Observation.h:70
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue