Replies: 3 comments 3 replies
-
In this scenario are you running the LLM calls on the server and provide UI in a web/mobile frontend for a Rails app or is it more like an interactive GUI/CLI Ruby app? |
Beta Was this translation helpful? Give feedback.
-
@swinner2 have you tried to ask permission via turbo in the |
Beta Was this translation helpful? Give feedback.
-
I think the way to do this would be to have some sort of database model. Then, split up the prompts. Trying to do it in-memory seems like it would get crazy (I've thought a lot about it recently for what I'm working on). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context:
I'm exploring how to best implement the "Human-in-the-Loop" pattern, specifically scenarios where explicit human confirmation is required before proceeding with potentially risky or impactful tool calls (such as purchases, executing code, publishing, etc.).
Use Case:
I want my application to request explicit permission from the user before proceeding with certain tool executions initiated by an LLM. Ideally, the workflow would look something like:
Potential Solutions (half-baked)
We could use a new chat with a system prompt specifically around approve/reject with structured output that allows us to check if the LLM thinks the user accepts or rejects.
We could use an "Accept" UI button that persists (db/cache), indicating that the tool has been approved and can proceed.
For the discussion's sake, how would we want to implement "Human-in-the-Loop" for this simple tool?
Beta Was this translation helpful? Give feedback.
All reactions