OpenAI.Agents.StreamHandler (openai_agents v0.1.2)

Handles streaming responses using GenStage for backpressure management.

Summary

Functions

Marks the stream as complete.

Emits an event to the stream.

Gets the next event from the stream.

Starts a new stream handler.

Functions

complete(handler)

Marks the stream as complete.

emit(handler, event)

Emits an event to the stream.

next_event(handler, timeout \\ 5000)

Gets the next event from the stream.

start_link(opts \\ [])

Starts a new stream handler.