Consider giving this repo a ✨! Thanks!!!
This project introduces a new agentic framework - Not Overengineered and Probably Erroneous Agents OR NOPE Agents.
You need to have the following tools installed:
# Setup dependencies
pnpm install
# Generate BAML client
pnpm run generate
# Build the project
pnpm run build
# Start the TypeScript compiler
pnpm run watch
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:
pnpm run 01a
- A simple agentpnpm run 01b
- A simple agent with chat historypnpm run 02a
- A simple structured response example with BAMLpnpm run 02b
- A complete structured response example with BAMLpnpm run 02c
- A complete structured response example with NOPE Agentspnpm run 03a
- A simple tool calling example with BAMLpnpm run 03b
- A complete tool calling example with BAMLpnpm run 03c
- A complete tool calling example with NOPE Agents