diff --git a/data/test_endpoints/__init__.py b/actions/__init__.py similarity index 100% rename from data/test_endpoints/__init__.py rename to actions/__init__.py diff --git a/actions/actions.py b/actions/actions.py new file mode 100644 index 000000000000..8bf1f757f851 --- /dev/null +++ b/actions/actions.py @@ -0,0 +1,27 @@ +# This files contains your custom actions which can be used to run +# custom Python code. +# +# See this guide on how to implement these action: +# https://rasa.com/docs/rasa/custom-actions + + +# This is a simple example for a custom action which utters "Hello World!" + +# from typing import Any, Text, Dict, List +# +# from rasa_sdk import Action, Tracker +# from rasa_sdk.executor import CollectingDispatcher +# +# +# class ActionHelloWorld(Action): +# +# def name(self) -> Text: +# return "action_hello_world" +# +# def run(self, dispatcher: CollectingDispatcher, +# tracker: Tracker, +# domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: +# +# dispatcher.utter_message(text="Hello World!") +# +# return [] diff --git a/config.yml b/config.yml new file mode 100644 index 000000000000..18f3540c7ea1 --- /dev/null +++ b/config.yml @@ -0,0 +1,50 @@ +# The config recipe. +# https://rasa.com/docs/rasa/model-configuration/ +recipe: default.v1 + +# The assistant project unique identifier +# This default value must be replaced with a unique assistant name within your deployment +assistant_id: 20260414-120228-frosty-HUD + +# Configuration for Rasa NLU. +# https://rasa.com/docs/rasa/nlu/components/ +language: en + +pipeline: null +# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model. +# # If you'd like to customize it, uncomment and adjust the pipeline. +# # See https://rasa.com/docs/rasa/tuning-your-model for more information. +# - name: WhitespaceTokenizer +# - name: RegexFeaturizer +# - name: LexicalSyntacticFeaturizer +# - name: CountVectorsFeaturizer +# - name: CountVectorsFeaturizer +# analyzer: char_wb +# min_ngram: 1 +# max_ngram: 4 +# - name: DIETClassifier +# epochs: 100 +# constrain_similarities: true +# - name: EntitySynonymMapper +# - name: ResponseSelector +# epochs: 100 +# constrain_similarities: true +# - name: FallbackClassifier +# threshold: 0.3 +# ambiguity_threshold: 0.1 + +# Configuration for Rasa Core. +# https://rasa.com/docs/rasa/core/policies/ +policies: null +# # No configuration for policies was provided. The following default policies were used to train your model. +# # If you'd like to customize them, uncomment and adjust the policies. +# # See https://rasa.com/docs/rasa/policies for more information. +# - name: MemoizationPolicy +# - name: RulePolicy +# - name: UnexpecTEDIntentPolicy +# max_history: 5 +# epochs: 100 +# - name: TEDPolicy +# max_history: 5 +# epochs: 100 +# constrain_similarities: true diff --git a/credentials.yml b/credentials.yml new file mode 100644 index 000000000000..e9f12911e3cf --- /dev/null +++ b/credentials.yml @@ -0,0 +1,33 @@ +# This file contains the credentials for the voice & chat platforms +# which your bot is using. +# https://rasa.com/docs/rasa/messaging-and-voice-channels + +rest: +# # you don't need to provide anything here - this channel doesn't +# # require any credentials + + +#facebook: +# verify: "" +# secret: "" +# page-access-token: "" + +#slack: +# slack_token: "" +# slack_channel: "" +# slack_signing_secret: "" + +#socketio: +# user_message_evt: +# bot_message_evt: +# session_persistence: + +#mattermost: +# url: "https:///api/v4" +# token: "" +# webhook_url: "" + +# This entry is needed if you are using Rasa Enterprise. The entry represents credentials +# for the Rasa Enterprise "channel", i.e. Talk to your bot and Share with guest testers. +rasa: + url: "http://localhost:5002/api" diff --git a/cxx_tracker.py b/cxx_tracker.py new file mode 100644 index 000000000000..0938a3351700 --- /dev/null +++ b/cxx_tracker.py @@ -0,0 +1,33 @@ +import json +from rasa.core.tracker_store import TrackerStore +from rasa.shared.core.trackers import DialogueStateTracker +import fast_tracker + +class CppTrackerStore(TrackerStore): + def __init__(self, domain, event_broker=None, **kwargs): + super().__init__(domain, event_broker, **kwargs) + self.engine = fast_tracker.CppTrackerEngine() + print("🤖 [SYSTEM INFO] Core Engine initialized using C++ Hijack.") + + async def save(self, tracker, timeout=None): + # Extract the serializable list of dictionaries representing tracker events + events_list = [e.as_dict() for e in tracker.events] + state_json = json.dumps(events_list) + + print(f"⚡ [C++ WRITE] Routing dialogue state for '{tracker.sender_id}' to C++ layer.") + self.engine.save(tracker.sender_id, state_json) + + async def retrieve(self, sender_id): + state_json = self.engine.retrieve(sender_id) + if not state_json: + return None + + print(f"🔍 [C++ READ] Retrieving session state for '{sender_id}' from C++.") + events_as_dict = json.loads(state_json) + + # Reconstruct the DialogueStateTracker by replaying the stored events + return DialogueStateTracker.from_dict( + sender_id, + events_as_dict, + self.domain.slots + ) \ No newline at end of file diff --git a/data/rasa_yaml_examples/nlu.yml b/data/rasa_yaml_examples/nlu.yml index 25d182652b44..ae890b16a0ed 100644 --- a/data/rasa_yaml_examples/nlu.yml +++ b/data/rasa_yaml_examples/nlu.yml @@ -1,10 +1,15 @@ +version: "3.1" + nlu: - intent: estimate_emissions - # Arbitrary metadata - metadata: - author: Some example metadata! - key: value - # Multiline examples, each line is a separate training example. examples: | - how much CO2 will that use? - how much carbon will a one way flight from [new york]{"entity": "city", "role": "from"} to california produce? + - how much CO2 will that use? + - how much carbon will a one way flight from [new york]{"entity": "city", "role": "from"} to [california]{"entity": "city", "role": "to"} produce? + +- intent: give_name + examples: | + - my name is lors + - I am Francelle + - call me Lorraine + - I'm Sam + - my name is [lors](name) \ No newline at end of file diff --git a/data/rules.yml b/data/rules.yml new file mode 100644 index 000000000000..65926178907c --- /dev/null +++ b/data/rules.yml @@ -0,0 +1,6 @@ +version: "3.1" +rules: + - rule: Say goodbye anytime the user leaves + steps: + - intent: goodbye + - action: utter_goodbye diff --git a/data/stories.yml b/data/stories.yml new file mode 100644 index 000000000000..b5e99b99fa1e --- /dev/null +++ b/data/stories.yml @@ -0,0 +1,8 @@ +version: "3.1" +stories: + - story: capture session state path + steps: + - intent: greet + - action: utter_greet + - intent: give_name + - action: utter_greet_with_name diff --git a/domain.yml b/domain.yml new file mode 100644 index 000000000000..58292d963d6c --- /dev/null +++ b/domain.yml @@ -0,0 +1,46 @@ +version: "3.1" + +intents: + - greet + - goodbye + - affirm + - deny + - mood_great + - mood_unhappy + - bot_challenge + - give_name +slots: + user_name: # This is the "bucket" in the bot's memory + type: text + influence_conversation: true + mappings: + - type: from_text # AUTOMATION: This captures everything you type + intent: give_name # ...but only when you are introducing yourself + +responses: + utter_greet: + - text: "System online. Streaming conversation tracking inputs directly." + + # Add this so the bot can actually use the name it stored + utter_greet_with_name: + - text: "Nice to meet you, {user_name}!" + + utter_cheer_up: + - text: "Here is something to cheer you up:" + image: "https://i.imgur.com/nGF1K8f.jpg" + + utter_did_that_help: + - text: "Did that help you?" + + utter_happy: + - text: "Great, carry on!" + + utter_goodbye: + - text: "Session terminated. Clearing cache." + + utter_iamabot: + - text: "I am a bot, powered by Rasa." + +session_config: + session_expiration_time: 60 + carry_over_slots_to_new_session: true diff --git a/endpoints.yml b/endpoints.yml new file mode 100644 index 000000000000..24de8a84cb48 --- /dev/null +++ b/endpoints.yml @@ -0,0 +1,5 @@ +action_endpoint: + url: "http://localhost:5055/webhook" + +tracker_store: + type: cxx_tracker.CppTrackerStore \ No newline at end of file diff --git a/fast_tracker.cp310-win_amd64.pyd b/fast_tracker.cp310-win_amd64.pyd new file mode 100644 index 000000000000..7b54d64939f1 Binary files /dev/null and b/fast_tracker.cp310-win_amd64.pyd differ diff --git a/load_test.py b/load_test.py new file mode 100644 index 000000000000..0da01ad4d06d --- /dev/null +++ b/load_test.py @@ -0,0 +1,43 @@ +import asyncio +import aiohttp +import time + +URL = "http://localhost:5005/webhooks/rest/webhook" +TOTAL_REQUESTS = 1000 + +async def send_message(session, user_id): + payload = { + "sender": f"test_user_{user_id}", + "message": "hello" + } + + start_time = time.time() + try: + async with session.post(URL, json=payload) as response: + await response.json() + latency = time.time() - start_time + return latency + except Exception as e: + return None + +async def main(): + print(f" Launching {TOTAL_REQUESTS} simultaneous requests straight to the C++ Tracker Store...") + + async with aiohttp.ClientSession() as session: + start_time = time.time() + tasks = [send_message(session, i) for i in range(TOTAL_REQUESTS)] + latencies = await asyncio.gather(*tasks) + total_time = time.time() - start_time + + successful_latencies = [l for l in latencies if l is not None] + + print("\n--- PERFORMANCE BENCHMARK RESULTS ---") + print(f"Total Time for {TOTAL_REQUESTS} requests: {total_time:.2f} seconds") + print(f"Successful Responses: {len(successful_latencies)}/{TOTAL_REQUESTS}") + if successful_latencies: + print(f"Average Latency per request: {sum(successful_latencies)/len(successful_latencies):.4f} seconds") + print(f"Max Latency: {max(successful_latencies):.4f} seconds") + +if __name__ == "__main__": + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) + asyncio.run(main()) \ No newline at end of file diff --git a/data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/nlu.yml b/research_data/nlu.yml similarity index 100% rename from data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/nlu.yml rename to research_data/nlu.yml diff --git a/research_data/rules.yml b/research_data/rules.yml new file mode 100644 index 000000000000..a9987ee2a3fb --- /dev/null +++ b/research_data/rules.yml @@ -0,0 +1,13 @@ +version: "3.1" + +rules: + +- rule: Say goodbye anytime the user says goodbye + steps: + - intent: goodbye + - action: utter_goodbye + +- rule: Say 'I am a bot' anytime the user challenges + steps: + - intent: bot_challenge + - action: utter_iamabot diff --git a/data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/stories.yml b/research_data/stories.yml similarity index 100% rename from data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/stories.yml rename to research_data/stories.yml diff --git a/setup.py b/setup.py new file mode 100644 index 000000000000..ee62252cf116 --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +from setuptools import setup +from pybind11.setup_helpers import Pybind11Extension, build_ext + +ext_modules = [ + Pybind11Extension("fast_tracker", ["tracker.cpp"]), +] + +setup( + name="fast_tracker", + ext_modules=ext_modules, + cmdclass={"build_ext": build_ext}, +) diff --git a/data/test/config_embedding_test.yml b/test/config_embedding_test.yml similarity index 100% rename from data/test/config_embedding_test.yml rename to test/config_embedding_test.yml diff --git a/data/test/demo-rasa-composite-entities.yml b/test/demo-rasa-composite-entities.yml similarity index 100% rename from data/test/demo-rasa-composite-entities.yml rename to test/demo-rasa-composite-entities.yml diff --git a/data/test/demo-rasa-lookup-ents.yml b/test/demo-rasa-lookup-ents.yml similarity index 100% rename from data/test/demo-rasa-lookup-ents.yml rename to test/demo-rasa-lookup-ents.yml diff --git a/data/test/demo-rasa-more-ents-and-multiplied.yml b/test/demo-rasa-more-ents-and-multiplied.yml similarity index 100% rename from data/test/demo-rasa-more-ents-and-multiplied.yml rename to test/demo-rasa-more-ents-and-multiplied.yml diff --git a/data/test/demo-rasa-no-ents.yml b/test/demo-rasa-no-ents.yml similarity index 100% rename from data/test/demo-rasa-no-ents.yml rename to test/demo-rasa-no-ents.yml diff --git a/data/test/demo-rasa-noents.json b/test/demo-rasa-noents.json similarity index 100% rename from data/test/demo-rasa-noents.json rename to test/demo-rasa-noents.json diff --git a/data/test/demo-rasa-small.json b/test/demo-rasa-small.json similarity index 100% rename from data/test/demo-rasa-small.json rename to test/demo-rasa-small.json diff --git a/data/test/demo-rasa-zh.json b/test/demo-rasa-zh.json similarity index 100% rename from data/test/demo-rasa-zh.json rename to test/demo-rasa-zh.json diff --git a/data/test/dialogflow_en_converted_to_rasa.json b/test/dialogflow_en_converted_to_rasa.json similarity index 100% rename from data/test/dialogflow_en_converted_to_rasa.json rename to test/dialogflow_en_converted_to_rasa.json diff --git a/data/test/dialogflow_es_converted_to_rasa.json b/test/dialogflow_es_converted_to_rasa.json similarity index 100% rename from data/test/dialogflow_es_converted_to_rasa.json rename to test/dialogflow_es_converted_to_rasa.json diff --git a/data/test/duplicate_intents_yaml/demo-rasa-intents-1.yml b/test/duplicate_intents_yaml/demo-rasa-intents-1.yml similarity index 100% rename from data/test/duplicate_intents_yaml/demo-rasa-intents-1.yml rename to test/duplicate_intents_yaml/demo-rasa-intents-1.yml diff --git a/data/test/duplicate_intents_yaml/demo-rasa-intents-2.yml b/test/duplicate_intents_yaml/demo-rasa-intents-2.yml similarity index 100% rename from data/test/duplicate_intents_yaml/demo-rasa-intents-2.yml rename to test/duplicate_intents_yaml/demo-rasa-intents-2.yml diff --git a/data/test/duplicate_intents_yaml/demo-rasa-intents-3.yml b/test/duplicate_intents_yaml/demo-rasa-intents-3.yml similarity index 100% rename from data/test/duplicate_intents_yaml/demo-rasa-intents-3.yml rename to test/duplicate_intents_yaml/demo-rasa-intents-3.yml diff --git a/data/test/hf_transformers_models.txt b/test/hf_transformers_models.txt similarity index 100% rename from data/test/hf_transformers_models.txt rename to test/hf_transformers_models.txt diff --git a/data/test/incorrect_nlu_format.yml b/test/incorrect_nlu_format.yml similarity index 100% rename from data/test/incorrect_nlu_format.yml rename to test/incorrect_nlu_format.yml diff --git a/data/test/lookup_tables/lookup_table.json b/test/lookup_tables/lookup_table.json similarity index 100% rename from data/test/lookup_tables/lookup_table.json rename to test/lookup_tables/lookup_table.json diff --git a/data/test/lookup_tables/lookup_table.yml b/test/lookup_tables/lookup_table.yml similarity index 100% rename from data/test/lookup_tables/lookup_table.yml rename to test/lookup_tables/lookup_table.yml diff --git a/data/test/lookup_tables/plates.txt b/test/lookup_tables/plates.txt similarity index 100% rename from data/test/lookup_tables/plates.txt rename to test/lookup_tables/plates.txt diff --git a/data/test/luis_converted_to_rasa.json b/test/luis_converted_to_rasa.json similarity index 100% rename from data/test/luis_converted_to_rasa.json rename to test/luis_converted_to_rasa.json diff --git a/data/test/many_intents.yml b/test/many_intents.yml similarity index 100% rename from data/test/many_intents.yml rename to test/many_intents.yml diff --git a/data/test/md_converted_to_json.json b/test/md_converted_to_json.json similarity index 100% rename from data/test/md_converted_to_json.json rename to test/md_converted_to_json.json diff --git a/data/test/multiple_files_json/demo-rasa-affirm.json b/test/multiple_files_json/demo-rasa-affirm.json similarity index 100% rename from data/test/multiple_files_json/demo-rasa-affirm.json rename to test/multiple_files_json/demo-rasa-affirm.json diff --git a/data/test/multiple_files_json/demo-rasa-chitchat.json b/test/multiple_files_json/demo-rasa-chitchat.json similarity index 100% rename from data/test/multiple_files_json/demo-rasa-chitchat.json rename to test/multiple_files_json/demo-rasa-chitchat.json diff --git a/data/test/multiple_files_json/demo-rasa-goodbye.json b/test/multiple_files_json/demo-rasa-goodbye.json similarity index 100% rename from data/test/multiple_files_json/demo-rasa-goodbye.json rename to test/multiple_files_json/demo-rasa-goodbye.json diff --git a/data/test/multiple_files_json/demo-rasa-greet.json b/test/multiple_files_json/demo-rasa-greet.json similarity index 100% rename from data/test/multiple_files_json/demo-rasa-greet.json rename to test/multiple_files_json/demo-rasa-greet.json diff --git a/data/test/multiple_files_json/demo-rasa-restaurant_search.json b/test/multiple_files_json/demo-rasa-restaurant_search.json similarity index 100% rename from data/test/multiple_files_json/demo-rasa-restaurant_search.json rename to test/multiple_files_json/demo-rasa-restaurant_search.json diff --git a/data/test/overlapping_regex_entities.yml b/test/overlapping_regex_entities.yml similarity index 100% rename from data/test/overlapping_regex_entities.yml rename to test/overlapping_regex_entities.yml diff --git a/data/test/simple_retrieval_intent_nlu.yml b/test/simple_retrieval_intent_nlu.yml similarity index 100% rename from data/test/simple_retrieval_intent_nlu.yml rename to test/simple_retrieval_intent_nlu.yml diff --git a/data/test/stories_default_retrieval_intents.yml b/test/stories_default_retrieval_intents.yml similarity index 100% rename from data/test/stories_default_retrieval_intents.yml rename to test/stories_default_retrieval_intents.yml diff --git a/data/test/synonyms_only.yml b/test/synonyms_only.yml similarity index 100% rename from data/test/synonyms_only.yml rename to test/synonyms_only.yml diff --git a/data/test/test_integration/data/nlu.yml b/test/test_integration/data/nlu.yml similarity index 100% rename from data/test/test_integration/data/nlu.yml rename to test/test_integration/data/nlu.yml diff --git a/data/test/test_integration/data/rules.yml b/test/test_integration/data/rules.yml similarity index 100% rename from data/test/test_integration/data/rules.yml rename to test/test_integration/data/rules.yml diff --git a/data/test/test_integration/data/stories.yml b/test/test_integration/data/stories.yml similarity index 100% rename from data/test/test_integration/data/stories.yml rename to test/test_integration/data/stories.yml diff --git a/data/test/test_integration/domain.yml b/test/test_integration/domain.yml similarity index 100% rename from data/test/test_integration/domain.yml rename to test/test_integration/domain.yml diff --git a/data/test/test_integration_err/data/nlu.yml b/test/test_integration_err/data/nlu.yml similarity index 100% rename from data/test/test_integration_err/data/nlu.yml rename to test/test_integration_err/data/nlu.yml diff --git a/data/test/test_integration_err/data/rules.yml b/test/test_integration_err/data/rules.yml similarity index 100% rename from data/test/test_integration_err/data/rules.yml rename to test/test_integration_err/data/rules.yml diff --git a/data/test/test_integration_err/data/stories.yml b/test/test_integration_err/data/stories.yml similarity index 100% rename from data/test/test_integration_err/data/stories.yml rename to test/test_integration_err/data/stories.yml diff --git a/data/test/test_integration_err/domain.yml b/test/test_integration_err/domain.yml similarity index 100% rename from data/test/test_integration_err/domain.yml rename to test/test_integration_err/domain.yml diff --git a/data/test/training_data_containing_special_chars.json b/test/training_data_containing_special_chars.json similarity index 100% rename from data/test/training_data_containing_special_chars.json rename to test/training_data_containing_special_chars.json diff --git a/data/test/wit_converted_to_rasa.json b/test/wit_converted_to_rasa.json similarity index 100% rename from data/test/wit_converted_to_rasa.json rename to test/wit_converted_to_rasa.json diff --git a/data/test_action_extract_slots_11333/config.yml b/test_action_extract_slots_11333/config.yml similarity index 100% rename from data/test_action_extract_slots_11333/config.yml rename to test_action_extract_slots_11333/config.yml diff --git a/data/test_action_extract_slots_11333/data/nlu.yml b/test_action_extract_slots_11333/data/nlu.yml similarity index 100% rename from data/test_action_extract_slots_11333/data/nlu.yml rename to test_action_extract_slots_11333/data/nlu.yml diff --git a/data/test_action_extract_slots_11333/data/stories.yml b/test_action_extract_slots_11333/data/stories.yml similarity index 100% rename from data/test_action_extract_slots_11333/data/stories.yml rename to test_action_extract_slots_11333/data/stories.yml diff --git a/data/test_action_extract_slots_11333/domain.yml b/test_action_extract_slots_11333/domain.yml similarity index 100% rename from data/test_action_extract_slots_11333/domain.yml rename to test_action_extract_slots_11333/domain.yml diff --git a/data/test_action_extract_slots_11333/tests/test_stories.yml b/test_action_extract_slots_11333/tests/test_stories.yml similarity index 100% rename from data/test_action_extract_slots_11333/tests/test_stories.yml rename to test_action_extract_slots_11333/tests/test_stories.yml diff --git a/data/test_classes/custom_graph_components/nlu_dense.py b/test_classes/custom_graph_components/nlu_dense.py similarity index 100% rename from data/test_classes/custom_graph_components/nlu_dense.py rename to test_classes/custom_graph_components/nlu_dense.py diff --git a/data/test_classes/custom_graph_components/nlu_meta_fallback.py b/test_classes/custom_graph_components/nlu_meta_fallback.py similarity index 100% rename from data/test_classes/custom_graph_components/nlu_meta_fallback.py rename to test_classes/custom_graph_components/nlu_meta_fallback.py diff --git a/data/test_classes/custom_graph_components/nlu_meta_intent_featurizer.py b/test_classes/custom_graph_components/nlu_meta_intent_featurizer.py similarity index 100% rename from data/test_classes/custom_graph_components/nlu_meta_intent_featurizer.py rename to test_classes/custom_graph_components/nlu_meta_intent_featurizer.py diff --git a/data/test_classes/custom_graph_components/nlu_sparse.py b/test_classes/custom_graph_components/nlu_sparse.py similarity index 100% rename from data/test_classes/custom_graph_components/nlu_sparse.py rename to test_classes/custom_graph_components/nlu_sparse.py diff --git a/data/test_classes/custom_slots.py b/test_classes/custom_slots.py similarity index 100% rename from data/test_classes/custom_slots.py rename to test_classes/custom_slots.py diff --git a/data/test_classes/graph_component_interface.py b/test_classes/graph_component_interface.py similarity index 100% rename from data/test_classes/graph_component_interface.py rename to test_classes/graph_component_interface.py diff --git a/data/test_classes/nlu_component_skeleton.py b/test_classes/nlu_component_skeleton.py similarity index 100% rename from data/test_classes/nlu_component_skeleton.py rename to test_classes/nlu_component_skeleton.py diff --git a/data/test_classes/registered_component.py b/test_classes/registered_component.py similarity index 100% rename from data/test_classes/registered_component.py rename to test_classes/registered_component.py diff --git a/data/test_config/config_crf_custom_features.yml b/test_config/config_crf_custom_features.yml similarity index 100% rename from data/test_config/config_crf_custom_features.yml rename to test_config/config_crf_custom_features.yml diff --git a/data/test_config/config_crf_no_pattern_feature.yml b/test_config/config_crf_no_pattern_feature.yml similarity index 100% rename from data/test_config/config_crf_no_pattern_feature.yml rename to test_config/config_crf_no_pattern_feature.yml diff --git a/data/test_config/config_crf_no_regex.yml b/test_config/config_crf_no_regex.yml similarity index 100% rename from data/test_config/config_crf_no_regex.yml rename to test_config/config_crf_no_regex.yml diff --git a/data/test_config/config_crf_no_synonyms.yml b/test_config/config_crf_no_synonyms.yml similarity index 100% rename from data/test_config/config_crf_no_synonyms.yml rename to test_config/config_crf_no_synonyms.yml diff --git a/data/test_config/config_default_assistant_id_value.yml b/test_config/config_default_assistant_id_value.yml similarity index 100% rename from data/test_config/config_default_assistant_id_value.yml rename to test_config/config_default_assistant_id_value.yml diff --git a/data/test_config/config_defaults.yml b/test_config/config_defaults.yml similarity index 100% rename from data/test_config/config_defaults.yml rename to test_config/config_defaults.yml diff --git a/data/test_config/config_embedding_intent_response_selector.yml b/test_config/config_embedding_intent_response_selector.yml similarity index 100% rename from data/test_config/config_embedding_intent_response_selector.yml rename to test_config/config_embedding_intent_response_selector.yml diff --git a/data/test_config/config_empty_en.yml b/test_config/config_empty_en.yml similarity index 100% rename from data/test_config/config_empty_en.yml rename to test_config/config_empty_en.yml diff --git a/data/test_config/config_empty_en_after_dumping.yml b/test_config/config_empty_en_after_dumping.yml similarity index 100% rename from data/test_config/config_empty_en_after_dumping.yml rename to test_config/config_empty_en_after_dumping.yml diff --git a/data/test_config/config_empty_en_after_dumping_core.yml b/test_config/config_empty_en_after_dumping_core.yml similarity index 100% rename from data/test_config/config_empty_en_after_dumping_core.yml rename to test_config/config_empty_en_after_dumping_core.yml diff --git a/data/test_config/config_empty_en_after_dumping_nlu.yml b/test_config/config_empty_en_after_dumping_nlu.yml similarity index 100% rename from data/test_config/config_empty_en_after_dumping_nlu.yml rename to test_config/config_empty_en_after_dumping_nlu.yml diff --git a/data/test_config/config_empty_fr.yml b/test_config/config_empty_fr.yml similarity index 100% rename from data/test_config/config_empty_fr.yml rename to test_config/config_empty_fr.yml diff --git a/data/test_config/config_empty_fr_after_dumping.yml b/test_config/config_empty_fr_after_dumping.yml similarity index 100% rename from data/test_config/config_empty_fr_after_dumping.yml rename to test_config/config_empty_fr_after_dumping.yml diff --git a/data/test_config/config_language_only.yml b/test_config/config_language_only.yml similarity index 100% rename from data/test_config/config_language_only.yml rename to test_config/config_language_only.yml diff --git a/data/test_config/config_no_assistant_id.yml b/test_config/config_no_assistant_id.yml similarity index 100% rename from data/test_config/config_no_assistant_id.yml rename to test_config/config_no_assistant_id.yml diff --git a/data/test_config/config_no_assistant_id_with_comments.yml b/test_config/config_no_assistant_id_with_comments.yml similarity index 100% rename from data/test_config/config_no_assistant_id_with_comments.yml rename to test_config/config_no_assistant_id_with_comments.yml diff --git a/data/test_config/config_pipeline_empty.yml b/test_config/config_pipeline_empty.yml similarity index 100% rename from data/test_config/config_pipeline_empty.yml rename to test_config/config_pipeline_empty.yml diff --git a/data/test_config/config_pipeline_missing.yml b/test_config/config_pipeline_missing.yml similarity index 100% rename from data/test_config/config_pipeline_missing.yml rename to test_config/config_pipeline_missing.yml diff --git a/data/test_config/config_policies_empty.yml b/test_config/config_policies_empty.yml similarity index 100% rename from data/test_config/config_policies_empty.yml rename to test_config/config_policies_empty.yml diff --git a/data/test_config/config_policies_missing.yml b/test_config/config_policies_missing.yml similarity index 100% rename from data/test_config/config_policies_missing.yml rename to test_config/config_policies_missing.yml diff --git a/data/test_config/config_pretrained_embeddings_convert.yml b/test_config/config_pretrained_embeddings_convert.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_convert.yml rename to test_config/config_pretrained_embeddings_convert.yml diff --git a/data/test_config/config_pretrained_embeddings_mitie.yml b/test_config/config_pretrained_embeddings_mitie.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_mitie.yml rename to test_config/config_pretrained_embeddings_mitie.yml diff --git a/data/test_config/config_pretrained_embeddings_mitie_2.yml b/test_config/config_pretrained_embeddings_mitie_2.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_mitie_2.yml rename to test_config/config_pretrained_embeddings_mitie_2.yml diff --git a/data/test_config/config_pretrained_embeddings_mitie_diet.yml b/test_config/config_pretrained_embeddings_mitie_diet.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_mitie_diet.yml rename to test_config/config_pretrained_embeddings_mitie_diet.yml diff --git a/data/test_config/config_pretrained_embeddings_mitie_zh.yml b/test_config/config_pretrained_embeddings_mitie_zh.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_mitie_zh.yml rename to test_config/config_pretrained_embeddings_mitie_zh.yml diff --git a/data/test_config/config_pretrained_embeddings_spacy.yml b/test_config/config_pretrained_embeddings_spacy.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_spacy.yml rename to test_config/config_pretrained_embeddings_spacy.yml diff --git a/data/test_config/config_pretrained_embeddings_spacy_de.yml b/test_config/config_pretrained_embeddings_spacy_de.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_spacy_de.yml rename to test_config/config_pretrained_embeddings_spacy_de.yml diff --git a/data/test_config/config_pretrained_embeddings_spacy_duckling.yml b/test_config/config_pretrained_embeddings_spacy_duckling.yml similarity index 100% rename from data/test_config/config_pretrained_embeddings_spacy_duckling.yml rename to test_config/config_pretrained_embeddings_spacy_duckling.yml diff --git a/data/test_config/config_response_selector_minimal.yml b/test_config/config_response_selector_minimal.yml similarity index 100% rename from data/test_config/config_response_selector_minimal.yml rename to test_config/config_response_selector_minimal.yml diff --git a/data/test_config/config_spacy_entity_extractor.yml b/test_config/config_spacy_entity_extractor.yml similarity index 100% rename from data/test_config/config_spacy_entity_extractor.yml rename to test_config/config_spacy_entity_extractor.yml diff --git a/data/test_config/config_supervised_embeddings.yml b/test_config/config_supervised_embeddings.yml similarity index 100% rename from data/test_config/config_supervised_embeddings.yml rename to test_config/config_supervised_embeddings.yml diff --git a/data/test_config/config_supervised_embeddings_duckling.yml b/test_config/config_supervised_embeddings_duckling.yml similarity index 100% rename from data/test_config/config_supervised_embeddings_duckling.yml rename to test_config/config_supervised_embeddings_duckling.yml diff --git a/data/test_config/config_ted_policy_model_checkpointing.yml b/test_config/config_ted_policy_model_checkpointing.yml similarity index 100% rename from data/test_config/config_ted_policy_model_checkpointing.yml rename to test_config/config_ted_policy_model_checkpointing.yml diff --git a/data/test_config/config_ted_policy_model_checkpointing_zero_eval_num_examples.yml b/test_config/config_ted_policy_model_checkpointing_zero_eval_num_examples.yml similarity index 100% rename from data/test_config/config_ted_policy_model_checkpointing_zero_eval_num_examples.yml rename to test_config/config_ted_policy_model_checkpointing_zero_eval_num_examples.yml diff --git a/data/test_config/config_ted_policy_model_checkpointing_zero_every_num_epochs.yml b/test_config/config_ted_policy_model_checkpointing_zero_every_num_epochs.yml similarity index 100% rename from data/test_config/config_ted_policy_model_checkpointing_zero_every_num_epochs.yml rename to test_config/config_ted_policy_model_checkpointing_zero_every_num_epochs.yml diff --git a/data/test_config/config_ted_policy_no_model_checkpointing.yml b/test_config/config_ted_policy_no_model_checkpointing.yml similarity index 100% rename from data/test_config/config_ted_policy_no_model_checkpointing.yml rename to test_config/config_ted_policy_no_model_checkpointing.yml diff --git a/data/test_config/config_train_server_json.yml b/test_config/config_train_server_json.yml similarity index 100% rename from data/test_config/config_train_server_json.yml rename to test_config/config_train_server_json.yml diff --git a/data/test_config/config_train_server_md.yml b/test_config/config_train_server_md.yml similarity index 100% rename from data/test_config/config_train_server_md.yml rename to test_config/config_train_server_md.yml diff --git a/data/test_config/config_unique_assistant_id.yml b/test_config/config_unique_assistant_id.yml similarity index 100% rename from data/test_config/config_unique_assistant_id.yml rename to test_config/config_unique_assistant_id.yml diff --git a/data/test_config/config_with_comment_between_suggestions.yml b/test_config/config_with_comment_between_suggestions.yml similarity index 100% rename from data/test_config/config_with_comment_between_suggestions.yml rename to test_config/config_with_comment_between_suggestions.yml diff --git a/data/test_config/config_with_comments.yml b/test_config/config_with_comments.yml similarity index 100% rename from data/test_config/config_with_comments.yml rename to test_config/config_with_comments.yml diff --git a/data/test_config/config_with_comments_after_dumping.yml b/test_config/config_with_comments_after_dumping.yml similarity index 100% rename from data/test_config/config_with_comments_after_dumping.yml rename to test_config/config_with_comments_after_dumping.yml diff --git a/data/test_config/embedding_random_seed.yaml b/test_config/embedding_random_seed.yaml similarity index 100% rename from data/test_config/embedding_random_seed.yaml rename to test_config/embedding_random_seed.yaml diff --git a/data/test_config/example_config.yaml b/test_config/example_config.yaml similarity index 100% rename from data/test_config/example_config.yaml rename to test_config/example_config.yaml diff --git a/data/test_config/graph_config.yml b/test_config/graph_config.yml similarity index 100% rename from data/test_config/graph_config.yml rename to test_config/graph_config.yml diff --git a/data/test_config/graph_config_short.yml b/test_config/graph_config_short.yml similarity index 100% rename from data/test_config/graph_config_short.yml rename to test_config/graph_config_short.yml diff --git a/data/test_config/keyword_classifier_config.yml b/test_config/keyword_classifier_config.yml similarity index 100% rename from data/test_config/keyword_classifier_config.yml rename to test_config/keyword_classifier_config.yml diff --git a/data/test_config/max_hist_config.yml b/test_config/max_hist_config.yml similarity index 100% rename from data/test_config/max_hist_config.yml rename to test_config/max_hist_config.yml diff --git a/data/test_config/no_max_hist_config.yml b/test_config/no_max_hist_config.yml similarity index 100% rename from data/test_config/no_max_hist_config.yml rename to test_config/no_max_hist_config.yml diff --git a/data/test_config/stack_config.yml b/test_config/stack_config.yml similarity index 100% rename from data/test_config/stack_config.yml rename to test_config/stack_config.yml diff --git a/data/test_config/test_moodbot_config_no_assistant_id.yml b/test_config/test_moodbot_config_no_assistant_id.yml similarity index 100% rename from data/test_config/test_moodbot_config_no_assistant_id.yml rename to test_config/test_moodbot_config_no_assistant_id.yml diff --git a/data/test_custom_action_triggers_action_extract_slots/config.yml b/test_custom_action_triggers_action_extract_slots/config.yml similarity index 100% rename from data/test_custom_action_triggers_action_extract_slots/config.yml rename to test_custom_action_triggers_action_extract_slots/config.yml diff --git a/data/test_custom_action_triggers_action_extract_slots/domain.yml b/test_custom_action_triggers_action_extract_slots/domain.yml similarity index 100% rename from data/test_custom_action_triggers_action_extract_slots/domain.yml rename to test_custom_action_triggers_action_extract_slots/domain.yml diff --git a/data/test_custom_action_triggers_action_extract_slots/nlu.yml b/test_custom_action_triggers_action_extract_slots/nlu.yml similarity index 100% rename from data/test_custom_action_triggers_action_extract_slots/nlu.yml rename to test_custom_action_triggers_action_extract_slots/nlu.yml diff --git a/data/test_custom_action_triggers_action_extract_slots/stories.yml b/test_custom_action_triggers_action_extract_slots/stories.yml similarity index 100% rename from data/test_custom_action_triggers_action_extract_slots/stories.yml rename to test_custom_action_triggers_action_extract_slots/stories.yml diff --git a/data/test_e2ebot/config.yml b/test_e2ebot/config.yml similarity index 100% rename from data/test_e2ebot/config.yml rename to test_e2ebot/config.yml diff --git a/data/test_e2ebot/data/nlu.yml b/test_e2ebot/data/nlu.yml similarity index 100% rename from data/test_e2ebot/data/nlu.yml rename to test_e2ebot/data/nlu.yml diff --git a/data/test_e2ebot/data/stories.yml b/test_e2ebot/data/stories.yml similarity index 100% rename from data/test_e2ebot/data/stories.yml rename to test_e2ebot/data/stories.yml diff --git a/data/test_e2ebot/domain.yml b/test_e2ebot/domain.yml similarity index 100% rename from data/test_e2ebot/domain.yml rename to test_e2ebot/domain.yml diff --git a/data/test_e2ebot/tests/test_stories.yml b/test_e2ebot/tests/test_stories.yml similarity index 100% rename from data/test_e2ebot/tests/test_stories.yml rename to test_e2ebot/tests/test_stories.yml diff --git a/data/test_e2ebot/tests/test_stories_with_unknown_bot_utterances.yml b/test_e2ebot/tests/test_stories_with_unknown_bot_utterances.yml similarity index 100% rename from data/test_e2ebot/tests/test_stories_with_unknown_bot_utterances.yml rename to test_e2ebot/tests/test_stories_with_unknown_bot_utterances.yml diff --git a/data/test_response_selector_bot/__init__.py b/test_endpoints/__init__.py similarity index 100% rename from data/test_response_selector_bot/__init__.py rename to test_endpoints/__init__.py diff --git a/data/test_endpoints/cert.pem b/test_endpoints/cert.pem similarity index 100% rename from data/test_endpoints/cert.pem rename to test_endpoints/cert.pem diff --git a/data/test_endpoints/custom_tracker_endpoints.yml b/test_endpoints/custom_tracker_endpoints.yml similarity index 100% rename from data/test_endpoints/custom_tracker_endpoints.yml rename to test_endpoints/custom_tracker_endpoints.yml diff --git a/data/test_endpoints/endpoints_redis.yml b/test_endpoints/endpoints_redis.yml similarity index 100% rename from data/test_endpoints/endpoints_redis.yml rename to test_endpoints/endpoints_redis.yml diff --git a/data/test_endpoints/endpoints_sql.yml b/test_endpoints/endpoints_sql.yml similarity index 100% rename from data/test_endpoints/endpoints_sql.yml rename to test_endpoints/endpoints_sql.yml diff --git a/data/test_endpoints/event_brokers/kafka_invalid_sasl_mechanism.yml b/test_endpoints/event_brokers/kafka_invalid_sasl_mechanism.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_invalid_sasl_mechanism.yml rename to test_endpoints/event_brokers/kafka_invalid_sasl_mechanism.yml diff --git a/data/test_endpoints/event_brokers/kafka_invalid_security_protocol.yml b/test_endpoints/event_brokers/kafka_invalid_security_protocol.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_invalid_security_protocol.yml rename to test_endpoints/event_brokers/kafka_invalid_security_protocol.yml diff --git a/data/test_endpoints/event_brokers/kafka_plaintext_endpoint.yml b/test_endpoints/event_brokers/kafka_plaintext_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_plaintext_endpoint.yml rename to test_endpoints/event_brokers/kafka_plaintext_endpoint.yml diff --git a/data/test_endpoints/event_brokers/kafka_plaintext_endpoint_no_url.yml b/test_endpoints/event_brokers/kafka_plaintext_endpoint_no_url.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_plaintext_endpoint_no_url.yml rename to test_endpoints/event_brokers/kafka_plaintext_endpoint_no_url.yml diff --git a/data/test_endpoints/event_brokers/kafka_sasl_plaintext_endpoint.yml b/test_endpoints/event_brokers/kafka_sasl_plaintext_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_sasl_plaintext_endpoint.yml rename to test_endpoints/event_brokers/kafka_sasl_plaintext_endpoint.yml diff --git a/data/test_endpoints/event_brokers/kafka_sasl_ssl_endpoint.yml b/test_endpoints/event_brokers/kafka_sasl_ssl_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_sasl_ssl_endpoint.yml rename to test_endpoints/event_brokers/kafka_sasl_ssl_endpoint.yml diff --git a/data/test_endpoints/event_brokers/kafka_ssl_endpoint.yml b/test_endpoints/event_brokers/kafka_ssl_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/kafka_ssl_endpoint.yml rename to test_endpoints/event_brokers/kafka_ssl_endpoint.yml diff --git a/data/test_endpoints/event_brokers/pika_endpoint.yml b/test_endpoints/event_brokers/pika_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/pika_endpoint.yml rename to test_endpoints/event_brokers/pika_endpoint.yml diff --git a/data/test_endpoints/event_brokers/sql_endpoint.yml b/test_endpoints/event_brokers/sql_endpoint.yml similarity index 100% rename from data/test_endpoints/event_brokers/sql_endpoint.yml rename to test_endpoints/event_brokers/sql_endpoint.yml diff --git a/data/test_endpoints/example_endpoints.yml b/test_endpoints/example_endpoints.yml similarity index 100% rename from data/test_endpoints/example_endpoints.yml rename to test_endpoints/example_endpoints.yml diff --git a/data/test_endpoints/model_endpoint.yml b/test_endpoints/model_endpoint.yml similarity index 100% rename from data/test_endpoints/model_endpoint.yml rename to test_endpoints/model_endpoint.yml diff --git a/data/test_evaluations/test_end_to_end_story.yml b/test_evaluations/test_end_to_end_story.yml similarity index 100% rename from data/test_evaluations/test_end_to_end_story.yml rename to test_evaluations/test_end_to_end_story.yml diff --git a/data/test_evaluations/test_end_to_end_trips_circuit_breaker.yml b/test_evaluations/test_end_to_end_trips_circuit_breaker.yml similarity index 100% rename from data/test_evaluations/test_end_to_end_trips_circuit_breaker.yml rename to test_evaluations/test_end_to_end_trips_circuit_breaker.yml diff --git a/data/test_evaluations/test_form_end_to_end_stories.yml b/test_evaluations/test_form_end_to_end_stories.yml similarity index 100% rename from data/test_evaluations/test_form_end_to_end_stories.yml rename to test_evaluations/test_form_end_to_end_stories.yml diff --git a/data/test_evaluations/test_stories_trip_circuit_breaker.yml b/test_evaluations/test_stories_trip_circuit_breaker.yml similarity index 100% rename from data/test_evaluations/test_stories_trip_circuit_breaker.yml rename to test_evaluations/test_stories_trip_circuit_breaker.yml diff --git a/data/test_evaluations/test_story_unknown_entity.yml b/test_evaluations/test_story_unknown_entity.yml similarity index 100% rename from data/test_evaluations/test_story_unknown_entity.yml rename to test_evaluations/test_story_unknown_entity.yml diff --git a/data/test_domains/conditional_response_variations.yml b/test_files_backup/conditional_response_variations.yml similarity index 100% rename from data/test_domains/conditional_response_variations.yml rename to test_files_backup/conditional_response_variations.yml diff --git a/data/test_domains/custom_slot_domain.yml b/test_files_backup/custom_slot_domain.yml similarity index 100% rename from data/test_domains/custom_slot_domain.yml rename to test_files_backup/custom_slot_domain.yml diff --git a/data/test_domains/default.yml b/test_files_backup/default.yml similarity index 100% rename from data/test_domains/default.yml rename to test_files_backup/default.yml diff --git a/data/test_domains/default_retrieval_intents.yml b/test_files_backup/default_retrieval_intents.yml similarity index 100% rename from data/test_domains/default_retrieval_intents.yml rename to test_files_backup/default_retrieval_intents.yml diff --git a/data/test_domains/default_unfeaturized_entities.yml b/test_files_backup/default_unfeaturized_entities.yml similarity index 100% rename from data/test_domains/default_unfeaturized_entities.yml rename to test_files_backup/default_unfeaturized_entities.yml diff --git a/data/test_domains/default_with_mapping.yml b/test_files_backup/default_with_mapping.yml similarity index 100% rename from data/test_domains/default_with_mapping.yml rename to test_files_backup/default_with_mapping.yml diff --git a/data/test_domains/default_with_slots.yml b/test_files_backup/default_with_slots.yml similarity index 100% rename from data/test_domains/default_with_slots.yml rename to test_files_backup/default_with_slots.yml diff --git a/data/test_domains/domain_with_categorical_slot.yml b/test_files_backup/domain_with_categorical_slot.yml similarity index 100% rename from data/test_domains/domain_with_categorical_slot.yml rename to test_files_backup/domain_with_categorical_slot.yml diff --git a/data/test_domains/duplicate_actions.yml b/test_files_backup/duplicate_actions.yml similarity index 100% rename from data/test_domains/duplicate_actions.yml rename to test_files_backup/duplicate_actions.yml diff --git a/data/test_domains/duplicate_entities.yml b/test_files_backup/duplicate_entities.yml similarity index 100% rename from data/test_domains/duplicate_entities.yml rename to test_files_backup/duplicate_entities.yml diff --git a/data/test_domains/duplicate_intents.yml b/test_files_backup/duplicate_intents.yml similarity index 100% rename from data/test_domains/duplicate_intents.yml rename to test_files_backup/duplicate_intents.yml diff --git a/data/test_domains/duplicate_responses.yml b/test_files_backup/duplicate_responses.yml similarity index 86% rename from data/test_domains/duplicate_responses.yml rename to test_files_backup/duplicate_responses.yml index 3d0fbe10cb5b..31e9d4dc6f6e 100644 --- a/data/test_domains/duplicate_responses.yml +++ b/test_files_backup/duplicate_responses.yml @@ -19,5 +19,4 @@ responses: - text: goodbye :( utter_default: - text: default message - utter_greet: - - text: hey there! + diff --git a/data/test_domains/empty_response_format.yml b/test_files_backup/empty_response_format.yml similarity index 94% rename from data/test_domains/empty_response_format.yml rename to test_files_backup/empty_response_format.yml index f843a2318d66..7a3d3bcf9d4e 100644 --- a/data/test_domains/empty_response_format.yml +++ b/test_files_backup/empty_response_format.yml @@ -13,7 +13,7 @@ entities: - name responses: - utter_greet: + utter_goodbye: - text: goodbye :( utter_default: diff --git a/data/test_domains/form.yml b/test_files_backup/form.yml similarity index 100% rename from data/test_domains/form.yml rename to test_files_backup/form.yml diff --git a/data/test_domains/initial_slot_values_greet_and_goodbye.yml b/test_files_backup/initial_slot_values_greet_and_goodbye.yml similarity index 100% rename from data/test_domains/initial_slot_values_greet_and_goodbye.yml rename to test_files_backup/initial_slot_values_greet_and_goodbye.yml diff --git a/data/test_domains/invalid_format.yml b/test_files_backup/invalid_format.yml similarity index 100% rename from data/test_domains/invalid_format.yml rename to test_files_backup/invalid_format.yml diff --git a/data/test_domains/minimal_domain_validate_files_with_active_loop_null.yml b/test_files_backup/minimal_domain_validate_files_with_active_loop_null.yml similarity index 100% rename from data/test_domains/minimal_domain_validate_files_with_active_loop_null.yml rename to test_files_backup/minimal_domain_validate_files_with_active_loop_null.yml diff --git a/data/test_domains/missing_chitchat_response.yml b/test_files_backup/missing_chitchat_response.yml similarity index 100% rename from data/test_domains/missing_chitchat_response.yml rename to test_files_backup/missing_chitchat_response.yml diff --git a/data/test_domains/missing_text_for_templates.yml b/test_files_backup/missing_text_for_templates.yml similarity index 100% rename from data/test_domains/missing_text_for_templates.yml rename to test_files_backup/missing_text_for_templates.yml diff --git a/data/test_domains/mixed_retrieval_intents.yml b/test_files_backup/mixed_retrieval_intents.yml similarity index 100% rename from data/test_domains/mixed_retrieval_intents.yml rename to test_files_backup/mixed_retrieval_intents.yml diff --git a/data/test_domains/people_form.yml b/test_files_backup/people_form.yml similarity index 100% rename from data/test_domains/people_form.yml rename to test_files_backup/people_form.yml diff --git a/data/test_domains/query_form.yml b/test_files_backup/query_form.yml similarity index 100% rename from data/test_domains/query_form.yml rename to test_files_backup/query_form.yml diff --git a/data/test_domains/response_selector_responses_in_domain.yml b/test_files_backup/response_selector_responses_in_domain.yml similarity index 100% rename from data/test_domains/response_selector_responses_in_domain.yml rename to test_files_backup/response_selector_responses_in_domain.yml diff --git a/data/test_domains/restaurant_form.yml b/test_files_backup/restaurant_form.yml similarity index 100% rename from data/test_domains/restaurant_form.yml rename to test_files_backup/restaurant_form.yml diff --git a/data/test_domains/selectors.yml b/test_files_backup/selectors.yml similarity index 100% rename from data/test_domains/selectors.yml rename to test_files_backup/selectors.yml diff --git a/data/test_domains/simple_retrieval_intent.yml b/test_files_backup/simple_retrieval_intent.yml similarity index 100% rename from data/test_domains/simple_retrieval_intent.yml rename to test_files_backup/simple_retrieval_intent.yml diff --git a/data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/config.yml b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/config.yml similarity index 100% rename from data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/config.yml rename to test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/config.yml diff --git a/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/nlu.yml b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/nlu.yml new file mode 100644 index 000000000000..2f6c3f8c7d3e --- /dev/null +++ b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/nlu.yml @@ -0,0 +1,91 @@ +version: "3.1" + +nlu: +- intent: greet + examples: | + - hey + - hello + - hi + - hello there + - good morning + - good evening + - moin + - hey there + - let's go + - hey dude + - goodmorning + - goodevening + - good afternoon + +- intent: goodbye + examples: | + - cu + - good by + - cee you later + - good night + - bye + - goodbye + - have a nice day + - see you around + - bye bye + - see you later + +- intent: affirm + examples: | + - yes + - y + - indeed + - of course + - that sounds good + - correct + +- intent: deny + examples: | + - no + - n + - never + - I don't think so + - don't like that + - no way + - not really + +- intent: mood_great + examples: | + - perfect + - great + - amazing + - feeling like a king + - wonderful + - I am feeling very good + - I am great + - I am amazing + - I am going to save the world + - super stoked + - extremely good + - so so perfect + - so good + - so perfect + +- intent: mood_unhappy + examples: | + - my day was horrible + - I am sad + - I don't feel very well + - I am disappointed + - super sad + - I'm so sad + - sad + - very sad + - unhappy + - not good + - not very good + - extremly sad + - so saad + - so sad + +- intent: bot_challenge + examples: | + - are you a bot? + - are you a human? + - am I talking to a bot? + - am I talking to a human? diff --git a/data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/responses.yml b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/responses.yml similarity index 100% rename from data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/data/responses.yml rename to test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/responses.yml diff --git a/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/stories.yml b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/stories.yml new file mode 100644 index 000000000000..6ff78ee20864 --- /dev/null +++ b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/data/stories.yml @@ -0,0 +1,30 @@ +version: "3.1" + +stories: + +- story: happy path + steps: + - intent: greet + - action: utter_greet + - intent: mood_great + - action: utter_happy + +- story: sad path 1 + steps: + - intent: greet + - action: utter_greet + - intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - intent: affirm + - action: utter_happy + +- story: sad path 2 + steps: + - intent: greet + - action: utter_greet + - intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - intent: deny + - action: utter_goodbye diff --git a/data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/domain.yml b/test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/domain.yml similarity index 100% rename from data/test_domains/test_domain_files_with_no_session_config_and_custom_session_config/domain.yml rename to test_files_backup/test_domain_files_with_no_session_config_and_custom_session_config/domain.yml diff --git a/data/test_domains/test_domain_from_directory/domain_invalid.yml b/test_files_backup/test_domain_from_directory/domain_invalid.yml similarity index 100% rename from data/test_domains/test_domain_from_directory/domain_invalid.yml rename to test_files_backup/test_domain_from_directory/domain_invalid.yml diff --git a/data/test_domains/test_domain_from_directory/domain_valid.yml b/test_files_backup/test_domain_from_directory/domain_valid.yml similarity index 100% rename from data/test_domains/test_domain_from_directory/domain_valid.yml rename to test_files_backup/test_domain_from_directory/domain_valid.yml diff --git a/data/test_domains/test_domain_from_directory_for_entities/game_1.yml b/test_files_backup/test_domain_from_directory_for_entities/game_1.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_for_entities/game_1.yml rename to test_files_backup/test_domain_from_directory_for_entities/game_1.yml diff --git a/data/test_domains/test_domain_from_directory_for_entities/game_2.yml b/test_files_backup/test_domain_from_directory_for_entities/game_2.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_for_entities/game_2.yml rename to test_files_backup/test_domain_from_directory_for_entities/game_2.yml diff --git a/data/test_domains/test_domain_from_directory_for_entities/game_3.yml b/test_files_backup/test_domain_from_directory_for_entities/game_3.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_for_entities/game_3.yml rename to test_files_backup/test_domain_from_directory_for_entities/game_3.yml diff --git a/data/test_domains/test_domain_from_directory_tree/domain_pt1.yml b/test_files_backup/test_domain_from_directory_tree/domain_pt1.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_tree/domain_pt1.yml rename to test_files_backup/test_domain_from_directory_tree/domain_pt1.yml diff --git a/data/test_domains/test_domain_from_directory_tree/skill_1_domain/domain_pt2.yml b/test_files_backup/test_domain_from_directory_tree/skill_1_domain/domain_pt2.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_tree/skill_1_domain/domain_pt2.yml rename to test_files_backup/test_domain_from_directory_tree/skill_1_domain/domain_pt2.yml diff --git a/data/test_domains/test_domain_from_directory_tree/skill_2_domain/domain_pt3.yml b/test_files_backup/test_domain_from_directory_tree/skill_2_domain/domain_pt3.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_tree/skill_2_domain/domain_pt3.yml rename to test_files_backup/test_domain_from_directory_tree/skill_2_domain/domain_pt3.yml diff --git a/data/test_domains/test_domain_from_directory_tree/skill_2_domain/skill_2_subdirectory/domain_pt4.yml b/test_files_backup/test_domain_from_directory_tree/skill_2_domain/skill_2_subdirectory/domain_pt4.yml similarity index 100% rename from data/test_domains/test_domain_from_directory_tree/skill_2_domain/skill_2_subdirectory/domain_pt4.yml rename to test_files_backup/test_domain_from_directory_tree/skill_2_domain/skill_2_subdirectory/domain_pt4.yml diff --git a/data/test_domains/test_domain_from_multiple_files/drum.yml b/test_files_backup/test_domain_from_multiple_files/drum.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/drum.yml rename to test_files_backup/test_domain_from_multiple_files/drum.yml diff --git a/data/test_domains/test_domain_from_multiple_files/last_month.yml b/test_files_backup/test_domain_from_multiple_files/last_month.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/last_month.yml rename to test_files_backup/test_domain_from_multiple_files/last_month.yml diff --git a/data/test_domains/test_domain_from_multiple_files/main_menu.yml b/test_files_backup/test_domain_from_multiple_files/main_menu.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/main_menu.yml rename to test_files_backup/test_domain_from_multiple_files/main_menu.yml diff --git a/data/test_domains/test_domain_from_multiple_files/selection.yml b/test_files_backup/test_domain_from_multiple_files/selection.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/selection.yml rename to test_files_backup/test_domain_from_multiple_files/selection.yml diff --git a/data/test_domains/test_domain_from_multiple_files/small_talk.yml b/test_files_backup/test_domain_from_multiple_files/small_talk.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/small_talk.yml rename to test_files_backup/test_domain_from_multiple_files/small_talk.yml diff --git a/data/test_domains/test_domain_from_multiple_files/tomorrow.yml b/test_files_backup/test_domain_from_multiple_files/tomorrow.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/tomorrow.yml rename to test_files_backup/test_domain_from_multiple_files/tomorrow.yml diff --git a/data/test_domains/test_domain_from_multiple_files/wallets.yml b/test_files_backup/test_domain_from_multiple_files/wallets.yml similarity index 100% rename from data/test_domains/test_domain_from_multiple_files/wallets.yml rename to test_files_backup/test_domain_from_multiple_files/wallets.yml diff --git a/data/test_domains/test_domain_with_duplicates/domain1.yml b/test_files_backup/test_domain_with_duplicates/domain1.yml similarity index 100% rename from data/test_domains/test_domain_with_duplicates/domain1.yml rename to test_files_backup/test_domain_with_duplicates/domain1.yml diff --git a/data/test_domains/test_domain_with_duplicates/domain2.yml b/test_files_backup/test_domain_with_duplicates/domain2.yml similarity index 100% rename from data/test_domains/test_domain_with_duplicates/domain2.yml rename to test_files_backup/test_domain_with_duplicates/domain2.yml diff --git a/data/test_domains/test_domain_with_separate_session_config/configuration.yml b/test_files_backup/test_domain_with_separate_session_config/configuration.yml similarity index 100% rename from data/test_domains/test_domain_with_separate_session_config/configuration.yml rename to test_files_backup/test_domain_with_separate_session_config/configuration.yml diff --git a/data/test_domains/test_domain_with_separate_session_config/intents.yml b/test_files_backup/test_domain_with_separate_session_config/intents.yml similarity index 100% rename from data/test_domains/test_domain_with_separate_session_config/intents.yml rename to test_files_backup/test_domain_with_separate_session_config/intents.yml diff --git a/data/test_domains/test_domain_with_separate_session_config/responses.yml b/test_files_backup/test_domain_with_separate_session_config/responses.yml similarity index 100% rename from data/test_domains/test_domain_with_separate_session_config/responses.yml rename to test_files_backup/test_domain_with_separate_session_config/responses.yml diff --git a/data/test_domains/test_domain_without_duplicates/domain1.yml b/test_files_backup/test_domain_without_duplicates/domain1.yml similarity index 100% rename from data/test_domains/test_domain_without_duplicates/domain1.yml rename to test_files_backup/test_domain_without_duplicates/domain1.yml diff --git a/data/test_domains/test_domain_without_duplicates/domain2.yml b/test_files_backup/test_domain_without_duplicates/domain2.yml similarity index 100% rename from data/test_domains/test_domain_without_duplicates/domain2.yml rename to test_files_backup/test_domain_without_duplicates/domain2.yml diff --git a/data/test_domains/travel_form.yml b/test_files_backup/travel_form.yml similarity index 100% rename from data/test_domains/travel_form.yml rename to test_files_backup/travel_form.yml diff --git a/data/test_domains/valid_actions.yml b/test_files_backup/valid_actions.yml similarity index 100% rename from data/test_domains/valid_actions.yml rename to test_files_backup/valid_actions.yml diff --git a/data/test_domains/wrong_custom_response_format.yml b/test_files_backup/wrong_custom_response_format.yml similarity index 100% rename from data/test_domains/wrong_custom_response_format.yml rename to test_files_backup/wrong_custom_response_format.yml diff --git a/data/test_domains/wrong_response_format.yml b/test_files_backup/wrong_response_format.yml similarity index 100% rename from data/test_domains/wrong_response_format.yml rename to test_files_backup/wrong_response_format.yml diff --git a/data/test_from_trigger_intent_with_mapping_conditions/config.yml b/test_from_trigger_intent_with_mapping_conditions/config.yml similarity index 100% rename from data/test_from_trigger_intent_with_mapping_conditions/config.yml rename to test_from_trigger_intent_with_mapping_conditions/config.yml diff --git a/data/test_from_trigger_intent_with_mapping_conditions/domain.yml b/test_from_trigger_intent_with_mapping_conditions/domain.yml similarity index 100% rename from data/test_from_trigger_intent_with_mapping_conditions/domain.yml rename to test_from_trigger_intent_with_mapping_conditions/domain.yml diff --git a/data/test_from_trigger_intent_with_mapping_conditions/nlu.yml b/test_from_trigger_intent_with_mapping_conditions/nlu.yml similarity index 100% rename from data/test_from_trigger_intent_with_mapping_conditions/nlu.yml rename to test_from_trigger_intent_with_mapping_conditions/nlu.yml diff --git a/data/test_from_trigger_intent_with_mapping_conditions/stories.yml b/test_from_trigger_intent_with_mapping_conditions/stories.yml similarity index 100% rename from data/test_from_trigger_intent_with_mapping_conditions/stories.yml rename to test_from_trigger_intent_with_mapping_conditions/stories.yml diff --git a/data/test_from_trigger_intent_with_no_mapping_conditions/config.yml b/test_from_trigger_intent_with_no_mapping_conditions/config.yml similarity index 100% rename from data/test_from_trigger_intent_with_no_mapping_conditions/config.yml rename to test_from_trigger_intent_with_no_mapping_conditions/config.yml diff --git a/data/test_from_trigger_intent_with_no_mapping_conditions/domain.yml b/test_from_trigger_intent_with_no_mapping_conditions/domain.yml similarity index 100% rename from data/test_from_trigger_intent_with_no_mapping_conditions/domain.yml rename to test_from_trigger_intent_with_no_mapping_conditions/domain.yml diff --git a/data/test_from_trigger_intent_with_no_mapping_conditions/nlu.yml b/test_from_trigger_intent_with_no_mapping_conditions/nlu.yml similarity index 100% rename from data/test_from_trigger_intent_with_no_mapping_conditions/nlu.yml rename to test_from_trigger_intent_with_no_mapping_conditions/nlu.yml diff --git a/data/test_from_trigger_intent_with_no_mapping_conditions/stories.yml b/test_from_trigger_intent_with_no_mapping_conditions/stories.yml similarity index 100% rename from data/test_from_trigger_intent_with_no_mapping_conditions/stories.yml rename to test_from_trigger_intent_with_no_mapping_conditions/stories.yml diff --git a/data/test_incremental_training/iter1/nlg_training_data.yml b/test_incremental_training/iter1/nlg_training_data.yml similarity index 100% rename from data/test_incremental_training/iter1/nlg_training_data.yml rename to test_incremental_training/iter1/nlg_training_data.yml diff --git a/data/test_incremental_training/iter1/training_data.yml b/test_incremental_training/iter1/training_data.yml similarity index 100% rename from data/test_incremental_training/iter1/training_data.yml rename to test_incremental_training/iter1/training_data.yml diff --git a/data/test_incremental_training/iter2/training_data.yml b/test_incremental_training/iter2/training_data.yml similarity index 100% rename from data/test_incremental_training/iter2/training_data.yml rename to test_incremental_training/iter2/training_data.yml diff --git a/data/test_logging_config_files/test_invalid_format_value_in_config.yml b/test_logging_config_files/test_invalid_format_value_in_config.yml similarity index 100% rename from data/test_logging_config_files/test_invalid_format_value_in_config.yml rename to test_logging_config_files/test_invalid_format_value_in_config.yml diff --git a/data/test_logging_config_files/test_invalid_handler_key_in_config.yml b/test_logging_config_files/test_invalid_handler_key_in_config.yml similarity index 100% rename from data/test_logging_config_files/test_invalid_handler_key_in_config.yml rename to test_logging_config_files/test_invalid_handler_key_in_config.yml diff --git a/data/test_logging_config_files/test_invalid_value_for_level_in_config.yml b/test_logging_config_files/test_invalid_value_for_level_in_config.yml similarity index 100% rename from data/test_logging_config_files/test_invalid_value_for_level_in_config.yml rename to test_logging_config_files/test_invalid_value_for_level_in_config.yml diff --git a/data/test_logging_config_files/test_logging_config.yml b/test_logging_config_files/test_logging_config.yml similarity index 100% rename from data/test_logging_config_files/test_logging_config.yml rename to test_logging_config_files/test_logging_config.yml diff --git a/data/test_logging_config_files/test_missing_required_key_invalid_config.yml b/test_logging_config_files/test_missing_required_key_invalid_config.yml similarity index 100% rename from data/test_logging_config_files/test_missing_required_key_invalid_config.yml rename to test_logging_config_files/test_missing_required_key_invalid_config.yml diff --git a/data/test_logging_config_files/test_non_existent_handler_id.yml b/test_logging_config_files/test_non_existent_handler_id.yml similarity index 100% rename from data/test_logging_config_files/test_non_existent_handler_id.yml rename to test_logging_config_files/test_non_existent_handler_id.yml diff --git a/data/test_mixed_yaml_training_data/training_data.yml b/test_mixed_yaml_training_data/training_data.yml similarity index 100% rename from data/test_mixed_yaml_training_data/training_data.yml rename to test_mixed_yaml_training_data/training_data.yml diff --git a/data/test_moodbot/config.yml b/test_moodbot/config.yml similarity index 100% rename from data/test_moodbot/config.yml rename to test_moodbot/config.yml diff --git a/data/test_moodbot/credentials.yml b/test_moodbot/credentials.yml similarity index 100% rename from data/test_moodbot/credentials.yml rename to test_moodbot/credentials.yml diff --git a/data/test_moodbot/data/nlu.yml b/test_moodbot/data/nlu.yml similarity index 100% rename from data/test_moodbot/data/nlu.yml rename to test_moodbot/data/nlu.yml diff --git a/data/test_moodbot/data/rules.yml b/test_moodbot/data/rules.yml similarity index 100% rename from data/test_moodbot/data/rules.yml rename to test_moodbot/data/rules.yml diff --git a/data/test_moodbot/data/stories.yml b/test_moodbot/data/stories.yml similarity index 100% rename from data/test_moodbot/data/stories.yml rename to test_moodbot/data/stories.yml diff --git a/data/test_moodbot/domain.yml b/test_moodbot/domain.yml similarity index 100% rename from data/test_moodbot/domain.yml rename to test_moodbot/domain.yml diff --git a/data/test_moodbot/unexpected_intent_policy_config.yml b/test_moodbot/unexpected_intent_policy_config.yml similarity index 100% rename from data/test_moodbot/unexpected_intent_policy_config.yml rename to test_moodbot/unexpected_intent_policy_config.yml diff --git a/data/test_multi_domain/config.yml b/test_multi_domain/config.yml similarity index 100% rename from data/test_multi_domain/config.yml rename to test_multi_domain/config.yml diff --git a/data/test_multi_domain/data/GreetBot/data/nlu.yml b/test_multi_domain/data/GreetBot/data/nlu.yml similarity index 100% rename from data/test_multi_domain/data/GreetBot/data/nlu.yml rename to test_multi_domain/data/GreetBot/data/nlu.yml diff --git a/data/test_multi_domain/data/GreetBot/data/stories.yml b/test_multi_domain/data/GreetBot/data/stories.yml similarity index 100% rename from data/test_multi_domain/data/GreetBot/data/stories.yml rename to test_multi_domain/data/GreetBot/data/stories.yml diff --git a/data/test_multi_domain/data/GreetBot/domain.yml b/test_multi_domain/data/GreetBot/domain.yml similarity index 100% rename from data/test_multi_domain/data/GreetBot/domain.yml rename to test_multi_domain/data/GreetBot/domain.yml diff --git a/data/test_multi_domain/data/MoodBot/config.yml b/test_multi_domain/data/MoodBot/config.yml similarity index 100% rename from data/test_multi_domain/data/MoodBot/config.yml rename to test_multi_domain/data/MoodBot/config.yml diff --git a/data/test_multi_domain/data/MoodBot/data/nlu.yml b/test_multi_domain/data/MoodBot/data/nlu.yml similarity index 100% rename from data/test_multi_domain/data/MoodBot/data/nlu.yml rename to test_multi_domain/data/MoodBot/data/nlu.yml diff --git a/data/test_multi_domain/data/MoodBot/data/stories.yml b/test_multi_domain/data/MoodBot/data/stories.yml similarity index 100% rename from data/test_multi_domain/data/MoodBot/data/stories.yml rename to test_multi_domain/data/MoodBot/data/stories.yml diff --git a/data/test_multi_domain/data/MoodBot/domain.yml b/test_multi_domain/data/MoodBot/domain.yml similarity index 100% rename from data/test_multi_domain/data/MoodBot/domain.yml rename to test_multi_domain/data/MoodBot/domain.yml diff --git a/data/test_multi_domain/data/nlu.yml b/test_multi_domain/data/nlu.yml similarity index 100% rename from data/test_multi_domain/data/nlu.yml rename to test_multi_domain/data/nlu.yml diff --git a/data/test_multi_domain/data/stories.yml b/test_multi_domain/data/stories.yml similarity index 100% rename from data/test_multi_domain/data/stories.yml rename to test_multi_domain/data/stories.yml diff --git a/data/test_multi_domain/domain.yml b/test_multi_domain/domain.yml similarity index 100% rename from data/test_multi_domain/domain.yml rename to test_multi_domain/domain.yml diff --git a/data/test_multifile_yaml_stories/stories_part_1.yml b/test_multifile_yaml_stories/stories_part_1.yml similarity index 100% rename from data/test_multifile_yaml_stories/stories_part_1.yml rename to test_multifile_yaml_stories/stories_part_1.yml diff --git a/data/test_multifile_yaml_stories/stories_part_2.yml b/test_multifile_yaml_stories/stories_part_2.yml similarity index 100% rename from data/test_multifile_yaml_stories/stories_part_2.yml rename to test_multifile_yaml_stories/stories_part_2.yml diff --git a/data/test_multiline_intent_examples_yaml/nlu.yml b/test_multiline_intent_examples_yaml/nlu.yml similarity index 100% rename from data/test_multiline_intent_examples_yaml/nlu.yml rename to test_multiline_intent_examples_yaml/nlu.yml diff --git a/data/test_multiproject/config.yml b/test_multiproject/config.yml similarity index 100% rename from data/test_multiproject/config.yml rename to test_multiproject/config.yml diff --git a/data/test_multiproject/projects/ChitchatBot/data/nlu.yml b/test_multiproject/projects/ChitchatBot/data/nlu.yml similarity index 100% rename from data/test_multiproject/projects/ChitchatBot/data/nlu.yml rename to test_multiproject/projects/ChitchatBot/data/nlu.yml diff --git a/data/test_multiproject/projects/ChitchatBot/data/rules.yml b/test_multiproject/projects/ChitchatBot/data/rules.yml similarity index 100% rename from data/test_multiproject/projects/ChitchatBot/data/rules.yml rename to test_multiproject/projects/ChitchatBot/data/rules.yml diff --git a/data/test_multiproject/projects/ChitchatBot/domain.yml b/test_multiproject/projects/ChitchatBot/domain.yml similarity index 100% rename from data/test_multiproject/projects/ChitchatBot/domain.yml rename to test_multiproject/projects/ChitchatBot/domain.yml diff --git a/data/test_multiproject/projects/GreetBot/data/nlu.yml b/test_multiproject/projects/GreetBot/data/nlu.yml similarity index 100% rename from data/test_multiproject/projects/GreetBot/data/nlu.yml rename to test_multiproject/projects/GreetBot/data/nlu.yml diff --git a/data/test_multiproject/projects/GreetBot/data/rules.yml b/test_multiproject/projects/GreetBot/data/rules.yml similarity index 100% rename from data/test_multiproject/projects/GreetBot/data/rules.yml rename to test_multiproject/projects/GreetBot/data/rules.yml diff --git a/data/test_multiproject/projects/GreetBot/domain.yml b/test_multiproject/projects/GreetBot/domain.yml similarity index 100% rename from data/test_multiproject/projects/GreetBot/domain.yml rename to test_multiproject/projects/GreetBot/domain.yml diff --git a/data/test_nlg/domain_with_response_ids.yml b/test_nlg/domain_with_response_ids.yml similarity index 100% rename from data/test_nlg/domain_with_response_ids.yml rename to test_nlg/domain_with_response_ids.yml diff --git a/data/test_nlu/test_nlu_validate_files_with_active_loop_null.yml b/test_nlu/test_nlu_validate_files_with_active_loop_null.yml similarity index 100% rename from data/test_nlu/test_nlu_validate_files_with_active_loop_null.yml rename to test_nlu/test_nlu_validate_files_with_active_loop_null.yml diff --git a/data/test_nlu_no_responses/domain_with_only_responses.yml b/test_nlu_no_responses/domain_with_only_responses.yml similarity index 100% rename from data/test_nlu_no_responses/domain_with_only_responses.yml rename to test_nlu_no_responses/domain_with_only_responses.yml diff --git a/data/test_nlu_no_responses/nlu_no_responses.yml b/test_nlu_no_responses/nlu_no_responses.yml similarity index 100% rename from data/test_nlu_no_responses/nlu_no_responses.yml rename to test_nlu_no_responses/nlu_no_responses.yml diff --git a/data/test_nlu_no_responses/nlu_with_unicode.yml b/test_nlu_no_responses/nlu_with_unicode.yml similarity index 100% rename from data/test_nlu_no_responses/nlu_with_unicode.yml rename to test_nlu_no_responses/nlu_with_unicode.yml diff --git a/data/test_nlu_no_responses/sara_nlu_data.yml b/test_nlu_no_responses/sara_nlu_data.yml similarity index 100% rename from data/test_nlu_no_responses/sara_nlu_data.yml rename to test_nlu_no_responses/sara_nlu_data.yml diff --git a/data/test_number_nlu_examples/nlu.yml b/test_number_nlu_examples/nlu.yml similarity index 100% rename from data/test_number_nlu_examples/nlu.yml rename to test_number_nlu_examples/nlu.yml diff --git a/data/test_number_nlu_examples/rules.yml b/test_number_nlu_examples/rules.yml similarity index 100% rename from data/test_number_nlu_examples/rules.yml rename to test_number_nlu_examples/rules.yml diff --git a/data/test_number_nlu_examples/stories.yml b/test_number_nlu_examples/stories.yml similarity index 100% rename from data/test_number_nlu_examples/stories.yml rename to test_number_nlu_examples/stories.yml diff --git a/data/test_action_extract_slots_11333/models/.gitkeep b/test_response_selector_bot/__init__.py similarity index 100% rename from data/test_action_extract_slots_11333/models/.gitkeep rename to test_response_selector_bot/__init__.py diff --git a/data/test_response_selector_bot/config.yml b/test_response_selector_bot/config.yml similarity index 100% rename from data/test_response_selector_bot/config.yml rename to test_response_selector_bot/config.yml diff --git a/data/test_response_selector_bot/data/nlu.yml b/test_response_selector_bot/data/nlu.yml similarity index 100% rename from data/test_response_selector_bot/data/nlu.yml rename to test_response_selector_bot/data/nlu.yml diff --git a/data/test_response_selector_bot/data/rules.yml b/test_response_selector_bot/data/rules.yml similarity index 100% rename from data/test_response_selector_bot/data/rules.yml rename to test_response_selector_bot/data/rules.yml diff --git a/data/test_response_selector_bot/domain.yml b/test_response_selector_bot/domain.yml similarity index 100% rename from data/test_response_selector_bot/domain.yml rename to test_response_selector_bot/domain.yml diff --git a/data/test_response_selector_bot/tests/test_stories.yml b/test_response_selector_bot/tests/test_stories.yml similarity index 100% rename from data/test_response_selector_bot/tests/test_stories.yml rename to test_response_selector_bot/tests/test_stories.yml diff --git a/data/test_responses/default.yml b/test_responses/default.yml similarity index 100% rename from data/test_responses/default.yml rename to test_responses/default.yml diff --git a/data/test_responses/responses_utter_rasa.yml b/test_responses/responses_utter_rasa.yml similarity index 100% rename from data/test_responses/responses_utter_rasa.yml rename to test_responses/responses_utter_rasa.yml diff --git a/data/test_restaurantbot/config.yml b/test_restaurantbot/config.yml similarity index 100% rename from data/test_restaurantbot/config.yml rename to test_restaurantbot/config.yml diff --git a/data/test_restaurantbot/data/nlu.yml b/test_restaurantbot/data/nlu.yml similarity index 100% rename from data/test_restaurantbot/data/nlu.yml rename to test_restaurantbot/data/nlu.yml diff --git a/data/test_restaurantbot/data/rules.yml b/test_restaurantbot/data/rules.yml similarity index 100% rename from data/test_restaurantbot/data/rules.yml rename to test_restaurantbot/data/rules.yml diff --git a/data/test_restaurantbot/data/stories.yml b/test_restaurantbot/data/stories.yml similarity index 100% rename from data/test_restaurantbot/data/stories.yml rename to test_restaurantbot/data/stories.yml diff --git a/data/test_restaurantbot/domain.yml b/test_restaurantbot/domain.yml similarity index 100% rename from data/test_restaurantbot/domain.yml rename to test_restaurantbot/domain.yml diff --git a/data/test_selectors/nlu.yml b/test_selectors/nlu.yml similarity index 100% rename from data/test_selectors/nlu.yml rename to test_selectors/nlu.yml diff --git a/data/test_spacybot/config.yml b/test_spacybot/config.yml similarity index 100% rename from data/test_spacybot/config.yml rename to test_spacybot/config.yml diff --git a/data/test_spacybot/data/nlu.yml b/test_spacybot/data/nlu.yml similarity index 100% rename from data/test_spacybot/data/nlu.yml rename to test_spacybot/data/nlu.yml diff --git a/data/test_spacybot/data/stories.yml b/test_spacybot/data/stories.yml similarity index 100% rename from data/test_spacybot/data/stories.yml rename to test_spacybot/data/stories.yml diff --git a/data/test_spacybot/domain.yml b/test_spacybot/domain.yml similarity index 100% rename from data/test_spacybot/domain.yml rename to test_spacybot/domain.yml diff --git a/data/test_tokenizers/naughty_strings.json b/test_tokenizers/naughty_strings.json similarity index 100% rename from data/test_tokenizers/naughty_strings.json rename to test_tokenizers/naughty_strings.json diff --git a/data/test_trackers/tracker_moodbot.json b/test_trackers/tracker_moodbot.json similarity index 100% rename from data/test_trackers/tracker_moodbot.json rename to test_trackers/tracker_moodbot.json diff --git a/data/test_trackers/tracker_moodbot_with_new_utterances.json b/test_trackers/tracker_moodbot_with_new_utterances.json similarity index 100% rename from data/test_trackers/tracker_moodbot_with_new_utterances.json rename to test_trackers/tracker_moodbot_with_new_utterances.json diff --git a/data/test_validation/data/nlu.yml b/test_validation/data/nlu.yml similarity index 100% rename from data/test_validation/data/nlu.yml rename to test_validation/data/nlu.yml diff --git a/data/test_validation/data/stories.yml b/test_validation/data/stories.yml similarity index 100% rename from data/test_validation/data/stories.yml rename to test_validation/data/stories.yml diff --git a/data/test_validation/domain.yml b/test_validation/domain.yml similarity index 100% rename from data/test_validation/domain.yml rename to test_validation/domain.yml diff --git a/data/test_wrong_yaml_stories/intent_with_leading_slash.yml b/test_wrong_yaml_stories/intent_with_leading_slash.yml similarity index 100% rename from data/test_wrong_yaml_stories/intent_with_leading_slash.yml rename to test_wrong_yaml_stories/intent_with_leading_slash.yml diff --git a/data/test_wrong_yaml_stories/wrong_yaml.yml b/test_wrong_yaml_stories/wrong_yaml.yml similarity index 100% rename from data/test_wrong_yaml_stories/wrong_yaml.yml rename to test_wrong_yaml_stories/wrong_yaml.yml diff --git a/data/test_yaml_stories/non_test_full_retrieval_intent_story.yml b/test_yaml_stories/non_test_full_retrieval_intent_story.yml similarity index 100% rename from data/test_yaml_stories/non_test_full_retrieval_intent_story.yml rename to test_yaml_stories/non_test_full_retrieval_intent_story.yml diff --git a/data/test_yaml_stories/rules_greet_and_goodbye.yml b/test_yaml_stories/rules_greet_and_goodbye.yml similarity index 100% rename from data/test_yaml_stories/rules_greet_and_goodbye.yml rename to test_yaml_stories/rules_greet_and_goodbye.yml diff --git a/data/test_yaml_stories/rules_missing_intent.yml b/test_yaml_stories/rules_missing_intent.yml similarity index 100% rename from data/test_yaml_stories/rules_missing_intent.yml rename to test_yaml_stories/rules_missing_intent.yml diff --git a/data/test_yaml_stories/rules_with_stories_sorted.yaml b/test_yaml_stories/rules_with_stories_sorted.yaml similarity index 100% rename from data/test_yaml_stories/rules_with_stories_sorted.yaml rename to test_yaml_stories/rules_with_stories_sorted.yaml diff --git a/data/test_yaml_stories/rules_without_stories.yml b/test_yaml_stories/rules_without_stories.yml similarity index 100% rename from data/test_yaml_stories/rules_without_stories.yml rename to test_yaml_stories/rules_without_stories.yml diff --git a/data/test_yaml_stories/rules_without_stories_and_wrong_names.yml b/test_yaml_stories/rules_without_stories_and_wrong_names.yml similarity index 100% rename from data/test_yaml_stories/rules_without_stories_and_wrong_names.yml rename to test_yaml_stories/rules_without_stories_and_wrong_names.yml diff --git a/data/test_yaml_stories/simple_story_with_only_end.yml b/test_yaml_stories/simple_story_with_only_end.yml similarity index 100% rename from data/test_yaml_stories/simple_story_with_only_end.yml rename to test_yaml_stories/simple_story_with_only_end.yml diff --git a/data/test_yaml_stories/stories.yml b/test_yaml_stories/stories.yml similarity index 100% rename from data/test_yaml_stories/stories.yml rename to test_yaml_stories/stories.yml diff --git a/data/test_yaml_stories/stories_and_rules.yml b/test_yaml_stories/stories_and_rules.yml similarity index 100% rename from data/test_yaml_stories/stories_and_rules.yml rename to test_yaml_stories/stories_and_rules.yml diff --git a/data/test_yaml_stories/stories_checkpoint_after_or.yml b/test_yaml_stories/stories_checkpoint_after_or.yml similarity index 100% rename from data/test_yaml_stories/stories_checkpoint_after_or.yml rename to test_yaml_stories/stories_checkpoint_after_or.yml diff --git a/data/test_yaml_stories/stories_conflicting_1.yml b/test_yaml_stories/stories_conflicting_1.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_1.yml rename to test_yaml_stories/stories_conflicting_1.yml diff --git a/data/test_yaml_stories/stories_conflicting_2.yml b/test_yaml_stories/stories_conflicting_2.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_2.yml rename to test_yaml_stories/stories_conflicting_2.yml diff --git a/data/test_yaml_stories/stories_conflicting_3.yml b/test_yaml_stories/stories_conflicting_3.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_3.yml rename to test_yaml_stories/stories_conflicting_3.yml diff --git a/data/test_yaml_stories/stories_conflicting_4.yml b/test_yaml_stories/stories_conflicting_4.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_4.yml rename to test_yaml_stories/stories_conflicting_4.yml diff --git a/data/test_yaml_stories/stories_conflicting_5.yml b/test_yaml_stories/stories_conflicting_5.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_5.yml rename to test_yaml_stories/stories_conflicting_5.yml diff --git a/data/test_yaml_stories/stories_conflicting_6.yml b/test_yaml_stories/stories_conflicting_6.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_6.yml rename to test_yaml_stories/stories_conflicting_6.yml diff --git a/data/test_yaml_stories/stories_conflicting_at_1.yml b/test_yaml_stories/stories_conflicting_at_1.yml similarity index 100% rename from data/test_yaml_stories/stories_conflicting_at_1.yml rename to test_yaml_stories/stories_conflicting_at_1.yml diff --git a/data/test_yaml_stories/stories_defaultdomain.yml b/test_yaml_stories/stories_defaultdomain.yml similarity index 100% rename from data/test_yaml_stories/stories_defaultdomain.yml rename to test_yaml_stories/stories_defaultdomain.yml diff --git a/data/test_yaml_stories/stories_e2e.yml b/test_yaml_stories/stories_e2e.yml similarity index 100% rename from data/test_yaml_stories/stories_e2e.yml rename to test_yaml_stories/stories_e2e.yml diff --git a/data/test_yaml_stories/stories_form.yml b/test_yaml_stories/stories_form.yml similarity index 100% rename from data/test_yaml_stories/stories_form.yml rename to test_yaml_stories/stories_form.yml diff --git a/data/test_yaml_stories/stories_hybrid_e2e.yml b/test_yaml_stories/stories_hybrid_e2e.yml similarity index 100% rename from data/test_yaml_stories/stories_hybrid_e2e.yml rename to test_yaml_stories/stories_hybrid_e2e.yml diff --git a/data/test_yaml_stories/stories_missing_intent.yml b/test_yaml_stories/stories_missing_intent.yml similarity index 100% rename from data/test_yaml_stories/stories_missing_intent.yml rename to test_yaml_stories/stories_missing_intent.yml diff --git a/data/test_yaml_stories/stories_restart.yml b/test_yaml_stories/stories_restart.yml similarity index 100% rename from data/test_yaml_stories/stories_restart.yml rename to test_yaml_stories/stories_restart.yml diff --git a/data/test_yaml_stories/stories_retrieval_intents.yml b/test_yaml_stories/stories_retrieval_intents.yml similarity index 100% rename from data/test_yaml_stories/stories_retrieval_intents.yml rename to test_yaml_stories/stories_retrieval_intents.yml diff --git a/data/test_yaml_stories/stories_simple.yml b/test_yaml_stories/stories_simple.yml similarity index 100% rename from data/test_yaml_stories/stories_simple.yml rename to test_yaml_stories/stories_simple.yml diff --git a/data/test_yaml_stories/stories_unexpected_intent_unlearnable.yml b/test_yaml_stories/stories_unexpected_intent_unlearnable.yml similarity index 100% rename from data/test_yaml_stories/stories_unexpected_intent_unlearnable.yml rename to test_yaml_stories/stories_unexpected_intent_unlearnable.yml diff --git a/data/test_yaml_stories/stories_unfeaturized_entities.yml b/test_yaml_stories/stories_unfeaturized_entities.yml similarity index 100% rename from data/test_yaml_stories/stories_unfeaturized_entities.yml rename to test_yaml_stories/stories_unfeaturized_entities.yml diff --git a/data/test_yaml_stories/stories_unused_checkpoints.yml b/test_yaml_stories/stories_unused_checkpoints.yml similarity index 100% rename from data/test_yaml_stories/stories_unused_checkpoints.yml rename to test_yaml_stories/stories_unused_checkpoints.yml diff --git a/data/test_yaml_stories/stories_with_cycle.yml b/test_yaml_stories/stories_with_cycle.yml similarity index 100% rename from data/test_yaml_stories/stories_with_cycle.yml rename to test_yaml_stories/stories_with_cycle.yml diff --git a/data/test_yaml_stories/stories_with_rules_conflicting.yml b/test_yaml_stories/stories_with_rules_conflicting.yml similarity index 100% rename from data/test_yaml_stories/stories_with_rules_conflicting.yml rename to test_yaml_stories/stories_with_rules_conflicting.yml diff --git a/data/test_yaml_stories/story_slot_different_types.yml b/test_yaml_stories/story_slot_different_types.yml similarity index 100% rename from data/test_yaml_stories/story_slot_different_types.yml rename to test_yaml_stories/story_slot_different_types.yml diff --git a/data/test_yaml_stories/story_with_or_and_entities.yml b/test_yaml_stories/story_with_or_and_entities.yml similarity index 100% rename from data/test_yaml_stories/story_with_or_and_entities.yml rename to test_yaml_stories/story_with_or_and_entities.yml diff --git a/data/test_yaml_stories/story_with_or_and_entities_with_no_value.yml b/test_yaml_stories/story_with_or_and_entities_with_no_value.yml similarity index 100% rename from data/test_yaml_stories/story_with_or_and_entities_with_no_value.yml rename to test_yaml_stories/story_with_or_and_entities_with_no_value.yml diff --git a/data/test_yaml_stories/story_with_or_slot_was_set.yml b/test_yaml_stories/story_with_or_slot_was_set.yml similarity index 100% rename from data/test_yaml_stories/story_with_or_slot_was_set.yml rename to test_yaml_stories/story_with_or_slot_was_set.yml diff --git a/data/test_yaml_stories/story_with_slot_was_set.yml b/test_yaml_stories/story_with_slot_was_set.yml similarity index 100% rename from data/test_yaml_stories/story_with_slot_was_set.yml rename to test_yaml_stories/story_with_slot_was_set.yml diff --git a/data/test_yaml_stories/story_with_two_equal_or_statements.yml b/test_yaml_stories/story_with_two_equal_or_statements.yml similarity index 100% rename from data/test_yaml_stories/story_with_two_equal_or_statements.yml rename to test_yaml_stories/story_with_two_equal_or_statements.yml diff --git a/data/test_yaml_stories/test_base_retrieval_intent_story.yml b/test_yaml_stories/test_base_retrieval_intent_story.yml similarity index 100% rename from data/test_yaml_stories/test_base_retrieval_intent_story.yml rename to test_yaml_stories/test_base_retrieval_intent_story.yml diff --git a/data/test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml b/test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml similarity index 100% rename from data/test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml rename to test_yaml_stories/test_base_retrieval_intent_wrong_prediction.yml diff --git a/data/test_yaml_stories/test_failed_entity_extraction_comment.yml b/test_yaml_stories/test_failed_entity_extraction_comment.yml similarity index 100% rename from data/test_yaml_stories/test_failed_entity_extraction_comment.yml rename to test_yaml_stories/test_failed_entity_extraction_comment.yml diff --git a/data/test_yaml_stories/test_full_retrieval_intent_story.yml b/test_yaml_stories/test_full_retrieval_intent_story.yml similarity index 100% rename from data/test_yaml_stories/test_full_retrieval_intent_story.yml rename to test_yaml_stories/test_full_retrieval_intent_story.yml diff --git a/data/test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml b/test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml similarity index 100% rename from data/test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml rename to test_yaml_stories/test_full_retrieval_intent_wrong_prediction.yml diff --git a/data/test_yaml_stories/test_multiple_action_unlikely_intent_warnings.yml b/test_yaml_stories/test_multiple_action_unlikely_intent_warnings.yml similarity index 100% rename from data/test_yaml_stories/test_multiple_action_unlikely_intent_warnings.yml rename to test_yaml_stories/test_multiple_action_unlikely_intent_warnings.yml diff --git a/data/test_yaml_stories/test_prediction_with_correct_intent_wrong_entity.yml b/test_yaml_stories/test_prediction_with_correct_intent_wrong_entity.yml similarity index 100% rename from data/test_yaml_stories/test_prediction_with_correct_intent_wrong_entity.yml rename to test_yaml_stories/test_prediction_with_correct_intent_wrong_entity.yml diff --git a/data/test_yaml_stories/test_prediction_with_wrong_intent_correct_entity.yml b/test_yaml_stories/test_prediction_with_wrong_intent_correct_entity.yml similarity index 100% rename from data/test_yaml_stories/test_prediction_with_wrong_intent_correct_entity.yml rename to test_yaml_stories/test_prediction_with_wrong_intent_correct_entity.yml diff --git a/data/test_yaml_stories/test_prediction_with_wrong_intent_wrong_entity.yml b/test_yaml_stories/test_prediction_with_wrong_intent_wrong_entity.yml similarity index 100% rename from data/test_yaml_stories/test_prediction_with_wrong_intent_wrong_entity.yml rename to test_yaml_stories/test_prediction_with_wrong_intent_wrong_entity.yml diff --git a/data/test_yaml_stories/test_stories_entity_annotations.yml b/test_yaml_stories/test_stories_entity_annotations.yml similarity index 100% rename from data/test_yaml_stories/test_stories_entity_annotations.yml rename to test_yaml_stories/test_stories_entity_annotations.yml diff --git a/tests/test_stories.yml b/tests/test_stories.yml new file mode 100644 index 000000000000..d46e39b3ea06 --- /dev/null +++ b/tests/test_stories.yml @@ -0,0 +1,91 @@ +#### This file contains tests to evaluate that your bot behaves as expected. +#### If you want to learn more, please see the docs: https://rasa.com/docs/rasa/testing-your-assistant + +stories: +- story: happy path 1 + steps: + - user: | + hello there! + intent: greet + - action: utter_greet + - user: | + amazing + intent: mood_great + - action: utter_happy + +- story: happy path 2 + steps: + - user: | + hello there! + intent: greet + - action: utter_greet + - user: | + amazing + intent: mood_great + - action: utter_happy + - user: | + bye-bye! + intent: goodbye + - action: utter_goodbye + +- story: sad path 1 + steps: + - user: | + hello + intent: greet + - action: utter_greet + - user: | + not good + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + yes + intent: affirm + - action: utter_happy + +- story: sad path 2 + steps: + - user: | + hello + intent: greet + - action: utter_greet + - user: | + not good + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + not really + intent: deny + - action: utter_goodbye + +- story: sad path 3 + steps: + - user: | + hi + intent: greet + - action: utter_greet + - user: | + very terrible + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + no + intent: deny + - action: utter_goodbye + +- story: say goodbye + steps: + - user: | + bye-bye! + intent: goodbye + - action: utter_goodbye + +- story: bot challenge + steps: + - user: | + are you a bot? + intent: bot_challenge + - action: utter_iamabot diff --git a/tracker.cpp b/tracker.cpp new file mode 100644 index 000000000000..5a3b622caeed --- /dev/null +++ b/tracker.cpp @@ -0,0 +1,36 @@ +#include +#include +#include +#include + +namespace py = pybind11; + +class CppTrackerEngine { +private: + // Memory map replacing the standard slow database/JSON dictionary + std::unordered_map state_store; + mutable std::shared_mutex store_mutex; + +public: + void save(const std::string& sender_id, const std::string& state_json) { + std::unique_lock lock(store_mutex); + state_store[sender_id] = state_json; + } + + std::string retrieve(const std::string& sender_id) const { + std::shared_lock lock(store_mutex); + auto it = state_store.find(sender_id); + if (it != state_store.end()) { + return it->second; + } + return ""; + } +}; + +// Bindings to expose this C++ class directly to Python scripts +PYBIND11_MODULE(fast_tracker, m) { + py::class_(m, "CppTrackerEngine") + .def(py::init<>()) + .def("save", &CppTrackerEngine::save) + .def("retrieve", &CppTrackerEngine::retrieve); +} \ No newline at end of file