Claudio.A2A.Artifact (Claudio v0.5.0)

View Source

A2A Artifact — output generated by an agent during task processing.

Summary

Functions

Parse an artifact from an API response map.

Convert an artifact to a map for API serialization.

Types

t()

@type t() :: %Claudio.A2A.Artifact{
  artifact_id: String.t(),
  description: String.t() | nil,
  extensions: [String.t()] | nil,
  metadata: map() | nil,
  name: String.t() | nil,
  parts: [Claudio.A2A.Part.t()]
}

Functions

from_map(map)

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

Parse an artifact from an API response map.

to_map(artifact)

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

Convert an artifact to a map for API serialization.