Framework integration guides
Short, copy-paste examples for each supported framework. Use the callback handler where available, or the HTTP proxy for anything else.
LangChain
from langchain.agents import AgentExecutor
from driftbase import DriftbaseCallbackHandler
handler = DriftbaseCallbackHandler(version="v1.0")
agent_executor = AgentExecutor(..., callbacks=[handler])LangGraph
from langchain.agents import create_agent
from driftbase import DriftbaseCallbackHandler
handler = DriftbaseCallbackHandler(version="v1.0")
app = create_agent(..., callbacks=[handler])AutoGen
Use the HTTP proxy: point your agent’s API base URL to the Driftbase proxy; the proxy records signals and forwards requests. See the proxy section in Quickstart or run driftbase proxy --help.
CrewAI
Same pattern: add the callback handler to the crew run if the API supports callbacks, or use the HTTP proxy for framework-agnostic capture.
Raw OpenAI / API-only
Use the HTTP proxy as a man-in-the-middle: send your requests to the proxy; it forwards to OpenAI (or your provider) and records tool use, latency, and outcomes. No SDK needed.
For full options (env vars, versioning), see Quickstart.