Skip to main content
Weave provides two ways to integrate with your AI stack:
  • Trace agents: for multi-turn agentic applications built with agent SDKs (such as the OpenAI Agents SDK or Google ADK) or run inside agent harnesses (such as Claude Code, Codex, or Pi.dev). These integrations capture sessions, turns, LLM calls, and tool calls, and render them in the Weave Agents view.
  • Trace LLM applications: for code that calls LLM providers (OpenAI, Anthropic, Bedrock, and others) or uses orchestration frameworks (LangChain, LlamaIndex, DSPy, and others). These integrations capture individual LLM calls and pipeline steps as Weave Calls in the Traces view.
If you’re not sure which path to take, start with Trace your agents for new multi-turn agent work, or Trace LLM applications for existing LLM-call workflows.

Trace agents

Use these integrations when you’re building multi-turn agentic applications and want sessions, turns, and tool calls to appear in the Weave Agents view. For agent SDKs, harnesses, and custom instrumentation, see Trace agent integrations.

Trace LLM applications

If your application calls an LLM provider’s API directly or uses an orchestration framework, Weave can automatically intercept traces (using autopatching) for many libraries and frameworks. After you import the Weave SDK into your code and initialize it with weave.init, Weave records each request as a Call with inputs, outputs, latency, token usage, and cost. For libraries Weave doesn’t autopatch, you can manually apply Weave Ops to your code to capture traces.

LLM providers

LLM providers are the vendors that offer access to large language models to generate predictions. Weave integrates with these providers to log and trace the interactions with their APIs:

Frameworks

Frameworks help orchestrate the execution pipelines in AI applications. They provide tools and abstractions for building complex workflows. Weave integrates with these frameworks to trace the entire pipeline:

Reinforcement learning frameworks

Weave integrates with reinforcement learning frameworks to trace training and evaluation runs:

Protocols

Weave integrates with standardized protocols that enable communication between AI applications and their supporting services: