Class: AWSCDK::Bedrock::CfnFlow::KnowledgeBasePromptTemplateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::KnowledgeBasePromptTemplateProperty
- Defined in:
- bedrock/cfn_flow.rb
Overview
Defines a custom prompt template for orchestrating the retrieval and generation process.
Instance Attribute Summary collapse
-
#text_prompt_template ⇒ String
readonly
The text of the prompt template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text_prompt_template:) ⇒ KnowledgeBasePromptTemplateProperty
constructor
A new instance of KnowledgeBasePromptTemplateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text_prompt_template:) ⇒ KnowledgeBasePromptTemplateProperty
Returns a new instance of KnowledgeBasePromptTemplateProperty.
1793 1794 1795 1796 |
# File 'bedrock/cfn_flow.rb', line 1793 def initialize(text_prompt_template:) @text_prompt_template = text_prompt_template Jsii::Type.check_type(@text_prompt_template, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textPromptTemplate") end |
Instance Attribute Details
#text_prompt_template ⇒ String (readonly)
The text of the prompt template.
1802 1803 1804 |
# File 'bedrock/cfn_flow.rb', line 1802 def text_prompt_template @text_prompt_template end |
Class Method Details
.jsii_properties ⇒ Object
1804 1805 1806 1807 1808 |
# File 'bedrock/cfn_flow.rb', line 1804 def self.jsii_properties { :text_prompt_template => "textPromptTemplate", } end |
Instance Method Details
#to_jsii ⇒ Object
1810 1811 1812 1813 1814 1815 1816 |
# File 'bedrock/cfn_flow.rb', line 1810 def to_jsii result = {} result.merge!({ "textPromptTemplate" => @text_prompt_template, }) result.compact end |