Skip to documentation content
On this page
  1. Contract

AiStream

A cancellable event iterator and context manager. Use ``with ... as stream`` when iteration may end early. ``cancel()`` asks Telion to interrupt generation; ``get_final_response()`` drains the stream.

A cancellable event iterator and context manager. Use with ... as stream when iteration may end early. cancel() asks Telion to interrupt generation; get_final_response() drains the stream.

Contract

PropertyValue
symboltelion_api.AiStream
moduletelion_api.ai
constructor(transport: 'Any', request: 'Mapping[str, Any]') -> 'None'
AiStream — Telion Python API 0.1.0-alpha | Telion