Examples Runnable no-key and provider-api examples. rust examples examples website/content-src/templates/examples.md example Examples

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.rs

No key Rust

Signature and schema smoke

Command
npm run example -- rust signature_schema.rs

Env
None

provider_mapping_no_key.rs

No key Rust

OpenAI-compatible mapping smoke

Command
npm run example -- rust provider_mapping_no_key.rs

Env
None

provider_stream_no_key.rs

No key Rust

OpenAI-compatible streaming smoke

Command
npm run example -- rust provider_stream_no_key.rs

Env
None

Provider API examples

axgen_openai_api.rs

Provider API Rust

AxGen OpenAI API run

Command
npm run example -- rust axgen_openai_api.rs

Env
OPENAI_API_KEY, OPENAI_APIKEY

agent_openai_api.rs

Provider API Rust

AxAgent OpenAI API run

Command
npm run example -- rust agent_openai_api.rs

Env
OPENAI_API_KEY, OPENAI_APIKEY

flow_openai_api.rs

Provider API Rust

AxFlow OpenAI API run

Command
npm run example -- rust flow_openai_api.rs

Env
OPENAI_API_KEY, OPENAI_APIKEY

LLM, media, and realtime examples

audio_responses_mapping.rs

No key Rust

OpenAI Responses audio mapping

Command
npm run example -- rust audio_responses_mapping.rs

Env
None

realtime_audio_events.rs

No key Rust

Grok and Gemini realtime event folding

Command
npm run example -- rust realtime_audio_events.rs

Env
None

Agent and RLM examples

axagent_pipeline.rs

No key Rust

Deterministic AxAgent forward and logs

Command
npm run example -- rust axagent_pipeline.rs

Env
None

runtime_adapter.rs

No key Rust

Custom AxCodeRuntime session

Command
npm run example -- rust runtime_adapter.rs

Env
None

runtime_protocol.rs

No key Rust

Process AxCodeRuntime protocol

Command
npm run example -- rust runtime_protocol.rs

Env
None

mcp_scripted_tools.rs

No key Rust

MCP scripted transport tools

Command
npm run example -- rust mcp_scripted_tools.rs

Env
None

Flow examples

axflow_program_graph.rs

No key Rust

Deterministic AxFlow graph

Command
npm run example -- rust axflow_program_graph.rs

Env
None

Optimization examples

optimizer_artifact.rs

No key Rust

Optimizer artifact smoke

Command
npm run example -- rust optimizer_artifact.rs

Env
None

gepa_local_optimizer.rs

No key Rust

Local GEPA engine run

Command
npm run example -- rust gepa_local_optimizer.rs

Env
None

Other examples

axgen_scripted_client_tool.rs

No key Rust

AxGen scripted client and tool

Command
npm run example -- rust axgen_scripted_client_tool.rs

Env
None

How To Read These

  • No key examples use scripted clients, protocol adapters, or generated package tests.
  • Provider API examples make real HTTP calls and list the environment variables they normally need.
  • Generated language examples live under each package’s examples directory.
  • TypeScript examples live under src/examples.

Source

  • Catalog: npm run example -- list / scripts/run-example.mjs
  • Files: packages/rust/examples
Docs