Please make sure you set up your environment with pip, conda, poetry, or docker! You can set up the keys for the different providers in a config.py as recommended in the book. Please check the setup instructions for dependencies and API keys before you start.
| Section | File | Colab | Kaggle |
|---|---|---|---|
| Tool calling basics | notebook | ||
| Tools in LangChain | notebook | ||
| Custom tools | notebook | ||
| Built-in tools | notebook | ||
| ReACT | notebook | ||
| Advanced tool calling capabilities | notebook | ||
| Structured outputs and controlled generation | notebook | ||
| Plan-and-solve agent | notebook |
To import any notebook to Kaggle:
- Click the Kaggle badge above
- Go to File → Import Notebook → GitHub
- Paste the corresponding GitHub URL:
- Tool Calling Basics:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/tools_with_llm_example.ipynb - Tools in LangChain:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/tools_langchain.ipynb - Custom Tools:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/custom_tools.ipynb - Built-in Tools:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/built-in_tools.ipynb - ReACT:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/react_example.ipynb - Advanced Tool Calling:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/tool_node.ipynb - Structured Outputs:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/structured_output.ipynb - Plan-and-Solve Agent:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter5/plan_and_solve.ipynb
- Tool Calling Basics: