Integrations
Drop-in handlers for the agent frameworks, logging libraries and tracing stacks you already use, LangChain, LangGraph, OpenAI Agents, Anthropic, Vercel AI SDK, LlamaIndex, Mastra, Google ADK, plus pino, winston, console capture, OpenTelemetry and BullMQ.
Every integration is an optional peer dependency, @axonpush/sdk loads fine
without any of them, and each publishes through the same AxonPush
client. Install only the host libraries you use:
npm install @langchain/core # LangChain, LangGraph
npm install @anthropic-ai/sdk # Anthropic tracer
npm install @mastra/core # Mastra exporter
npm install winston winston-transport # winston transport
npm install pino # pino stream
npm install @opentelemetry/api @opentelemetry/sdk-trace-base # span exporter
npm install bullmq # durable publish queueEach integration is exported from the package root and as a sub-path import for tree-shaking:
import { AxonPushCallbackHandler } from "@axonpush/sdk";
import { AxonPushCallbackHandler } from "@axonpush/sdk/integrations/langchain";Every integration takes the same IntegrationConfig, an AxonPush client and
a channelId (string UUID). The logging integrations and span exporter also
accept a mode (background, sync, or bullmq); see
BullMQ for the durable mode.
Agent frameworks
LangChain
Callback handler for chain, LLM, and tool lifecycles.
LangGraph
LangChain handler plus per-node graph events.
OpenAI Agents
Run hooks for agent lifecycle, tools, and handoffs.
Anthropic
Wraps messages.create and messages.stream with token usage.
Vercel AI SDK
Language model middleware for generateText and streamText.
LlamaIndex
Hooks for LLM, embedding, retriever, and query stages.
Mastra
Native Mastra 1.x observability exporter.
Google ADK
before/after callbacks for agents, models, and tools.