3 ms·
nice work on extracting and open-sourcing this lib! I'm working on an agentic b2b ai myself and i found the process to add different tools quite annoying. This
by namanyayg 2y ago
nice work on extracting and open-sourcing this lib!
I'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?
- zby 2y agoIn general I don't - but I have some minor cases where I try to fix the JSON - see the tests: https://github.com/zby/LLMEasyTools/blob/main/tests/processor_test.py#L107 https://github.com/zby/LLMEasyTools/blob/main/tests/processo... and https://github.com/zby/LLMEasyTools/blob/main/tests/processor_test.py#L133 https://github.com/zby/LLMEasyTools/blob/main/tests/processo...