MCPEx.Protocol.Types.ResourceContent (MCPEx v0.1.0)

Represents content types that can be sent in resources or other messages. This includes text, images, audio, or embedded resources.

Summary

Functions

Creates an audio content object

Creates an image content object

Creates a resource reference

Creates a text content object

Types

t()

@type t() :: map()

Functions

audio(data, mime_type)

@spec audio(String.t(), String.t()) :: map()

Creates an audio content object

image(data, mime_type)

@spec image(String.t(), String.t()) :: map()

Creates an image content object

resource(uri)

@spec resource(String.t()) :: map()

Creates a resource reference

text(content)

@spec text(String.t()) :: map()

Creates a text content object