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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourcerole
Source