class ActionController::MCPServer::Toolbox

Overview

a controller exposed as a group of tools and prompts

Included Modules

Extended Modules

Defined in:

action-controller/mcp/description.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def controller : String #

[View source]
def description : String | Nil #

[View source]
def name : String #

[View source]
def openable? : Bool #

true if there is anything to add when the toolbox is opened


[View source]
def prompts : Array(Prompt) #

[View source]
def toolbox_prompts : Array(Prompt) #

the prompts added when the toolbox is opened


[View source]
def toolbox_tools : Array(Tool) #

the tools added when the toolbox is opened


[View source]
def tools : Array(Tool) #

[View source]