SemText

Reference · Agent Kit

<agent-kit-artifact>

Agent Kit element

You set the type and language and author the content; the card renders it as a cached specimen with a refresh stamp.

A typed artifact card: code or text produced by the work. You set the type and language and author the content; the card renders it as a cached specimen with a refresh stamp. one of `markdown`, `json`, `diff`, `code`; the chrome's type chip. Optional. optional language chip for the `code` type (informational; declared, never fetched on). optional same-origin JSON path naming a cached snapshot for enrichment (cached-embed preset; a fixture source vetoes any `endpoint`). A snapshot `versions` list (`[{id, label, createdAt}]`) renders as inert version chips. 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-artifact-content>`<agent-kit-artifact-content>` — the current version's content, authored (markdown source, JSON text, diff text, or code as authored); exactly one. The document's own escaping governs — the element never parses, re-renders, or executes it.

Example

agent-kit-artifact.html
source
1 <agent-kit-artifact org="acme" project="semtext" key="artifact-spec" type="markdown">
2 <agent-kit-artifact-content>
3 # Extraction spec
4
5 The record is the authored body…
6 </agent-kit-artifact-content>
7 </agent-kit-artifact>
render
No shipped runtime for this element — the authored example renders as plain HTML.

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