LabscoMCP early access ↗
langchain-ai avatar✓ Official

langgraph-python-quickstart

Account or credentials required★ 1.3k on GitHub
part of langchain-ai/langchain-skillsby langchain-ai

Builds LangGraph's quickstart calculator agent in Python, a small agent that does arithmetic with tools, laid out as a graph of steps and run on the model of your choice.

WHEN TO USE

SCOPE

USE FOR

  • Build the math agent with LangGraph's Graph API, as the live docs show it.
  • Replace the docs' hardcoded Anthropic model with whichever model you choose.
  • Set up the example in a new folder so your current project is left alone.
  • Ask it to add 3 and 4 and check the answer comes back.
  • See where to go next, or switch to LangChain's simpler agent API instead.