Consider giving this repo a ✨! Thanks!!!
You need to have the following tools installed:
# To install all dependencies
pnpm install
- Feel free to use OpenAI or any OpenAI compatible server.
- Use this guide to setup inferix to host a OpenAI compatible API capable of function calling.
INFERIX_BASE_URL
INFERIX_API_KEY
You can change these by updating the
./src/utils/models.ts
file.
We got 4 scripts in this project:
pnpm run 00
- Making a simple inference call using langchain js.pnpm run 01
- Running an langgraph equivalent of the above step.pnpm run 02
- Add support for function/tool calling in langgraphpnpm run 03
- A full feldged langgraph app.
You can try running the final script with the following inputs:
Get me all my tasks
- It will list and summarize all your tasks.I got my groceries
- It marks the "Buy groceries task as done."I finished watching all episodes from Naruto
- It doesn't do anything cause such a task doesn't exist.