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: add context to get approval request #14

Closed edwinkys closed 1 week ago

edwinkys commented 1 week ago

Description

Fixes #1

This PR allows clients to pass context string to the server which then will be relayed to the dashboard. This allows approvers to have a better context about the pending operation. This could be used to pass comments about the function or LLM prompts triggering the function, etc.

How Has This Been Tested?

I'm not quite sure how to add a unit test to include this change.

Checklist