Show HN: LLMEasyTools – Tools for LLM agents (Python lib) (github.com)
A year ago I started working on a agentic RAG idea [1]. I quickly decided that I don't like the existing frameworks and started writing everything from scratch. The agentic RAG is not yet ready - but I extracted the code for dealing with function calling and published it. It is a small library for generating schemas from function signatures and for calling these functions using parameters constructed by the LLM.
There is not much code in it - but it is not as trivial as it would seem when you try to cover all the possible cases.
I think it is now quite well tested and useful.
1 - https://zzbbyy.substack.com/p/ai-applications-for-question-a...
4 comments
[ 3.1 ms ] story [ 24.3 ms ] threadI'm working on an agentic b2b ai myself and i found the process to add different tools quite annoying. This is a great solution. alas, my code is in TypeScript.
i'm curious, how do you handle errors and edge cases when the LLM-generated params don't quite match the function signature?
Even better: extract them to their own function, list all the resulting functions when composing the completion request, and re-assemble the final object when the completion is returned.