class

MCP::AbstractPrompt

Inherits Reference < Object

Abstract base class for all prompts

Class methods

prompt_arguments
Source
prompt_arguments=(prompt_arguments : String)
Source
prompt_description
Source
prompt_description=(prompt_description : String)
Source
prompt_metadata

Default implementation for getting prompt metadata

Source
prompt_name

Class properties that must be defined by subclasses

Source
prompt_name=(prompt_name : String)

Class properties that must be defined by subclasses

Source

Instance methods

invoke(arguments : Hash(String, JSON::Any), env : HTTP::Server::Context | Nil = nil) : Hash(String, JSON::Any)

Abstract method that must be implemented by subclasses Should return a hash containing the prompt content and messages

Source