AiSDKStreamConsumer class

Constructors

AiSDKStreamConsumer({required Stream<List<int>> stream, String endChunkPrefix = 'd:'})
A class that consumes a stream of chunks and returns a stream of chunks.

Properties

endChunkPrefix String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<List<int>>
final

Methods

consume() Future<AiSDKConsumeValue>
Consumes the stream of chunks and returns a stream of chunks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited