class

MCProtocol::PromptMessage

Inherits JSON::Serializable < Reference < Object

Describes a message returned as part of a prompt.

This is similar to SamplingMessage, but also supports the embedding of resources from the MCP server.

Constructors

new(content : TextContent | ImageContent | EmbeddedResource, role : Role)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
role
Source