class documentation

Undocumented

Method __init__ Initializes the Cerebras AI stream response.
Method __iter__ Iterates over the stream and yields responses.
Method __next__ Returns the next item from the stream.
Instance Variable metadatas Undocumented
Instance Variable stream Undocumented
def __init__(self, stream, metadatas):

Initializes the Cerebras AI stream response. Args: stream: The stream from the Cerebras client.

def __iter__(self):

Iterates over the stream and yields responses. Yields: str: The content of each response chunk.

def __next__(self):

Returns the next item from the stream. Returns: str: The content of the next response chunk. Raises: StopIteration: If there are no more items in the stream.

metadatas =

Undocumented

stream =

Undocumented