agent / python /extensions /reasoning_stream /_30_api_stream.py
Leon4gr45's picture
Upload folder using huggingface_hub
5d03c05 verified
raw
history blame contribute delete
174 Bytes
async def reasoning_stream(agent, text, **kwargs):
if hasattr(agent.context, 'stream_queue'):
agent.context.stream_queue.put({'type': 'reasoning', 'text': text})