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.
Quick no-key starters
signature_schema.go
Signature and schema smoke
Commandnpm run example -- go signature_schema.go
Env
None
provider_mapping_no_key.go
OpenAI-compatible mapping smoke
Commandnpm run example -- go provider_mapping_no_key.go
Env
None
provider_stream_no_key.go
OpenAI-compatible streaming smoke
Commandnpm run example -- go provider_stream_no_key.go
Env
None
Provider API examples
axgen_openai_api.go
AxGen OpenAI API run
Commandnpm run example -- go axgen_openai_api.go
EnvOPENAI_API_KEY, OPENAI_APIKEY
agent_openai_api.go
AxAgent OpenAI API run
Commandnpm run example -- go agent_openai_api.go
EnvOPENAI_API_KEY, OPENAI_APIKEY
flow_openai_api.go
AxFlow OpenAI API run
Commandnpm run example -- go flow_openai_api.go
EnvOPENAI_API_KEY, OPENAI_APIKEY
LLM, media, and realtime examples
audio_responses_mapping.go
OpenAI Responses audio mapping
Commandnpm run example -- go audio_responses_mapping.go
Env
None
realtime_audio_events.go
Grok and Gemini realtime event folding
Commandnpm run example -- go realtime_audio_events.go
Env
None
Agent and RLM examples
axagent_pipeline.go
Deterministic AxAgent forward and logs
Commandnpm run example -- go axagent_pipeline.go
Env
None
runtime_adapter.go
Custom AxCodeRuntime session
Commandnpm run example -- go runtime_adapter.go
Env
None
runtime_protocol.go
Process AxCodeRuntime protocol
Commandnpm run example -- go runtime_protocol.go
Env
None
mcp_scripted_tools.go
MCP scripted transport tools
Commandnpm run example -- go mcp_scripted_tools.go
Env
None
Flow examples
axflow_program_graph.go
Deterministic AxFlow graph
Commandnpm run example -- go axflow_program_graph.go
Env
None
Optimization examples
optimizer_artifact.go
Optimizer artifact smoke
Commandnpm run example -- go optimizer_artifact.go
Env
None
gepa_local_optimizer.go
Local GEPA engine run
Commandnpm run example -- go gepa_local_optimizer.go
Env
None
Other examples
axgen_scripted_client_tool.go
AxGen scripted client and tool
Commandnpm run example -- go axgen_scripted_client_tool.go
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:
packages/go/examples