blueshed.gust.stream
1import uuid 2from typing import AsyncGenerator 3 4 5class Stream: 6 """A special instance of a result after a result""" 7 8 def __init__(self, gen: AsyncGenerator) -> None: 9 self.id = str(uuid.uuid4()) 10 self.gen = gen 11 12 def to_json(self) -> dict: 13 """We're just a response""" 14 return {'stream_id': self.id}
class
Stream:
6class Stream: 7 """A special instance of a result after a result""" 8 9 def __init__(self, gen: AsyncGenerator) -> None: 10 self.id = str(uuid.uuid4()) 11 self.gen = gen 12 13 def to_json(self) -> dict: 14 """We're just a response""" 15 return {'stream_id': self.id}
A special instance of a result after a result