Quick Start
This chapter builds your first tool-using agent with LangChain 1.0's create_agent.
Minimal agent
What happens:
- The model reads the user message
- It chooses to call
get_weather - The framework runs the tool and feeds the result back
- The model writes the final answer
@tool decorator
Add types and docstrings so the model knows how to call tools:
Streaming
Use stream_mode="updates" to see per-node updates (including tool calls).
Structured output
Multi-turn memory (preview)
Use a checkpointer and thread_id (Memory & Checkpoints):
Checklist
- venv +
pip install langchain langgraph langchain-openai - Set
OPENAI_API_KEY - Run the minimal agent
- Add a
@tooland watch tool calls - Try
streamandcheckpointer