Simple LangGraph agent (Gemini + a mock weather tool), traced to LangSmith.
- Copy
.env.exampleto.envand fill in your keys. python3 -m venv .venv.venv/bin/pip install -r requirements.txt
.venv/bin/streamlit run app.py
Enter a query in the text box and click "Run agent".
Case 1 — success (clean run, correct output):
.venv/bin/python agent.py
Case 2 — failure (tool raises an exception, visible as a failed trace in LangSmith):
.venv/bin/python agent.py --break
All runs appear in your LangSmith project (LANGCHAIN_PROJECT in .env).