Run A11 examples for streams, tools and remote workers.
Start with one local action, then add model calls, tools, remote workers and Studio as the application needs them. Every guide ends in code you can run.
Stream a model reply and thoughts separately
EasyCall a hosted model and return its visible reply and thoughts on separate text outputs.
Design the application interface
Decide where streams, completion and application policy belong.
Add streaming and remote calls to an existing AI application
IntermediateAdd named streams and remote dispatch to one existing operation while application policy stays in familiar code.
A concrete integration point for adding A11 to an application.Handle partial results, completion and cancellation in one action
IntermediateRun one action whose caller receives partial values, then handles completion and cancellation separately.
A streamed action with explicit completion and cancellation.Let an AI model update state inside a browser page
AdvancedServe browser-owned state as typed actions, let a model call them through the existing session, and validate every change in the page.
A live page where model tool calls inspect, recolour and move rendered objects.Build model experiences
Follow audio, research and image generation through runnable code.
Transcribe a WAV file and read recognition events separately
IntermediateRun local speech recognition, connect voice input to a streaming model, and follow the audio and text through the code.
A local WAV transcription with separate transcript and event streams.Receive progress and a PNG from one image request
IntermediateRun a real image model, watch progress arrive, and save the resulting PNG through a separate typed output.
A generated PNG plus structured progress from one remote call.Run parallel model research and stream the report to Python
AdvancedRun concurrent model investigations, read the plan and report through separate streams, and inspect the composition behind them.
A real hosted investigation with a streamed plan and report.Connect and inspect the system
Move work to another process and trace tool decisions in Studio.
Run an A11 action in a second process over WebSocket
EasyRun one local worker and one caller over WebSocket while streamed results arrive in the caller.
One worker and one caller communicating over a local WebSocket.Trace a nested agent tool call through every outcome
AdvancedRun a nested tool workflow and inspect its arguments, streamed progress, result and final status.
A reproducible nested tool call with success, failure and cancellation.