A minimal, multi-modal structure for exchanging content
Attribute | Required | Description |
---|---|---|
content_type | Yes | The MIME type describing the format of the content |
content OR content_url | Yes | Content provided inline (content ) or via URL (content_url ) |
content_encoding | No | Encoding of the content ("plain" by default, or "base64" ) |
name | No | If present, identifies the part as an Artifact |
name
attribute. They typically represent:
Artifact
inherits all validation rules from MessagePart
. Therefore, artifacts must also contain either content
or content_url
, but never both.content_type
content
or content_url
, but not bothname
are considered Artifactstext/plain
: For plain text contentimage/png
, image/jpeg
: For image contentapplication/json
: For JSON dataapplication/pdf
: For PDF documentstext/html
: For HTML contentapplication/json;schema=...