Does the output result of each workflow chunk support the streaming output of workflow.start?
Anionex opened this issue · comments
Does the output result of each workflow chunk support the streaming output of workflow.start?
how to do it?or i have to do it through web socket?
No, the workflow object can not support streaming generator right now.
But the agent object can support that using an event listener.
import Agently
agent = Agently.create_agent()
@agent.on_event("delta")
def delta_handler(data):
print(data)
agent.input("hi").start()
Read this to explore more: https://agently.tech/guides/agent_request/guide.html#_15