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: docs/content/docs/conversation-simulator-stopping-logic.mdx
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Only define the arguments your controller needs. `deepeval` will pass supported
53
53
54
54
-[Optional]`turns`: the current list of `Turn`s in the simulation.
55
55
-[Optional]`golden`: the `ConversationalGolden` being simulated.
56
-
-[Optional]`index`: the index of the golden being simulated.
56
+
-[Optional]`index`: the index of the turn being simulated.
57
57
-[Optional]`thread_id`: the unique thread ID for the simulated conversation.
58
58
-[Optional]`simulated_user_turns`: the number of new simulated user turns generated so far.
59
59
-[Optional]`max_user_simulations`: the maximum number of user-assistant message cycles allowed.
@@ -65,11 +65,14 @@ Only define the arguments your controller needs. `deepeval` will pass supported
65
65
If your controller returns anything other than `proceed()` or `end()`, `deepeval` treats it the same as `proceed()`. This is useful when you only want to explicitly handle terminal states:
66
66
67
67
```python
68
-
from deepeval.simulator.controller import end
68
+
import random
69
+
from deepeval.simulator.controller import end, proceed
69
70
70
-
defcontroller(last_assistant_turn):
71
-
if last_assistant_turn and"refund processed"in last_assistant_turn.content.lower():
0 commit comments