Anthropic
Wrap the Anthropic SDK with Iqrar's three-line drop-in for full observability over Claude completions and tool use.
bun add @iqrar/agent
import Anthropic from "@anthropic-ai/sdk";
import { Iqrar } from "@iqrar/agent";
const iqrar = Iqrar({
org: "acme",
jurisdiction: "EU",
endpoint: process.env.IQRAR_API,
agentId: "claude-research",
capabilities: ["consumer_chatbot"],
});
const claude = iqrar.wrap(new Anthropic());
const message = await claude.messages.create({
model: "claude-sonnet-4-6",
max_tokens: 1024,
messages: [{ role: "user", content: "hello" }],
});
Tool-use traces flow through automatically — the wrapper emits agent.invocation.start/.end for the top-level messages.create call and you can layer iqrar.observe(...) around your tool dispatch loop for per-tool telemetry.
See also
· · ·