AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ChatPromptTemplateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/Message.h>
9#include <aws/bedrock-agent/model/PromptInputVariable.h>
10#include <aws/bedrock-agent/model/SystemContentBlock.h>
11#include <aws/bedrock-agent/model/ToolConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent {
24namespace Model {
25
35 public:
36 AWS_BEDROCKAGENT_API ChatPromptTemplateConfiguration() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
46 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
47 template <typename MessagesT = Aws::Vector<Message>>
48 void SetMessages(MessagesT&& value) {
49 m_messagesHasBeenSet = true;
50 m_messages = std::forward<MessagesT>(value);
51 }
52 template <typename MessagesT = Aws::Vector<Message>>
54 SetMessages(std::forward<MessagesT>(value));
55 return *this;
56 }
57 template <typename MessagesT = Message>
59 m_messagesHasBeenSet = true;
60 m_messages.emplace_back(std::forward<MessagesT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<SystemContentBlock>& GetSystem() const { return m_system; }
71 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
72 template <typename SystemT = Aws::Vector<SystemContentBlock>>
73 void SetSystem(SystemT&& value) {
74 m_systemHasBeenSet = true;
75 m_system = std::forward<SystemT>(value);
76 }
77 template <typename SystemT = Aws::Vector<SystemContentBlock>>
79 SetSystem(std::forward<SystemT>(value));
80 return *this;
81 }
82 template <typename SystemT = SystemContentBlock>
84 m_systemHasBeenSet = true;
85 m_system.emplace_back(std::forward<SystemT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<PromptInputVariable>& GetInputVariables() const { return m_inputVariables; }
95 inline bool InputVariablesHasBeenSet() const { return m_inputVariablesHasBeenSet; }
96 template <typename InputVariablesT = Aws::Vector<PromptInputVariable>>
98 m_inputVariablesHasBeenSet = true;
99 m_inputVariables = std::forward<InputVariablesT>(value);
100 }
101 template <typename InputVariablesT = Aws::Vector<PromptInputVariable>>
103 SetInputVariables(std::forward<InputVariablesT>(value));
104 return *this;
105 }
106 template <typename InputVariablesT = PromptInputVariable>
108 m_inputVariablesHasBeenSet = true;
109 m_inputVariables.emplace_back(std::forward<InputVariablesT>(value));
110 return *this;
111 }
113
115
119 inline const ToolConfiguration& GetToolConfiguration() const { return m_toolConfiguration; }
120 inline bool ToolConfigurationHasBeenSet() const { return m_toolConfigurationHasBeenSet; }
121 template <typename ToolConfigurationT = ToolConfiguration>
123 m_toolConfigurationHasBeenSet = true;
124 m_toolConfiguration = std::forward<ToolConfigurationT>(value);
125 }
126 template <typename ToolConfigurationT = ToolConfiguration>
128 SetToolConfiguration(std::forward<ToolConfigurationT>(value));
129 return *this;
130 }
132 private:
133 Aws::Vector<Message> m_messages;
134
136
137 Aws::Vector<PromptInputVariable> m_inputVariables;
138
139 ToolConfiguration m_toolConfiguration;
140 bool m_messagesHasBeenSet = false;
141 bool m_systemHasBeenSet = false;
142 bool m_inputVariablesHasBeenSet = false;
143 bool m_toolConfigurationHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace BedrockAgent
148} // namespace Aws
AWS_BEDROCKAGENT_API ChatPromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
ChatPromptTemplateConfiguration & AddMessages(MessagesT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SystemContentBlock > & GetSystem() const
ChatPromptTemplateConfiguration & AddInputVariables(InputVariablesT &&value)
ChatPromptTemplateConfiguration & WithSystem(SystemT &&value)
AWS_BEDROCKAGENT_API ChatPromptTemplateConfiguration()=default
AWS_BEDROCKAGENT_API ChatPromptTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ChatPromptTemplateConfiguration & WithInputVariables(InputVariablesT &&value)
const Aws::Vector< PromptInputVariable > & GetInputVariables() const
ChatPromptTemplateConfiguration & WithMessages(MessagesT &&value)
ChatPromptTemplateConfiguration & WithToolConfiguration(ToolConfigurationT &&value)
ChatPromptTemplateConfiguration & AddSystem(SystemT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue