Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the low-level SDK to evaluate provider input before the upstream call.
import { AvertaDecisionClient } from "@averta-security/sdk-core"; const client = new AvertaDecisionClient({ avertaApiKey: process.env.AVERTA_API_KEY!, clientMetadata: { name: "my-custom-adapter", version: "0.1.0", }, });
const decision = await client.preflight({ provider: { name: "anthropic", operation: "messages.create", model: "claude-sonnet-4-5", }, payload: { text: "Summarize this document.", }, requestContext: { conversationId: "conversation_123", requestId: "request_456", traceId: "trace_789", }, });
if (decision.decision === "block") { throw new Error(decision.reasons[0]?.message ?? "Request blocked"); } const blockedTools = decision.blockedTools ?? [];
allow
block
restrict_tools