Examples

Agents, compiled in your browser.

Each agent below is the real .agent source on the left and the toac output on the right — compiled live by the in-page compiler. Open any of them in the playground to edit.

researcher — tools + structured output

researcher.agent
researcher.ts generated

summarizer — typed array output

summarizer.agent
summarizer.ts generated

digest — {#each} loop with index

digest.agent
digest.ts generated

report — {#each} + {#if} conditional

report.agent
report.ts generated

brief — object types, destructuring, kitchen sink

brief.agent
brief.ts generated
Open the playground Read the docs