PromptMessage extension type
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
- PromptMessage.new({required Role role, required Content content})
-
factory
-
PromptMessage.fromMap(Map<
String, Object?> _value)