MCP.Protocol.Types.SamplingMessage (MCP Elixir SDK v1.1.0)

Copy Markdown View Source

A message in a sampling request conversation.

Summary

Types

t()

@type t() :: %MCP.Protocol.Types.SamplingMessage{
  content: MCP.Protocol.Types.Content.content_block(),
  role: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()