Skip to content

Commit

Permalink
Merge branch 'dm2' into ATO-1539-add-support-for-pypred-validation-of…
Browse files Browse the repository at this point in the history
…-slot-values-in-the-collect-information-flow-step
  • Loading branch information
ancalita committed Sep 18, 2023
2 parents 614acf0 + 4a71f91 commit ddc08d0
Show file tree
Hide file tree
Showing 119 changed files with 1,195 additions and 456 deletions.
201 changes: 0 additions & 201 deletions LICENSE.txt

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ thus validating compatibility between Rasa and Rasa X/Enterprise.
Please refer to the [Rasa Product Release and Maintenance Policy](https://rasa.com/rasa-product-release-and-maintenance-policy/) page.

## License
Licensed under the Apache License, Version 2.0.
Copyright 2022 Rasa Technologies GmbH. [Copy of the license](LICENSE.txt).
Copyright 2022 Rasa Technologies GmbH.

A list of the Licenses of the dependencies of the project can be found at
the bottom of the
Expand Down
2 changes: 1 addition & 1 deletion data/graph_schemas/default_config_core_predict_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nodes:
needs:
tracker: __tracker__
flows: flows_provider
uses: rasa.cdu.processor.command_processor_component.CommandProcessorComponent
uses: rasa.dialogue_understanding.processor.command_processor_component.CommandProcessorComponent
constructor_name: load
fn: execute_commands
config: { }
Expand Down
2 changes: 1 addition & 1 deletion data/graph_schemas/default_config_e2e_predict_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ nodes:
needs:
tracker: __tracker__
flows: flows_provider
uses: rasa.cdu.processor.command_processor_component.CommandProcessorComponent
uses: rasa.dialogue_understanding.processor.command_processor_component.CommandProcessorComponent
constructor_name: load
fn: execute_commands
config: { }
Expand Down
2 changes: 1 addition & 1 deletion data/graph_schemas/default_config_predict_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ nodes:
needs:
tracker: __tracker__
flows: flows_provider
uses: rasa.cdu.processor.command_processor_component.CommandProcessorComponent
uses: rasa.dialogue_understanding.processor.command_processor_component.CommandProcessorComponent
constructor_name: load
fn: execute_commands
config: { }
Expand Down
2 changes: 1 addition & 1 deletion data/graph_schemas/max_hist_config_predict_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nodes:
needs:
tracker: __tracker__
flows: flows_provider
uses: rasa.cdu.processor.command_processor_component.CommandProcessorComponent
uses: rasa.dialogue_understanding.processor.command_processor_component.CommandProcessorComponent
constructor_name: load
fn: execute_commands
config: { }
Expand Down
2 changes: 1 addition & 1 deletion data/test_config/graph_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ predict_schema:
needs:
tracker: __tracker__
flows: flows_provider
uses: rasa.cdu.processor.command_processor_component.CommandProcessorComponent
uses: rasa.dialogue_understanding.processor.command_processor_component.CommandProcessorComponent
constructor_name: load
fn: execute_commands
config: { }
Expand Down
4 changes: 1 addition & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
29 changes: 0 additions & 29 deletions rasa/cdu/commands/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions rasa/cdu/generator/__init__.py

This file was deleted.

14 changes: 0 additions & 14 deletions rasa/cdu/stack/frames/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions rasa/cli/initial_project_dm2/data/nlu.yml

This file was deleted.

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.
22 changes: 22 additions & 0 deletions rasa/cli/project_templates/tutorial/actions.py
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)]
13 changes: 13 additions & 0 deletions rasa/cli/project_templates/tutorial/config.yml
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
Loading

0 comments on commit ddc08d0

Please sign in to comment.