struct

MCP::Protocol::PromptReference

Inherits JSON::Serializable < MCP::Protocol::MCPReference < JSON::Serializable < Struct < Value < Object

Constructors

new(name : String, title : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

name
Source
title
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source