Skip to main content

Documentation

Trace AI agents, keep their prompts, and test each change before it reaches your users.

Risicare records what your AI agents do, keeps the prompts that they use, and tests a change before it reaches your users. These docs follow that loop.

Start here

Set up takes you from an API key to the first trace. Risicare is in private beta, and access is by invitation.

The loop

StepWhat you doSection
1Send traces from your code: LLM calls, tools, agents, sessionsInstrument
2Read a run step by step, filter traces, and see the costObserve
3Keep prompt versions, and move them to production with labelsPrompts
4Try a prompt on one case, or compare two versions on a datasetPlayground
5See how a release changed behaviour, cost and scoresReleases
6Run a dataset through your code, get a verdict against a baseline, and gate a change in CIEvaluations
7Get a message when a metric crosses a thresholdAlerts
8Receive events at your own endpoint, for example when an alert fires or a prompt changesWebhooks
9Chart your traces, cost and scoresDashboards

Admin covers organizations, projects, API keys, the team and your data. Reference has the SDK references, the REST API and the changelog.

Error codes

The SDK gives an error code to an error span (a cancel or an abort gets none). It can send 23 of the 154 codes of the taxonomy, the same in Python and JavaScript. See Error Taxonomy.

Root-cause diagnosis, fix generation and fix deployment are built and held for the beta. See Held for the beta.

Progressive Integration

TierCodeWhat You Get
0import risicare + RISICARE_API_KEY + RISICARE_TRACING=trueLLM calls of the supported providers traced
1risicare.init(...)Explicit configuration
2@agent()Agent identity tracking
3@sessionUser session grouping
4@trace_think/decide/actDecision phase tracking
5@trace_message/delegateFull multi-agent support