Class: Hitch::MCP::Internal::RegistryRuntime::RuntimeTool
- Inherits:
-
Data
- Object
- Data
- Hitch::MCP::Internal::RegistryRuntime::RuntimeTool
- Defined in:
- app/models/hitch/mcp/internal/registry_runtime.rb
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#tool_class ⇒ Object
readonly
Returns the value of attribute tool_class.
Instance Method Summary collapse
- #annotations ⇒ Object
- #call(server_context:, **arguments) ⇒ Object
- #description ⇒ Object
- #input_schema ⇒ Object
- #name ⇒ Object
- #output_schema ⇒ Object
- #sdk_tool ⇒ Object
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry
40 41 42 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 40 def entry @entry end |
#tool_class ⇒ Object (readonly)
Returns the value of attribute tool_class
40 41 42 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 40 def tool_class @tool_class end |
Instance Method Details
#annotations ⇒ Object
45 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 45 def annotations = entry.annotations |
#call(server_context:, **arguments) ⇒ Object
48 49 50 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 48 def call(server_context:, **arguments) tool_class.call(server_context:, **arguments) end |
#description ⇒ Object
42 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 42 def description = entry.description |
#input_schema ⇒ Object
43 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 43 def input_schema = entry.input_schema |
#name ⇒ Object
41 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 41 def name = entry.name |
#output_schema ⇒ Object
44 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 44 def output_schema = entry.output_schema |
#sdk_tool ⇒ Object
46 |
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 46 def sdk_tool = entry.sdk_tool |