Skip to main content
Sovara records supported LLM, MCP, and framework tool calls inside an SDK trace. Use trace for important custom operations that are not already captured.

Install

Use Node.js 18+ (or the version your provider packages require) and install the CLI for local recording. For remote setup, see the API reference. Install the example’s dependencies:
Set OPENAI_API_KEY in the environment before running the example. The model calls use your provider account and incur its normal API charges.

A complete example

Two child agents compare sample temperatures. Sovara records their model and tool calls; trace adds the comparison step. The weather values are demo data.
Use trace for custom operations; supported framework tools and MCP calls are recorded automatically. Use optional subtraces to group child agents.

Verify one trace

Save the example as weather_agent.ts, then run it normally:
Open the weather-agent project and select Traces to inspect the recording. Open the trace to see both subtraces, their model and tool calls, and the comparison step. Logged input and output also appear in the Traces table.

Next steps