Adding AgentOps to LangChain applications
1
Install the AgentOps SDK and the additional LangChain dependency
Give us a star on GitHub while youโre at it (you may be our 3,000th ๐)
2
Set up your import statements
Import the following LangChain and AgentOps dependencies
3
Set up your LangChain handler to make the calls
Set up your LangChain agent with the AgentOps callback handler, and AgentOps will automatically record your LangChain sessions.Read more about environment variables in Advanced Configuration
4
Run your agent
Execute your program and visit app.agentops.ai/drilldown to observe your LangChain Agent! ๐ต๏ธ

Clickable link to session

