AgentEra / Agently

[GenAI Application Development Framework] 🚀 Build GenAI application quick and easy 💬 Easy to interact with GenAI agent in code using structure data and chained-calls syntax 🧩 Use Event-Driven Flow *TriggerFlow* to manage complex GenAI working logic 🔀 Switch to any model without rewrite application code

Home Page:http://agently.tech

Repository from Github https://github.comAgentEra/AgentlyRepository from Github https://github.comAgentEra/Agently

Does the output result of each workflow chunk support the streaming output of workflow.start?

Anionex opened this issue · comments

commented

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()