Examples

Example: LangChain Agent

LangChain agent with AgentTrust callback integration.

Example: LangChain Agent

Overview

All three integration patterns (auto-instrument, @harness, direct client) with LangChain LCEL.

Prerequisites

pip install "agentrust-sdk[embedded]" langchain langchain-openai

Step-by-Step Guide

python examples/langchain_agent.py

Source: examples/langchain_agent.py