Examples: agents that act through Anlyon
Framework integration examples and local demonstrations of shared allowances and lost responses. Each page explains its prerequisites, evidence and limitations.
Mastra tool approval: require a human decision before a tool writes to GitHub
Mastra's requireApproval pauses a tool call in your app until your code approves it. This example routes a Mastra tool through an Anlyon action instead: an approver reviews the exact file change, Anlyon holds the GitHub token, a shared limit caps the day's writes, and the commit comes back with a graded receipt.
MastraOpenAI Agents SDK: tool calls with human approval, without giving the agent your API key
A runnable TypeScript example: an OpenAI Agents SDK tool that issues Stripe refunds through an Anlyon action. The agent never holds the Stripe key, large refunds wait for a human, and every call is recorded.
OpenAI Agents SDKPydantic AI tool approval: require a human decision before an agent sends email
Pydantic AI's requires_approval ends the run with DeferredToolRequests until your code answers. This example uses deferred tools differently: the tool invokes an Anlyon action, defers while an approver reviews the exact email, and resumes the conversation with the graded receipt. Anlyon holds the Resend key and a shared limit counts every recipient.
Pydantic AIVercel AI SDK: let an agent send customer email, with every send approved
A runnable TypeScript example: a Vercel AI SDK tool that sends email through an Anlyon action. The model drafts, a person approves, Anlyon sends with a key the agent never holds, and the sender address is fixed.
Vercel AI SDKReproduce a write with a lost response
A local executable example shows a side effect succeeding before the caller sees an error, then recovers through operation-specific evidence.
Local demonstrationsRun a shared-allowance accounting model
A dependency-free local example contrasts stale balance checks with reservation and shows why unknown outcomes keep capacity held.
Local demonstrations
