AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveRerankingConfiguration.h>
9#include <aws/bedrock-agent-runtime/model/AgenticRetrieveRerankingModelType.h>
10#include <aws/bedrock-agent-runtime/model/FoundationModelConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/FoundationModelType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveConfiguration() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const FoundationModelConfiguration& GetFoundationModelConfiguration() const { return m_foundationModelConfiguration; }
44 inline bool FoundationModelConfigurationHasBeenSet() const { return m_foundationModelConfigurationHasBeenSet; }
45 template <typename FoundationModelConfigurationT = FoundationModelConfiguration>
47 m_foundationModelConfigurationHasBeenSet = true;
48 m_foundationModelConfiguration = std::forward<FoundationModelConfigurationT>(value);
49 }
50 template <typename FoundationModelConfigurationT = FoundationModelConfiguration>
52 SetFoundationModelConfiguration(std::forward<FoundationModelConfigurationT>(value));
53 return *this;
54 }
56
58
62 inline FoundationModelType GetFoundationModelType() const { return m_foundationModelType; }
63 inline bool FoundationModelTypeHasBeenSet() const { return m_foundationModelTypeHasBeenSet; }
65 m_foundationModelTypeHasBeenSet = true;
66 m_foundationModelType = value;
67 }
70 return *this;
71 }
73
75
78 inline int GetMaxAgentIteration() const { return m_maxAgentIteration; }
79 inline bool MaxAgentIterationHasBeenSet() const { return m_maxAgentIterationHasBeenSet; }
80 inline void SetMaxAgentIteration(int value) {
81 m_maxAgentIterationHasBeenSet = true;
82 m_maxAgentIteration = value;
83 }
86 return *this;
87 }
89
91
95 inline const AgenticRetrieveRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
96 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
97 template <typename RerankingConfigurationT = AgenticRetrieveRerankingConfiguration>
99 m_rerankingConfigurationHasBeenSet = true;
100 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
101 }
102 template <typename RerankingConfigurationT = AgenticRetrieveRerankingConfiguration>
104 SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value));
105 return *this;
106 }
108
110
115 inline AgenticRetrieveRerankingModelType GetRerankingModelType() const { return m_rerankingModelType; }
116 inline bool RerankingModelTypeHasBeenSet() const { return m_rerankingModelTypeHasBeenSet; }
118 m_rerankingModelTypeHasBeenSet = true;
119 m_rerankingModelType = value;
120 }
123 return *this;
124 }
126 private:
127 FoundationModelConfiguration m_foundationModelConfiguration;
128
130
131 int m_maxAgentIteration{0};
132
133 AgenticRetrieveRerankingConfiguration m_rerankingConfiguration;
134
136 bool m_foundationModelConfigurationHasBeenSet = false;
137 bool m_foundationModelTypeHasBeenSet = false;
138 bool m_maxAgentIterationHasBeenSet = false;
139 bool m_rerankingConfigurationHasBeenSet = false;
140 bool m_rerankingModelTypeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace BedrockAgentRuntime
145} // namespace Aws
AgenticRetrieveConfiguration & WithFoundationModelType(FoundationModelType value)
const AgenticRetrieveRerankingConfiguration & GetRerankingConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AgenticRetrieveConfiguration & WithFoundationModelConfiguration(FoundationModelConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetFoundationModelConfiguration(FoundationModelConfigurationT &&value)
AgenticRetrieveConfiguration & WithRerankingModelType(AgenticRetrieveRerankingModelType value)
AgenticRetrieveConfiguration & WithRerankingConfiguration(RerankingConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const FoundationModelConfiguration & GetFoundationModelConfiguration() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue