A2aEngine.Types.Artifact (a2a_engine v0.1.0)

Copy Markdown View Source

A file, data, or text resource generated by an agent during a task.

Required: artifactId, parts. No kind discriminator (spec choice).

Summary

Types

t()

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

Functions

from_map(m)

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

to_map(a)

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