Skip to content

Commit

Permalink
Fix issues with delayed restart of continuation flow
Browse files Browse the repository at this point in the history
  • Loading branch information
schuellc-nvidia committed Oct 1, 2024
1 parent 4e0905e commit a6c8580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemoguardrails/colang/v2_x/library/llm.co
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ flow continuation on unhandled user intent
@loop("NEW")
flow continuation on undefined flow
"""Generate and start a new flow to continue the interaction for the start of an undefined flow."""
activate polling llm request response
match UnhandledEvent(event="StartFlow") as $event
log 'unhandled start of flow: `{$event.flow_id}` ({$event.flow_instance_uid})'

Expand All @@ -199,6 +198,8 @@ flow continuation on undefined flow
# We have an undefined bot intent, let's generate a new flow for it
log 'unhandled bot intent flow: `{$event.flow_id}`'

activate polling llm request response

# Generate a flow and add it to the runtime
$flow_source = await GenerateFlowFromNameAction(name=$event.flow_id)
await AddFlowsAction(config=$flow_source)
Expand Down

0 comments on commit a6c8580

Please sign in to comment.