We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75249cc commit 12b9675Copy full SHA for 12b9675
nemoguardrails/colang/v2_x/library/core.co
@@ -163,14 +163,19 @@ flow bot refuse to respond
163
flow tracking bot talking state
164
"""tracking bot talking state in global variable $bot_talking_state."""
165
global $bot_talking_state
166
+
167
+ # TODO: keeping both for backwards compatibility reason. To clean up.
168
global $last_bot_script
169
+ global $last_bot_message
170
171
if $bot_talking_state == None
172
$bot_talking_state = False
173
await bot started saying something
174
$bot_talking_state = True
175
await bot said something as $bot_said_flow
176
177
$last_bot_script = $bot_said_flow.text
178
+ $last_bot_message = $bot_said_flow.text
179
180
@loop("state_tracking")
181
flow tracking user talking state
0 commit comments