I want to add human in the loop to our agent which is hosted in a fast API. Does anybody know of a good example of handling human in the loop of http? #30293
Replies: 1 comment
-
To add a human-in-the-loop mechanism to your FastAPI-hosted agent, you can consider implementing checkpoints where human approval is required before proceeding with certain actions. LangChain provides guidance on this by suggesting the use of Additionally, you can incorporate error handling and logging mechanisms to trigger human intervention when necessary. For example, logging inputs and outputs, especially when exceptions occur, can allow humans to review and correct errors, which can then be used to improve the model's performance [2][3]. These approaches can be adapted to your specific use case within the FastAPI application by integrating them into the existing endpoints or creating new ones that facilitate human oversight. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add human in the loop to our agent which is hosted in a fast API. Does anybody know of a good example of handling human in the loop of http?
Beta Was this translation helpful? Give feedback.
All reactions