phantasmlabs / phantasm

Toolkits to create a human-in-the-loop approval layer to monitor and guide AI agents workflow in real-time.
https://docs.phantasmlabs.com
GNU General Public License v3.0
126 stars 6 forks source link

[FEAT] create python decorator for get approval #12

Open edwinkys opened 1 week ago

edwinkys commented 1 week ago

Feature Description

We want to add a Python decorator abstracting the core functionality of get approval method:

Potential Solution

require_approval() should only care if the function is approved or not. require_approval_with_parameters() should support inserting parameters from the approvers.

Additional Context

I want the usage to be similar with this from HumanLayer