MCPcopy
hub / github.com/RasaHQ/rasa / exists

Method exists

rasa/core/tracker_store.py:250–262  ·  view source on GitHub ↗

Checks if tracker exists for the specified ID. This method may be overridden by the specific tracker store for faster implementations. Args: conversation_id: Conversation ID to check if the tracker exists. Returns: `True` if the tracker exis

(self, conversation_id: Text)

Source from the content-addressed store, hash-verified

248 raise NotImplementedError()
249
250 async def exists(self, conversation_id: Text) -> bool:
251 """Checks if tracker exists for the specified ID.
252
253 This method may be overridden by the specific tracker store for
254 faster implementations.
255
256 Args:
257 conversation_id: Conversation ID to check if the tracker exists.
258
259 Returns:
260 `True` if the tracker exists, `False` otherwise.
261 """
262 return await self.retrieve(conversation_id) is not None
263
264 async def retrieve(self, sender_id: Text) -> Optional[DialogueStateTracker]:
265 """Retrieves tracker for the latest conversation session.

Callers 15

test_nluFunction · 0.80
decoratedFunction · 0.80
get_local_modelFunction · 0.80
get_latest_modelFunction · 0.80
create_pathFunction · 0.80
__exit__Method · 0.80
read_global_config_valueFunction · 0.80
copy_directoryFunction · 0.80
load_agentFunction · 0.80
ensure_schema_existsFunction · 0.80
migrate_domain_formatFunction · 0.80
_write_stories_to_fileFunction · 0.80

Calls 1

retrieveMethod · 0.95