version: "3.0" rules: - rule: activate weather form steps: - intent: weather - action:…
- User
version: "3.0" rules:
- rule: activate weather form
steps:
- intent: weather
- action: weather_form
- active_loop: weather_form
- rule: Submit form
condition:
Condition that form is active.
- active_loop: weather_form steps:
- action: weather_form
- active_loop: null
- slot_was_set:
- requested_slot: null
The action we want to run when the form is submitted.
- action: action_weather_form_submit 上面的我没看懂,为什么要写成两个rule?为什么 condition:
Condition that form is active.
- active_loop: weather_form steps:
- action: weather_form 上面的condition已经表明在active_loop中了,为什么steps后面上来还是weather_form?
- rule: activate weather form
steps:
Assistant
I apologize for any confusion caused by the previous response. The two rules are not necessary and can be combined into one rule.
Here's an updated version of the rule:
- rule: Submit form
condition:
- active_loop: weather_form steps:
- action: weather_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: action_weather_form_submit
This rule will activate the weather form and submit it when the user provides all the required information. The
active_loopcondition ensures that the form is active, and theslot_was_setcondition checks if all the required slots have been filled. If both conditions are met, theaction_weather_form_submitaction will be executed.- rule: Submit form
condition:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.