Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessInlineFunctionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_harness.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description:, input_schema:) ⇒ HarnessInlineFunctionConfigProperty

Returns a new instance of HarnessInlineFunctionConfigProperty.

Parameters:

  • description (String)
  • input_schema (Object)

    JSON Schema describing the tool's input parameters.



1639
1640
1641
1642
1643
1644
# File 'bedrock_agent_core/cfn_harness.rb', line 1639

def initialize(description:, input_schema:)
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description")
  @input_schema = input_schema
  Jsii::Type.check_type(@input_schema, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "inputSchema")
end

Instance Attribute Details

#descriptionString (readonly)



1648
1649
1650
# File 'bedrock_agent_core/cfn_harness.rb', line 1648

def description
  @description
end

#input_schemaObject (readonly)

JSON Schema describing the tool's input parameters.



1653
1654
1655
# File 'bedrock_agent_core/cfn_harness.rb', line 1653

def input_schema
  @input_schema
end

Class Method Details

.jsii_propertiesObject



1655
1656
1657
1658
1659
1660
# File 'bedrock_agent_core/cfn_harness.rb', line 1655

def self.jsii_properties
  {
    :description => "description",
    :input_schema => "inputSchema",
  }
end

Instance Method Details

#to_jsiiObject



1662
1663
1664
1665
1666
1667
1668
1669
# File 'bedrock_agent_core/cfn_harness.rb', line 1662

def to_jsii
  result = {}
  result.merge!({
    "description" => @description,
    "inputSchema" => @input_schema,
  })
  result.compact
end