Contexts#
- class Context(input_contexts, session)[source]#
Bases:
object
A client class for accessing and manipulating input and output contexts.
This class provides an API that allows to create, edit or delete contexts during conversations.
- Parameters
- Return type
None
- input_contexts#
The contexts that were active in the conversation when the intent was triggered by Dialogflow.
- delete(name)[source]#
Deactivate an output context by setting its lifespan to 0.
- Parameters
name (str) – The name of the context.
- Return type
None