Class: AWSCDK::BedrockAgentCore::McpGatewaySearchType
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::BedrockAgentCore::McpGatewaySearchType
- Defined in:
- bedrock_agent_core/mcp_gateway_search_type.rb
Overview
Search types supported by MCP gateway.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.of(value) ⇒ AWSCDK::BedrockAgentCore::McpGatewaySearchType
Use a custom search type not yet defined in this class.
-
.SEMANTIC ⇒ AWSCDK::BedrockAgentCore::McpGatewaySearchType
Semantic search type.
Instance Method Summary collapse
-
#initialize(*args) ⇒ McpGatewaySearchType
constructor
A new instance of McpGatewaySearchType.
-
#to_string ⇒ String
Returns the string value.
-
#value ⇒ String
The search type string value.
Constructor Details
#initialize(*args) ⇒ McpGatewaySearchType
Returns a new instance of McpGatewaySearchType.
8 9 10 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 17 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 12 def self.jsii_overridable_methods { :value => { kind: :property, name: "value", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.of(value) ⇒ AWSCDK::BedrockAgentCore::McpGatewaySearchType
Use a custom search type not yet defined in this class.
23 24 25 26 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 23 def self.of(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType", "of", [value]) end |
.SEMANTIC ⇒ AWSCDK::BedrockAgentCore::McpGatewaySearchType
Semantic search type.
When semantic search is enabled, your gateway can search the tools via the gateway SDK based off of a natural language phrase.
34 35 36 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 34 def self.SEMANTIC() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType", "SEMANTIC") end |
Instance Method Details
#to_string ⇒ String
Returns the string value.
48 49 50 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 48 def to_string() jsii_call_method("toString", []) end |
#value ⇒ String
The search type string value.
41 42 43 |
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 41 def value() jsii_get_property("value") end |