Class Nexus\Mcp\Core\Schema\Prompt\PromptMessage

final
readonly
implements Arrayable<array{content: (template-type<AudioContent, Arrayable, 'T'>|template-type<EmbeddedResource, Arrayable, 'T'>|template-type<ImageContent, Arrayable, 'T'>|template-type<ResourceLink, Arrayable, 'T'>|template-type<TextContent, Arrayable, 'T'>), role: ('assistant'|'user')}>

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.

Methods
Properties