Class: AWSCDK::Bedrock::CfnFlow::KnowledgeBasePromptTemplateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow.rb

Overview

Defines a custom prompt template for orchestrating the retrieval and generation process.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text_prompt_template:) ⇒ KnowledgeBasePromptTemplateProperty

Returns a new instance of KnowledgeBasePromptTemplateProperty.

Parameters:

  • text_prompt_template (String)

    The text of the prompt template.



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_templateString (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_propertiesObject



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_jsiiObject



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