Class: AWSCDK::Bedrock::CfnAgent::ParameterDetailProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAgent::ParameterDetailProperty
- Defined in:
- bedrock/cfn_agent.rb
Overview
Contains details about a parameter in a function for an action group.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the parameter.
-
#required ⇒ Boolean, ...
readonly
Whether the parameter is required for the agent to complete the function for action group invocation.
-
#type ⇒ String
readonly
The data type of the parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, description: nil, required: nil) ⇒ ParameterDetailProperty
constructor
A new instance of ParameterDetailProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, description: nil, required: nil) ⇒ ParameterDetailProperty
Returns a new instance of ParameterDetailProperty.
1581 1582 1583 1584 1585 1586 1587 1588 |
# File 'bedrock/cfn_agent.rb', line 1581 def initialize(type:, description: nil, required: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @required = required Jsii::Type.check_type(@required, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "required") unless @required.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A description of the parameter.
Helps the foundation model determine how to elicit the parameters from the user.
1601 1602 1603 |
# File 'bedrock/cfn_agent.rb', line 1601 def description @description end |
#required ⇒ Boolean, ... (readonly)
Whether the parameter is required for the agent to complete the function for action group invocation.
1606 1607 1608 |
# File 'bedrock/cfn_agent.rb', line 1606 def required @required end |
#type ⇒ String (readonly)
The data type of the parameter.
1594 1595 1596 |
# File 'bedrock/cfn_agent.rb', line 1594 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1608 1609 1610 1611 1612 1613 1614 |
# File 'bedrock/cfn_agent.rb', line 1608 def self.jsii_properties { :type => "type", :description => "description", :required => "required", } end |
Instance Method Details
#to_jsii ⇒ Object
1616 1617 1618 1619 1620 1621 1622 1623 1624 |
# File 'bedrock/cfn_agent.rb', line 1616 def to_jsii result = {} result.merge!({ "type" => @type, "description" => @description, "required" => @required, }) result.compact end |