ai.stream.EventSource

Pulls the next normalized event, or `Done` once the turn is over.

Reference version

Signature

type ai.stream.EventSource = () -> ai.stream.Event | ai.stream.Done throws ai.errors.InvokeError

Pulls the next normalized event, or Done once the turn is over.

The callback behind TurnStream.from_event_source: it lets a composite client relay a member's events without exposing that member's wire format.

Source:<builtin>/ai/ns_stream/stream.bamlbytes 55865655