Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Rasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tm-chatbot
Wiki Rasa
Commits
799efeb4
Commit
799efeb4
authored
6 years ago
by
Jonas Wolff
Browse files
Options
Downloads
Patches
Plain Diff
fixed birthplace function overwrite bug
parent
df5efc59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!20
Example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
example/actions.py
+2
-3
2 additions, 3 deletions
example/actions.py
with
2 additions
and
3 deletions
example/actions.py
+
2
−
3
View file @
799efeb4
...
...
@@ -31,9 +31,8 @@ class ActionUtterBirthplace(Action):
def
run
(
self
,
dispatcher
,
tracker
,
domain
):
person
=
tracker
.
get_slot
(
'
physicist
'
)
birthplace
=
tracker
.
get_slot
(
'
birthplace
'
)
dispatcher
.
utter_message
(
birthplace
)
if
birthplace
==
None
:
dispatcher
.
utter_message
(
"
Error: Birthplace of
"
+
person
+
"
not known.
"
)
dispatcher
.
utter_message
(
"
Error: Birthplace of
"
+
person
+
"
not known.
"
)
else
:
dispatcher
.
utter_message
(
"
The birthplace of
"
+
person
+
"
is
"
+
birthplace
+
"
.
"
)
return
[]
...
...
@@ -43,7 +42,7 @@ class ActionUtterBirthplace(Action):
#
class
ActionSearchDayOfDeath
(
Action
):
def
name
(
self
):
return
'
action_search_
birthplace
'
return
'
action_search_
day_of_death
'
def
run
(
self
,
dispatcher
,
tracker
,
domain
):
import
csv
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment