I am working on a rasa related project. My Rasa version is 1.5.3. Rasa agent is loaded in a python program:
from rasa.core.agent import Agent … agent = Agent.load(‘models/’,action_endpoint=action_endpoint)
In the project, there are needs to trigger intents (with entities) and trigger custom actions in my program, which means those shall be done outside rasa actions.
I suppose to achieve these by using trigger_intent() in the class Agent:
Yet I got this error message: AttributeError: ‘Agent’ object has no attribute ‘trigger_intent’
Don’t know what goes wrong.
As to directly trigger an action, I am not sure what method should I use.
Agent.execute_action(), or DialogueStateTracker.trigger_followup_action() ?
As to the latter, I am not sure how to initialize a DialogueStateTracker object properly with a already loaded agent object?
I saw from_dict() and from_event(), searched on google but not yet have clue:
Can anyone help me? Thank you!