Support Approval Func in BaseTool in AgentChat #5891
Labels
needs-design
A design needs to be created and agreed upo
proj-core
tool-usage
suggestion and execution of function/tool call
Milestone
Background
Agents can act via tools. The BaseTool interface in AutoGen provides an excellent scaffold for building tools across the framework. Extensions of BaseTool like FunctionTool, PythonCodeExecutionTool, and others demonstrate the flexibility and value of this tool.
The Approval Challenge and Opportunity
An important capability for a framework is the ability to allow users to "approve" actions before they are "executed". The opportunity here is to build this into the BaseTool library by adding an approval mechanism that maintains backward compatibility.
Proposed Design Sketch [discussion welcome]
1. Add Approval Function to BaseTool
2. Create an Approval Result Model
3. Modify run_json to Check Approval
4. Add to AssistantAgent
Benefits
Implementation Notes / Open Questions
Thoughts welcome @ekzhu @jackgerrits @husseinmozannar
The text was updated successfully, but these errors were encountered: