Class Nexus\Mcp\Schema\Prompt\PromptMessage

<T is array<string, mixed>>

final
readonly
implements JsonSerializable, Arrayable<array{role: ('assistant'|'user'), content: T}>

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