Represents a streaming interaction in a chat session. This class handles live interactions where the response is obtained in chunks, allowing for real-time processing while the interaction is ongoing.

Methods

__init__(_chat, _formatter, **values)

Create a new model by parsing and validating input data from keyword arguments. Parameters:
_chat
Chat
required
The chat instance associated with the interaction: Chat
_formatter
InlineAttributionFormatter
required
Formatter for inline attributions: InlineAttributionFormatter
**values
dict
Additional values for initialization.

model_post_init(context)

Initialize private attributes after model creation. Parameters:
context
Any
Context for initialization.