class
ActionController::MCPServer::Toolbox
- ActionController::MCPServer::Toolbox
- Reference
- Object
Overview
a controller exposed as a group of tools and prompts
Included Modules
- JSON::Serializable
- YAML::Serializable
Extended Modules
- JSON::Schema
Defined in:
action-controller/mcp/description.crConstructors
- .new(name : String, controller : String, description : Nil | String, tools : Array(ActionController::MCPServer::Tool) = [] of Tool, prompts : Array(ActionController::MCPServer::Prompt) = [] of Prompt)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
- #controller : String
- #description : String | Nil
- #name : String
-
#openable? : Bool
true if there is anything to add when the toolbox is opened
- #prompts : Array(Prompt)
-
#toolbox_prompts : Array(Prompt)
the prompts added when the toolbox is opened
-
#toolbox_tools : Array(Tool)
the tools added when the toolbox is opened
- #tools : Array(Tool)
Constructor Detail
def self.new(name : String, controller : String, description : Nil | String, tools : Array(ActionController::MCPServer::Tool) = [] of Tool, prompts : Array(ActionController::MCPServer::Prompt) = [] of Prompt)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#