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
| Parameter | Description |
|---|---|
url | Remote file URL (e.g. "https://cdn.example.com/report.pdf"). |
mime_type | MIME type of the file (e.g. "application/pdf", "image/png"). |
name | Human-readable artifact name. Defaults to "file". |
artifact_id | Explicit artifact ID. Auto-generated if not provided. |
a2a.types.Artifact with a single FilePart (FileWithUri).
file_artifact
| Parameter | Description |
|---|---|
data | File content as bytes. |
mime_type | MIME type of the file (e.g. "text/plain", "image/png"). |
name | Human-readable artifact name. Defaults to "file". |
artifact_id | Explicit artifact ID. Auto-generated if not provided. |
a2a.types.Artifact with a single FilePart (FileWithBytes).
Raises: TypeError if data is not bytes.
data_artifact
| Parameter | Description |
|---|---|
data | JSON-serializable dict. |
name | Human-readable artifact name. Defaults to "data". |
artifact_id | Explicit artifact ID. Auto-generated if not provided. |
a2a.types.Artifact with a single DataPart (Protobuf Value).