AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
RAGConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/KnowledgeBaseConfig.h>
9#include <aws/bedrock/model/EvaluationPrecomputedRagSourceConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCK_API RAGConfig() = default;
37 AWS_BEDROCK_API RAGConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCK_API RAGConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const KnowledgeBaseConfig& GetKnowledgeBaseConfig() const { return m_knowledgeBaseConfig; }
48 inline bool KnowledgeBaseConfigHasBeenSet() const { return m_knowledgeBaseConfigHasBeenSet; }
49 template<typename KnowledgeBaseConfigT = KnowledgeBaseConfig>
50 void SetKnowledgeBaseConfig(KnowledgeBaseConfigT&& value) { m_knowledgeBaseConfigHasBeenSet = true; m_knowledgeBaseConfig = std::forward<KnowledgeBaseConfigT>(value); }
51 template<typename KnowledgeBaseConfigT = KnowledgeBaseConfig>
52 RAGConfig& WithKnowledgeBaseConfig(KnowledgeBaseConfigT&& value) { SetKnowledgeBaseConfig(std::forward<KnowledgeBaseConfigT>(value)); return *this;}
54
56
60 inline const EvaluationPrecomputedRagSourceConfig& GetPrecomputedRagSourceConfig() const { return m_precomputedRagSourceConfig; }
61 inline bool PrecomputedRagSourceConfigHasBeenSet() const { return m_precomputedRagSourceConfigHasBeenSet; }
62 template<typename PrecomputedRagSourceConfigT = EvaluationPrecomputedRagSourceConfig>
63 void SetPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT&& value) { m_precomputedRagSourceConfigHasBeenSet = true; m_precomputedRagSourceConfig = std::forward<PrecomputedRagSourceConfigT>(value); }
64 template<typename PrecomputedRagSourceConfigT = EvaluationPrecomputedRagSourceConfig>
65 RAGConfig& WithPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT&& value) { SetPrecomputedRagSourceConfig(std::forward<PrecomputedRagSourceConfigT>(value)); return *this;}
67 private:
68
69 KnowledgeBaseConfig m_knowledgeBaseConfig;
70 bool m_knowledgeBaseConfigHasBeenSet = false;
71
72 EvaluationPrecomputedRagSourceConfig m_precomputedRagSourceConfig;
73 bool m_precomputedRagSourceConfigHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Bedrock
78} // namespace Aws
const EvaluationPrecomputedRagSourceConfig & GetPrecomputedRagSourceConfig() const
Definition RAGConfig.h:60
AWS_BEDROCK_API RAGConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT &&value)
Definition RAGConfig.h:63
AWS_BEDROCK_API RAGConfig()=default
AWS_BEDROCK_API RAGConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
bool KnowledgeBaseConfigHasBeenSet() const
Definition RAGConfig.h:48
void SetKnowledgeBaseConfig(KnowledgeBaseConfigT &&value)
Definition RAGConfig.h:50
const KnowledgeBaseConfig & GetKnowledgeBaseConfig() const
Definition RAGConfig.h:47
bool PrecomputedRagSourceConfigHasBeenSet() const
Definition RAGConfig.h:61
RAGConfig & WithPrecomputedRagSourceConfig(PrecomputedRagSourceConfigT &&value)
Definition RAGConfig.h:65
RAGConfig & WithKnowledgeBaseConfig(KnowledgeBaseConfigT &&value)
Definition RAGConfig.h:52
Aws::Utils::Json::JsonValue JsonValue