A3S Docs
A3S CodeExamples

Examples

Runnable SDK examples for Rust, Python, and Node.js — each using real LLM configuration

Examples

Every example uses real LLM configuration from ~/.a3s/config.hcl or $A3S_CONFIG and is available in all three SDKs.

Set A3S_CONFIG=/path/to/config.hcl or create ~/.a3s/config.hcl before running any example. See Providers for config format.

Quick Setup

Rust

cd crates/code/core
cargo run --example <name>

Python

cd crates/code/sdk/python
pip install -e .
python examples/<name>.py

Node.js

cd crates/code/sdk/node
npm install && npm run build
node examples/<name>.js

Example Index

01_basic_send.rs
02_streaming.rs
03_multi_turn.rs
04_model_switching.rs
05_planning.rs
06_skills_security.rs
07_direct_tools.rs
08_hooks.rs
09_queue_lanes.rs
10_resilience.rs
agentic_loop_demo.rs
sdk_basic.rs
integration_tests.rs
test_auto_compact.rs
test_batch_tool.rs
test_builtin_skills.rs
test_custom_skills_agents.rs
test_external_task_handler.rs
test_hooks.rs
test_parallel_processing.rs
test_security.rs
test_task_priority.rs
test_vector_rag.rs
test_git_worktree.rs
test_prompt_slots.rs

Feature Coverage

Prop

Type

Feature Overview

Core (always available)

Prop

Type

Session configuration

Prop

Type

Extension points

Prop

Type

On this page