A2aEngine.Types.TextPart (a2a_engine v0.1.0)

Copy Markdown View Source

A text segment within a message or artifact.

Wire shape: {"kind": "text", "text": <string>, "metadata": <map?>}.

Summary

Types

t()

@type t() :: %A2aEngine.Types.TextPart{metadata: map() | nil, text: String.t()}

Functions

from_map(m)

@spec from_map(map()) :: {:ok, t()} | {:error, term()}

to_map(t)

@spec to_map(t()) :: map()