# Check your agent's tool calls with the Amiril SDK

The Amiril SDK runs inside your agent and checks each tool call against your rules before the tool runs. Pick the guide for your framework and language.

Add the SDK to your agent and it checks each tool call against the rules you publish in Amiril. A blocked call never reaches the tool. Each framework guide ends with your agent connected to your workspace. Most start with a rule in a local file, so you can try the SDK before you have an API key.

The SDK reports to Amiril what each rule decided, but it sends no traces. A trace records what your agent did in a run. Amiril needs traces to find [issues](/monitor/issues), the problems your runs share, and to [test rules on past calls](/rules/test). For those, also [send traces](/quickstart/traces).

<Cards>
<Card title="Google ADK" href="/sdk/google-adk">
Add Amiril as the first plugin of an ADK app, in Python or TypeScript.
</Card>

<Card title="LangGraph" href="/sdk/langgraph">
Add Amiril as middleware for `create_agent`, in Python or TypeScript.
</Card>

<Card title="LiveKit Agents" href="/sdk/livekit">
Wrap the function tools of a LiveKit voice agent in Python, then answer a phone number.
</Card>

<Card title="Your own agent loop" href="/sdk/no-framework">
Wrap the tools of an agent loop you wrote yourself, in Python or TypeScript.
</Card>

<Card title="Another framework" href="/sdk/write-an-adapter">
Write an adapter that passes your framework's hooks to Amiril.
</Card>

<Card title="How rules reach your agent" href="/sdk/rule-sync">
Learn how often the SDK syncs and what it does while Amiril is unreachable.
</Card>

<Card title="SDK configuration" href="/reference/sdk-config">
Look up every `init` option and environment variable, in Python and TypeScript.
</Card>
</Cards>

## Next steps

- [Block your first tool call](https://docs.amiril.ai/quickstart/rules.md): Run a rule that caps payments, then watch the Amiril SDK block a tool call on your laptop. You need no account and no API key to try it.
- [How rules work](https://docs.amiril.ai/rules.md): A rule checks each tool call your agent makes and lets it run, flags it or blocks it. Rules run in your agent, and Shadow mode shows what one would do first.
- [Write your first rule](https://docs.amiril.ai/rules/first-rule.md): Start from a rule Amiril drafted for an issue, or from a blank rule. Save it, publish it in Shadow, then switch it to Enforce in one environment.
- [How rules reach your agent](https://docs.amiril.ai/sdk/rule-sync.md): The SDK keeps your published rules in the agent's process and checks each tool call there. It keeps checking when Amiril is unreachable or the agent restarts.

## More detail

- [SDK behaviour in detail](https://docs.amiril.ai/assistant/sdk.md): The Amiril SDK past the setup guides: per-framework gaps, run ids and sessions, hook order and its errors, restarts, shutdown, offline behaviour, model messages, tested versions.
- [Troubleshooting](https://docs.amiril.ai/assistant/troubleshooting.md): Symptom, cause, how to confirm and fix for common Amiril problems: missing runs, plan limits, wrong agent or environment, rules that never fire or never block, SDK, key, import and MCP failures.
- [Limits and defaults](https://docs.amiril.ai/assistant/limits.md): Every limit and default a customer can hit in Amiril, with its number: plan amounts, ingest sizes and rates, imports, rules, backtests, API and MCP rates, page sizes, retention, name lengths.
