> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LangSmith

> Use LangSmith observability with PraisonAI TypeScript

# LangSmith Observability

LangChain's observability platform.

## Environment Variables

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export LANGCHAIN_API_KEY=...
export LANGCHAIN_PROJECT=default  # optional
```

## Quick Start

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { Agent, setObservabilityAdapter } from 'praisonai';
import { LangSmithObservabilityAdapter } from 'praisonai/observability';

const obs = new LangSmithObservabilityAdapter();
await obs.initialize();
setObservabilityAdapter(obs);

const agent = new Agent({
  name: 'TracedAgent',
  instructions: 'You are helpful.',
  llm: 'openai/gpt-4o-mini'
});

await agent.chat('Hello!');
await obs.flush();
```

## Related

* [LangSmith CLI Usage](/docs/js/observability/langsmith-cli)
