ModelContextProtocol::Server::Prompt
Inherits JSON::Serializable < Reference < Object
Base class for MCP Prompts
Constructors
new(name : String, template : String, description : String, args : Hash(String, JSON::Any) = {} of String => JSON::Any, required_args : Array(String) = [] of String)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
args
Sourcedescription
Sourcename
SourceRender the prompt template with given values
required_args
Sourcetemplate
Source