-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dm2' into ATO-1539-add-support-for-pypred-validation-of…
…-slot-values-in-the-collect-information-flow-step
- Loading branch information
Showing
119 changed files
with
1,195 additions
and
456 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,17 @@ exclude = "((.eggs | .git | .pytest_cache | build | dist))" | |
|
||
[tool.poetry] | ||
name = "rasa" | ||
version = "3.8.0a4" | ||
version = "3.8.0a7" | ||
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants" | ||
authors = [ "Rasa Technologies GmbH <[email protected]>",] | ||
maintainers = [ "Tom Bocklisch <[email protected]>",] | ||
homepage = "https://rasa.com" | ||
repository = "https://github.com/rasahq/rasa" | ||
documentation = "https://rasa.com/docs" | ||
classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Libraries",] | ||
classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries",] | ||
keywords = [ "nlp", "machine-learning", "machine-learning-library", "bot", "bots", "botkit", "rasa conversational-agents", "conversational-ai", "chatbot", "chatbot-framework", "bot-framework",] | ||
include = [ "LICENSE.txt", "README.md", "rasa/shared/core/training_data/visualization.html", "rasa/cli/default_config.yml", "rasa/shared/importers/*", "rasa/utils/schemas/*", "rasa/keys", "rasa/core/channels/chat.html", "rasa/cdu/classifiers/command_prompt_template.jinja2",] | ||
include = [ "LICENSE.txt", "README.md", "rasa/shared/core/training_data/visualization.html", "rasa/cli/default_config.yml", "rasa/shared/importers/*", "rasa/utils/schemas/*", "rasa/keys", "rasa/core/channels/chat.html", "rasa/dialogue_understanding/classifiers/command_prompt_template.jinja2",] | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
[[tool.poetry.source]] | ||
name = "internal repository mirroring psycopg binary for macos" | ||
url = "https://europe-west3-python.pkg.dev/rasa-releases/psycopg-binary/simple/" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from typing import Any, Text, Dict, List | ||
from rasa_sdk import Action, Tracker | ||
from rasa_sdk.executor import CollectingDispatcher | ||
from rasa_sdk.events import SlotSet | ||
|
||
|
||
class ActionSufficientFunds(Action): | ||
def name(self) -> Text: | ||
return "action_sufficient_funds" | ||
|
||
def run( | ||
self, | ||
dispatcher: CollectingDispatcher, | ||
tracker: Tracker, | ||
domain: Dict[Text, Any], | ||
) -> List[Dict[Text, Any]]: | ||
# hard-coded balance for tutorial purposes. in production this | ||
# would be retrieved from a database or an API | ||
balance = 1000 | ||
transfer_amount = tracker.get_slot("amount") | ||
has_sufficient_funds = transfer_amount <= balance | ||
return [SlotSet("has_sufficient_funds", has_sufficient_funds)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
recipe: default.v1 | ||
language: en | ||
pipeline: | ||
- name: LLMCommandGenerator | ||
llm: | ||
model_name: gpt-4 | ||
|
||
policies: | ||
- name: rasa.core.policies.flow_policy.FlowPolicy | ||
# - name: rasa_plus.ml.DocsearchPolicy | ||
# - name: RulePolicy | ||
|
||
assistant_id: 20230405-114328-tranquil-mustard |
Oops, something went wrong.