Examples
Examples are grouped by what they prove and by whether they need real provider credentials. Start with no-key examples for deterministic protocol, runtime, and generated-package behavior. Use provider-api examples when you want the live provider request path.
Provider API examples
src/examples/summarize.ts
AxGen OpenAI-compatible API run
Commandnpm run example -- ts src/examples/summarize.ts
EnvOPENAI_API_KEY, OPENAI_APIKEY
src/examples/audio-chat.ts voice
Realtime audio voice stream
Commandnpm run example -- ts src/examples/audio-chat.ts voice
EnvOPENAI_API_KEY, OPENAI_APIKEY
src/examples/mcp-client-linear.ts
Linear MCP Streamable HTTP run
Commandnpm run example -- ts src/examples/mcp-client-linear.ts
EnvLINEAR_API_KEY
Agent and RLM examples
src/examples/rlm-context-map.ts
AxAgent context-map smoke
Commandnpm run example -- ts src/examples/rlm-context-map.ts
Env
None
src/examples/rlm-context-management.ts
AxAgent context pressure
Commandnpm run example -- ts src/examples/rlm-context-management.ts
Env
None
src/examples/mcp-scripted-tools.ts
MCP scripted transport tools
Commandnpm run example -- ts src/examples/mcp-scripted-tools.ts
Env
None
src/examples/mcp-stdio-framing.ts
MCP stdio JSON-RPC framing
Commandnpm run example -- ts src/examples/mcp-stdio-framing.ts
Env
None
How To Read These
No keyexamples use scripted clients, protocol adapters, or generated package tests.Provider APIexamples make real HTTP calls and list the environment variables they normally need.- Generated language examples live under each package’s
examplesdirectory. - TypeScript examples live under
src/examples.
Source
- Catalog:
npm run example -- list/scripts/run-example.mjs - Files:
src/examples