Tracker
These docs are for version 1.x of Rasa Open Source.
User Guide
- Installation
- Tutorial: Rasa Basics
- Tutorial: Building Assistants
- Command Line Interface
- Architecture
- Messaging and Voice Channels
- Testing Your Assistant
- Validate Data
- Configuring the HTTP API
- Deploying Your Rasa Assistant
- Cloud Storage
NLU
- About
- Using NLU Only
- Training Data Format
- Language Support
- Choosing a Pipeline
- Components
- Entity Extraction
Core
- About
- Stories
- Domains
- Responses
- Actions
- Reminders and External Events
- Policies
- Slots
- Forms
- Retrieval Actions
- Interactive Learning
- Fallback Actions
- Knowledge Base Actions
Conversation Design
API Reference
- Action Server
- HTTP API
- Jupyter Notebooks
- Agent
- Custom NLU Components
- Rasa SDK
- Events
- Tracker
- Tracker Stores
- Event Brokers
- Lock Stores
- Training Data Importers
- Featurization of Conversations
- TensorFlow Configuration
- Migration Guide
- Rasa Open Source Change Log
Migrate from (beta)
Reference
Versions
viewing: 1.9.0
Tracker
Trackers maintain the state of a dialogue between the assistant and the user in the form of conversation sessions. To learn more about how to configure the session behaviour, check out the docs on Session configuration.
classrasa.core.trackers.``DialogueStateTracker( sender_id, slots, max_event_history=None, sender_source=None)
Maintains the state of a conversation.
Methods
applied_events()
Returns all actions that should be applied - w/o reverted events. Return type:List[Event]as_dialogue()
Return aDialogueobject containing all of the turns. Return type:Dialoguechange_form_to( form_name)
Activate or deactivate a form Return type:Noneclear_followup_action()
Clears follow up action when it was executed. Return type:Nonecopy()
Creates a duplicate of this tracker Return type:DialogueStateTrackercurrent_slot_values()
Return the currently set values of the slots Return type:Dict[str,Any]current_state( event_verbosity=<EventVerbosity.NONE: 1>)
Return the current tracker state as an object. Return type:Dict[str,Any]events_after_latest_restart()
Return a list of events after the most recent restart. Return type:List[Event]export_stories( e2e=False, include_source=False)
Dump the tracker as a story in the Rasa Core story format. Returns the dumped tracker as a string. Return type:strexport_stories_to_file( export_path='debug.md')
Dump the tracker as a story to a file. Return type:None- ...
update( event, domain=None)
Modify the state of the tracker according to anEvent. Return type:None
Warning: This document is for an old version of Rasa. The latest version is 1.10.26.