kortix-ai / agentpress

Building Blocks for AI Agents.
MIT License
31 stars 5 forks source link

Modularise Thread Manager #16

Open markokraemer opened 5 days ago

markokraemer commented 5 days ago

Currently Thread Manager has params like use_xml_tool_calling & use_native_llm_tool_calling

Thread Manager has params for an optional:

Which use the interface base class in base_processors.py These essentially make the system semi-modular. You can create a new Tool Parser, Tool Executor, Results Adder from base_processors & put them on the run_thread – it will use this PARSING – EXECUTING – RESULTS ADDING then. Semi-because it also often requires change towards the tool.py – for example for XML I added custom xml_schema & handling – I also left one open with 'custom-schema'.

Maybe a use_custom_tool_calling param to True & then it can use these optional ones you create etc...? Idk doesn't feel modular enough with the above params as well.

markokraemer commented 5 days ago

If we make the Tool.py more modular its basically it. Create a base interface on whats needed & have different variations of that then.