Skip to main content
Artifact builders live in aion-core and are shared across all frameworks. Use them to construct a2a.types.Artifact objects before passing them to emit_artifact() or thread.post().

url_artifact

Build an artifact referencing a remote file by URL. Returns: a2a.types.Artifact with a single FilePart (FileWithUri).

file_artifact

Build an artifact carrying inline file content as bytes. Returns: a2a.types.Artifact with a single FilePart (FileWithBytes). Raises: TypeError if data is not bytes.

data_artifact

Build an artifact carrying structured JSON data. Returns: a2a.types.Artifact with a single DataPart (Protobuf Value).

Full Example