Skip to main content
These APIs enable tracing. They do not enable reflection by themselves. Use the same explicit client for tracing and Reflect when combining them. LangChain, LangGraph, and DeepAgents use callback handlers passed to native invocation configuration. Their inherited callback methods are framework hooks; applications normally construct a handler once and let the framework call it. The callback contracts below include those inherited SDK methods. Other integrations use the framework’s adapter, processor, query wrapper, or agent wrapper. Register instrumentation once at application startup. See Reflect integrations for memory tooling and reflection continuation. Google ADK, Claude Agent SDK, and CrewAI adapters expose synchronous instrument() registration. OpenAI Agents uses its native tracing processor hooks. Framework packages remain optional; constructing/importing a particular integration may require its optional dependency. Constructor **kwargs on LangChain-family handlers accepts the shared adapter identity options: client, session_id, user_id, tags, and metadata. LangGraph utility re-exports are included for completeness; prefer the native callback handler for instrumentation.

On this page

ClaudeAgentSDKAdapter, CrewAIAdapter, DeepAgentsCallbackHandler, GoogleADKAdapter, LangChainCallbackHandler, LangGraphCallbackHandler, OpenAIAgentsAdapter, _ROLE_MAP, _normalize_content_blocks, _normalize_role, extract_model_parameters, extract_name, extract_reasoning_from_generation, extract_token_usage, normalize_langchain_input, normalize_langchain_output, normalize_llm_generation_output, normalize_type_to_role, safe_output.

Example

Full native setup examples are in the tracing integrations and Reflect integrations.

ClaudeAgentSDKAdapter

PandaProbe integration adapter for the Claude Agent SDK. Source declaration

Constructor

Methods

Apply monkey-patches to Claude Agent SDK internals.

CrewAIAdapter

PandaProbe integration adapter for CrewAI. Source declaration

Constructor

Methods

Apply monkey-patches to CrewAI internals.

DeepAgentsCallbackHandler

LangChain BaseCallbackHandler for deepagents-built agents. Source declaration

Constructor

Fields and properties

Methods

GoogleADKAdapter

PandaProbe integration adapter for Google ADK. Source declaration

Constructor

Methods

Apply monkey-patches to Google ADK internals.

LangChainCallbackHandler

LangChain BaseCallbackHandler for LangChain agents and LCEL chains. Source declaration

Constructor

Fields and properties

Methods

LangGraphCallbackHandler

LangChain BaseCallbackHandler that maps graph events to PandaProbe traces. Source declaration

Constructor

Fields and properties

Methods

OpenAIAgentsAdapter

PandaProbe integration adapter for the OpenAI Agents SDK. Source declaration

Constructor

Methods

Register a TracingProcessor with the OpenAI Agents SDK.

_ROLE_MAP

Source declaration

_normalize_content_blocks

Normalize provider-specific content block lists to a universal format. Source declaration

_normalize_role

Map LangChain role names to the OpenAI-style equivalents. Source declaration

extract_model_parameters

Extract whitelisted model parameters, dropping None values and secrets. Source declaration

extract_name

Extract a human-readable name from a LangChain serialized dict. Source declaration

extract_reasoning_from_generation

Extract reasoning/thinking text from a LangChain LLM response. Source declaration

extract_token_usage

Extract token usage from LangChain’s usage_metadata and normalise to PandaProbe’s flat dict[str, int] standard (matching the ADK, Gemini, OpenAI, and Anthropic wrappers): Source declaration

normalize_langchain_input

Convert LangChain input formats to standard role/content dicts. Source declaration

normalize_langchain_output

Extract only the last message from outputs, renaming type to role. Source declaration

normalize_llm_generation_output

Extract the actual message from LangChain’s response.generations. Source declaration

normalize_type_to_role

Recursively rename type to role, normalize roles, and strip thinking blocks. Source declaration

safe_output

Ensure a callback output is JSON-serialisable. Source declaration

Signatures and fields are generated from the SDK source. See the import index for available entry points.