A normalized streaming handle.
chunks— anEnumerableofReqLLM.StreamChunk(:content/:thinking/:tool_call/:meta) the agent forwards as live deltas.cancel— a 0-arity closure that aborts the stream and frees resources.finalize— a 0-arity closure returning{assembled_message, usage}; call it afterchunkshas been fully consumed.
Summary
Types
@type t() :: %Agentix.Provider.Stream{ cancel: (-> :ok), chunks: Enumerable.t(), finalize: (-> {ReqLLM.Message.t(), map()}) }