SemText

Reference · Agent Kit

<agent-kit-asset>

Agent Kit element

You point src at the asset, set its mime type and write the caption. The card renders the cached asset; the caption is the record.

A media asset card with a caption. You point src at the asset, set its mime type and write the caption. The card renders the cached asset; the caption is the record. the CACHED media URL. The chrome renders an `<img>` from it verbatim; the element never fetches, resolves, or substitutes anything, and with JavaScript off no image element exists. the media type chip (`image/png`, `text/plain`, …); optional. optional same-origin JSON path naming a cached snapshot for enrichment (cached-embed preset; a fixture source vetoes any `endpoint`). optional same-origin API path; NEVER fetched by this element (Live-fetch policy below) — declared for the authoring pipeline only. authored ISO-8601 stamp of the most recent sync (cached-embed preset). one of `fresh`, `stale`, `error` (cached-embed preset). `project`, `key`: `string` — the reference quartet (schema `reference` preset) — see Reference attributes below. per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2)

Children

  • <agent-kit-caption>`<agent-kit-caption>` — the caption; exactly one.

Example

agent-kit-asset.html
source
1 <agent-kit-asset org="acme" project="semtext" key="asset-cover"
2 src="/fixtures/agent-kit/cover.png" mime="image/png">
3 <agent-kit-caption>The authoring flow, end to end.</agent-kit-caption>
4 </agent-kit-asset>
render
No shipped runtime for this element — the authored example renders as plain HTML.

Source: spec/schema/agent-kit/asset.md