Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 3.33 KB

examples.md

File metadata and controls

31 lines (22 loc) · 3.33 KB
title Examples

Complete applications built on the Agents API guide, each running against a real Core installation with a Project API key.

Parsar Agent workbench

A conversation workspace built on Core. Assemble Agents from a resource library and an environment template, then talk to them in a local Web chat or through Feishu bots that act as the Agent's identity. Both entries create ordinary public Sessions.

Source: example/parsar.

Run and configure it with the example README, which also owns its supported features, storage and validation.

What to look at

Each feature maps to one part of the API. Read the code next to the guide section:

Feature API used Guide Code
Server-side key and headers Bearer key, OpenAI-Beta, route allowlist Before you start server.mjs
Agents with a Harness and model x_agents_core.harness, model_provider Core extensions server/sessions.mjs
Web and Feishu conversations Public Session creation, input events, Turns and Items Send input server/sessions.mjs, server/feishu.mjs
Hosted Environments from templates openai_hosted with packages, files, env and setup_commands Create a Session server/runtime-profile.mjs
Crash-safe Session creation Idempotency-Key, recovery from a lost response Idempotency server/sessions.mjs
Live replies Event stream, text deltas, reconnect and reconcile Stream events src/lib/live-session.ts
Follow-ups and cancel Input events with idempotency keys Send input src/Composer.tsx
History Paging Turns and Items Pagination src/lib/api.ts
Skills and versions /skills, default version Skills src/Skills.tsx

To contribute an example, follow the application example boundary.