4 ms·
This has been our experience as well. Initially we had a list of tools that the agent could use to manipulate a data structure in certain ways. This approach wa
by memjay 4mo ago
This has been our experience as well. Initially we had a list of tools that the agent could use to manipulate a data structure in certain ways. This approach was quite brittle.
Now we are using a small DSL (domain specific language) and a single tool where the agent can input scripts written in the DSL. We are getting more dynamic use-cases now and wrong syntax can easily be catched by the parser and relayed to the agent.
- HatchedLake721 4mo agoDo you have an example of type of data and DSL? I feel I’d just give it access to write python/js to manipulate data
- memjay 4mo agoWe decided not to go with Python/JS to make executing safe and simple. The data structure is a recursive list of simple objects that form a table of content. DSL uses Python syntax though. For example: swap_section(a, b) create_section(after=2) delete_section(2) This proved to safe a ton of explanatory prompts that would be needed if every command was a tool instead. And it’s faster and more reliable.