Skip to main content

Installation

Peer dependency: @langchain/core >= 0.2.0.

Three-line setup

That’s it. Every LLM call and tool invocation is now attested to Vane.

VaneCallbackHandler

Extends LangChain’s BaseCallbackHandler. Attach it to any LLM, chain, or agent executor.

Constructor options

What gets attested

Chat models go through handleChatModelStart (not handleLLMStart). Both paths are covered — you will always get an llm-call record regardless of whether you use a chat model or a completion model.

Error handling

Attestation calls are fire-and-forget. If the Vane server is unavailable, the error is logged to console.error and the LangChain execution continues uninterrupted. Attestation failures never block or crash your agent.

Attaching to different LangChain components

LLM or chat model:
Agent executor:
Chain:
Global (all callbacks):

Example — full agent

Each tool call and LLM completion in this run will produce a signed record in Vane.