SemText

Reference · Agent Kit

<agent-kit-test-case>

Agent Kit element

You author the steps and what should happen; the card renders them as a structured list from the cached snapshot.

A test-case card: steps and the expectation. You author the steps and what should happen; the card renders them as a structured list from the cached snapshot. 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-step>`<agent-kit-step>` — one step; author at least one (the count drives the chrome chip, never a childRule). No attributes.
  • <agent-kit-expected>`<agent-kit-expected>` — the expectation, stated once (exactly one).

Example

agent-kit-test-case.html
source
1 <agent-kit-test-case kind="case" tags="authoring"
2 org="acme" project="semtext" key="case-board-refs">
3 <agent-kit-step>Open the board demo.</agent-kit-step>
4 <agent-kit-step>Extract without JavaScript.</agent-kit-step>
5 <agent-kit-expected>The records equal the JS-on set.</agent-kit-expected>
6 </agent-kit-test-case>
render
No shipped runtime for this element — the authored example renders as plain HTML.

Source: spec/schema/agent-kit/test-case.md