class
MCProtocol::PromptMessage
- MCProtocol::PromptMessage
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/prompt_message.crConstructors
- .new(content : TextContent | ImageContent | EmbeddedResource, role : Role)
- .new(pull : JSON::PullParser)