GenMCP.MCP.V2607.PromptMessage (gen_mcp v2.0.0)

Copy Markdown View Source

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Describes a message returned as part of a prompt.

This is similar to {@link SamplingMessage}, but also supports the embedding of resources from the MCP server.

Summary

Functions

Returns the JSON schema for this entity.

Types

t()

@type t() :: %GenMCP.MCP.V2607.PromptMessage{content: term(), role: term()}

Functions

json_schema()

Returns the JSON schema for this entity.