Discriminated union of TextPart, FilePart, and DataPart.
Dispatches on the kind field when decoding; delegates to the variant's
own to_map/1 when encoding. Use decode/1 for decoding arbitrary part
maps, and encode/1 to encode any variant struct.
Summary
Functions
Decode a part map to the appropriate variant struct.
Decode a list of part maps; returns {:ok, [part]} or first {:error, _}.
Encode any part variant to wire format.
Types
@type t() :: A2aEngine.Types.TextPart.t() | A2aEngine.Types.FilePart.t() | A2aEngine.Types.DataPart.t()
Functions
Decode a part map to the appropriate variant struct.
Decode a list of part maps; returns {:ok, [part]} or first {:error, _}.
Encode any part variant to wire format.