Skip to documentation content
On this page
  1. Reference
  2. 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.

Reference

FieldValueDescription
symboltelion_api.AiStream
moduletelion_api.ai
constructor(transport: 'Any', request: 'Mapping[str, Any]') -> 'None'

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'