Quick Start
1
Install Dependencies
2
Set Environment Variables
3
Run Your Agent
How It Works
Configuration Options
Common Patterns
- Single Agent
- Multi-Agent Team
- With Tools
- Explicit Tracing
What You See in LangSmith
Diagnostics & Verification
Check your setup with the built-in doctor:- Python
- CLI
PraisonAI Branding
Every agent and workflow span automatically includes PraisonAI branding in LangSmith metadata:
Workflow spans also capture structured input (agent names, task descriptions) and output.
Best Practices
Use project names to organize traces
Use project names to organize traces
Set
LANGSMITH_PROJECT or pass project_name to group traces by environment or feature.Use auto-instrumentation for most cases
Use auto-instrumentation for most cases
Auto-instrumentation traces everything automatically. Only use explicit
obs.trace() when you need custom trace boundaries or additional metadata.Set environment variables in .env files
Set environment variables in .env files
Keep API keys out of code. Use
.env files or your deployment platform’s secret management.Monitor token usage for cost control
Monitor token usage for cost control
LangSmith traces include token counts for every LLM call. Use this to identify expensive operations and optimize prompts.
Related
Observability Overview
All supported observability providers
Langfuse
Alternative open-source observability

