Build a basic chatbot with LangGraph and AgentOps tracking
add_messages
.env
file with the necessary API keys:
chatbot.py
to create your LangGraph chatbot:
chatbot.py
- Complete LangGraph chatbot with AgentOps integration.env
- API keys for OpenAI and AgentOpsagentops.init()
- Enables automatic LangGraph instrumentationagentops.start_session()
- Begins tracking each chat sessionagentops.end_session()
- Completes the session with status