my attempt at a very barebones agent
- be a chatbot
- decide tool(s) to use if any with user consent
- run tools and give output back to llm
- everything else
- any model available via HF inference
git clone https://github.com/yokelman/idiotagent && cd idiotagentuv sync(install uv first)cp .env.example .envand configure itcp tools.json.example tools.jsonand configuretools.jsonandtool_implementations.pypython main.py- enjoy
tools.json - IMPORTANT give tool details here (refer to tools.json.example)
tool_implementations.py - IMPORTANT put the actual code for your tools here
main.py - main logic, relies heavily on other files
hf_query.py - uses HF api to query an LLM (mentioned in .env)
middleware.py - handles system-side function execution
prompts.py - contains common system prompts
utilities.py - contains commonly used simple functions
warning: i have no knowledge of the standard way to build agents, and have made this project mostly for fun with my own logic
warning: you will find no rocket (or other) emojis; everything is hand-written by me so brace yourself
