You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: human-loop/readme.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
-
# Restack AI - Human in the loop example
1
+
# Restack AI - Agent with Human in the loop
2
2
3
3
This example will illustrate how you can handle events that will receive feedback as input and have a function that will acknowledge the feedback was received.
4
-
It will also showcase how a workflow can be left running indefinitely until a condition is met by the usage of the `condition`.
4
+
It will also showcase how an agent is left running indefinitely until a condition is met by the usage of the `condition`.
5
5
6
-
Idea is the humanLoop workflow will have two events:
6
+
The Agent with Human in the loop will have two events:
7
7
8
8
1. feedback. This event will be triggered whenever you want to send feedback to your desired AI. For simplicity purposes, the function called on this event will just reply with a message that the feedback was received.
9
-
2. end. This event will be triggered when you are done with interactions and you want your workflow to be done and exit. Right now it sets the `endWorkflow` local variable on the workflow to true, which will make the `condition` set to resolve successfully and exit the workflow. You can use this example as guidance on how you can keep a workflow running until the end event is sent and how it will handle the events you have defined for the time it is running.
9
+
10
+
2. end. This event will be triggered when you are done with interactions and you want your agent to be done and exit. Right now it sets the `endEvent` local variable on the agent to true, which will make the `condition` set to resolve successfully and exit the agent. You can use this example as guidance on how you can keep an agent running until the end event is sent and how it will handle the events you have defined for the time it is running.
0 commit comments