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 e9a0cba commit 51ab0a1Copy full SHA for 51ab0a1
nemoguardrails/actions/v2_x/generation.py
@@ -173,15 +173,11 @@ async def _collect_user_intent_and_examples(
173
174
flow_config = state.flow_configs.get(flow_id, None)
175
element_flow_state_instance = state.flow_id_states[flow_id]
176
- if (
177
- isinstance(flow_id, str)
178
- and flow_config is not None
179
- and (
180
- flow_config.has_meta_tag("user_intent")
181
- or (
182
- element_flow_state_instance
183
- and "_user_intent" in element_flow_state_instance[0].context
184
- )
+ if flow_config is not None and (
+ flow_config.has_meta_tag("user_intent")
+ or (
+ element_flow_state_instance
+ and "_user_intent" in element_flow_state_instance[0].context
185
)
186
):
187
if flow_config.elements[1]["_type"] == "doc_string_stmt":
0 commit comments