pressagio.context_tracker

Class for context tracker.

class pressagio.context_tracker.ContextTracker(config, predictor_registry, callback)[source]

Tracks the current context.

Methods

context_change  
extra_token_to_learn  
future_stream  
is_completion_valid  
past_stream  
prefix  
token  
update_context  
__init__(self, config, predictor_registry, callback)[source]

Initialize self. See help(type(self)) for accurate signature.

exception pressagio.context_tracker.InvalidCallbackException[source]