PromptMessage

mcp.schema.PromptMessage
See thePromptMessage companion object
final case class PromptMessage(role: Role, content: Content)

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.

Value parameters

content

The content of the message of type Content.

role

The sender or recipient of messages and data in a conversation.

Attributes

Companion
object
Source
PromptMessage.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product