The way it works is we prompt the LLM to generate code to call the tools directly. We then parse the AST to validate it and restrict it to a very small/safe subset (whitelisted function calls.)
HF smolagents does something similar and there are a few papers out there validating the approach.
The way it works is we prompt the LLM to generate code to call the tools directly. We then parse the AST to validate it and restrict it to a very small/safe subset (whitelisted function calls.)
HF smolagents does something similar and there are a few papers out there validating the approach.