import { InvioletGateway } from "@inviolet/sdk"
import Anthropic from "@anthropic-ai/sdk"
const inviolet = new InvioletGateway({
apiKey: process.env.INVIOLET_API_KEY!,
// Optional — defaults to https://gateway.inviolet.ai
endpoint: process.env.INVIOLET_GATEWAY_URL,
})
const anthropic = inviolet.wrap(
new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY! }),
)
// Use anthropic exactly as you would normally.
const message = await anthropic.messages.create({
model: "claude-sonnet-4-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Look up customer 12345's recent orders." }],
})