AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ChatPromptTemplateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/ToolConfiguration.h>
10#include <aws/bedrock-agent/model/PromptInputVariable.h>
11#include <aws/bedrock-agent/model/Message.h>
12#include <aws/bedrock-agent/model/SystemContentBlock.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgent
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_BEDROCKAGENT_API ChatPromptTemplateConfiguration() = default;
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Vector<PromptInputVariable>& GetInputVariables() const { return m_inputVariables; }
52 inline bool InputVariablesHasBeenSet() const { return m_inputVariablesHasBeenSet; }
53 template<typename InputVariablesT = Aws::Vector<PromptInputVariable>>
54 void SetInputVariables(InputVariablesT&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = std::forward<InputVariablesT>(value); }
55 template<typename InputVariablesT = Aws::Vector<PromptInputVariable>>
56 ChatPromptTemplateConfiguration& WithInputVariables(InputVariablesT&& value) { SetInputVariables(std::forward<InputVariablesT>(value)); return *this;}
57 template<typename InputVariablesT = PromptInputVariable>
58 ChatPromptTemplateConfiguration& AddInputVariables(InputVariablesT&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.emplace_back(std::forward<InputVariablesT>(value)); return *this; }
60
62
65 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
66 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
67 template<typename MessagesT = Aws::Vector<Message>>
68 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
69 template<typename MessagesT = Aws::Vector<Message>>
70 ChatPromptTemplateConfiguration& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
71 template<typename MessagesT = Message>
72 ChatPromptTemplateConfiguration& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(value)); return *this; }
74
76
80 inline const Aws::Vector<SystemContentBlock>& GetSystem() const { return m_system; }
81 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
82 template<typename SystemT = Aws::Vector<SystemContentBlock>>
83 void SetSystem(SystemT&& value) { m_systemHasBeenSet = true; m_system = std::forward<SystemT>(value); }
84 template<typename SystemT = Aws::Vector<SystemContentBlock>>
85 ChatPromptTemplateConfiguration& WithSystem(SystemT&& value) { SetSystem(std::forward<SystemT>(value)); return *this;}
86 template<typename SystemT = SystemContentBlock>
87 ChatPromptTemplateConfiguration& AddSystem(SystemT&& value) { m_systemHasBeenSet = true; m_system.emplace_back(std::forward<SystemT>(value)); return *this; }
89
91
95 inline const ToolConfiguration& GetToolConfiguration() const { return m_toolConfiguration; }
96 inline bool ToolConfigurationHasBeenSet() const { return m_toolConfigurationHasBeenSet; }
97 template<typename ToolConfigurationT = ToolConfiguration>
98 void SetToolConfiguration(ToolConfigurationT&& value) { m_toolConfigurationHasBeenSet = true; m_toolConfiguration = std::forward<ToolConfigurationT>(value); }
99 template<typename ToolConfigurationT = ToolConfiguration>
100 ChatPromptTemplateConfiguration& WithToolConfiguration(ToolConfigurationT&& value) { SetToolConfiguration(std::forward<ToolConfigurationT>(value)); return *this;}
102 private:
103
104 Aws::Vector<PromptInputVariable> m_inputVariables;
105 bool m_inputVariablesHasBeenSet = false;
106
107 Aws::Vector<Message> m_messages;
108 bool m_messagesHasBeenSet = false;
109
111 bool m_systemHasBeenSet = false;
112
113 ToolConfiguration m_toolConfiguration;
114 bool m_toolConfigurationHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace BedrockAgent
119} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue