Consider giving this repo a ✨! Thanks!!!
You need to have the following tools installed:
# To setup uv
uv sync
Note: You can use any OpenAI compatible backend or simply use OpenAI itself.
- Feel free to use any OpenAI compatible API.
- Make sure you have Ollama installed.
- Make sure you have pulled a model. I recommend Qwen 2.5 32B.
- Use this guide to setup inferix to host a OpenAI compatible API capable of function calling.
- Checkout the example dotenv file at
.env.example
. - Create a new
.env
using the example one as a template. - Replace the variables as necessary.
We've got a few scripts in this project:
uv run src/01_first_graph.py
- Our first graph using LangGraph.uv run src/02-basic-read.py
- Simple tool use in LangGraph (using LangChain).uv run src/03-basic-read-pydantic.py
- Simple tool use in LangGraph (using Pydantic AI).uv run src/04-mixing-it-up.py
- Mixing up LangChain and Pydantic AI within LangGraph.uv run src/05-final-graph.py
- A complete agentic workflow made using Pydantic AI & LangGraph.