-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dm2' into ENG-472-Component-Wrap-up-LLMCommandGenerator
- Loading branch information
Showing
60 changed files
with
1,063 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ rasa/tests | |
rasa/scripts | ||
data/ | ||
examples/ | ||
docker-data/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a test prompt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-data/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ exclude = "((.eggs | .git | .pytest_cache | build | dist))" | |
|
||
[tool.poetry] | ||
name = "rasa" | ||
version = "3.8.0a9" | ||
version = "3.8.0a11" | ||
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants" | ||
authors = [ "Rasa Technologies GmbH <[email protected]>",] | ||
maintainers = [ "Tom Bocklisch <[email protected]>",] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from typing import Optional, Dict, Any, List | ||
|
||
from rasa.core.actions.action import Action | ||
from rasa.core.channels import OutputChannel | ||
from rasa.core.nlg import NaturalLanguageGenerator | ||
from rasa.dialogue_understanding.stack.dialogue_stack import DialogueStack | ||
from rasa.dialogue_understanding.stack.frames import ChitChatStackFrame | ||
from rasa.shared.core.constants import ACTION_TRIGGER_CHITCHAT | ||
from rasa.shared.core.domain import Domain | ||
from rasa.shared.core.events import Event | ||
from rasa.shared.core.trackers import DialogueStateTracker | ||
|
||
|
||
class ActionTriggerChitchat(Action): | ||
"""Action which triggers a chitchat answer.""" | ||
|
||
def name(self) -> str: | ||
"""Return the name of the action.""" | ||
return ACTION_TRIGGER_CHITCHAT | ||
|
||
async def run( | ||
self, | ||
output_channel: OutputChannel, | ||
nlg: NaturalLanguageGenerator, | ||
tracker: DialogueStateTracker, | ||
domain: Domain, | ||
metadata: Optional[Dict[str, Any]] = None, | ||
) -> List[Event]: | ||
"""Run the predicate checks.""" | ||
dialogue_stack = DialogueStack.from_tracker(tracker) | ||
dialogue_stack.push(ChitChatStackFrame()) | ||
return [dialogue_stack.persist_as_event()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from typing import Optional, Dict, Any, List | ||
|
||
from rasa.core.actions.action import Action | ||
from rasa.core.channels import OutputChannel | ||
from rasa.core.nlg import NaturalLanguageGenerator | ||
from rasa.dialogue_understanding.stack.dialogue_stack import DialogueStack | ||
from rasa.dialogue_understanding.stack.frames import SearchStackFrame | ||
from rasa.shared.core.constants import ACTION_TRIGGER_SEARCH | ||
from rasa.shared.core.domain import Domain | ||
from rasa.shared.core.events import Event | ||
from rasa.shared.core.trackers import DialogueStateTracker | ||
|
||
|
||
class ActionTriggerSearch(Action): | ||
"""Action which triggers a search""" | ||
|
||
def name(self) -> str: | ||
"""Return the name of the action.""" | ||
return ACTION_TRIGGER_SEARCH | ||
|
||
async def run( | ||
self, | ||
output_channel: OutputChannel, | ||
nlg: NaturalLanguageGenerator, | ||
tracker: DialogueStateTracker, | ||
domain: Domain, | ||
metadata: Optional[Dict[str, Any]] = None, | ||
) -> List[Event]: | ||
"""Run the predicate checks.""" | ||
dialogue_stack = DialogueStack.from_tracker(tracker) | ||
dialogue_stack.push(SearchStackFrame()) | ||
return [dialogue_stack.persist_as_event()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.