Replies: 1 comment
-
|
Thanks for raising this! The good news is that AG-UI now natively supports MAF workflows, so you no longer need to wrap your workflow with Use from agent_framework.ag_ui import AgentFrameworkWorkflow, add_agent_framework_fastapi_endpoint
from fastapi import FastAPI
app = FastAPI()
demo_workflow = AgentFrameworkWorkflow(
workflow_factory=lambda _thread_id: workflow, # your built workflow
name="my_workflow",
description="Streaming workflow demo",
)
add_agent_framework_fastapi_endpoint(
app=app,
agent=demo_workflow,
path="/my-endpoint",
)The For a full working example, check out the AG-UI Workflow Handoff demo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
When using
workflow.as_agent().run(stream=True), workflow agents buffer responses into large text chunks instead of streaming individual tokens like single agents.Code Comparison
Single Agent (✅ Token-level streaming works)
Workflow Agent (❌ Buffering issue)
Comparison
Single Agent :
Workflow Agent (Current Issue):
Question
The workflow loses token-level granularity essential for real time streaming UIs (For AGUI)
How can we preserve token-by-token streaming when using workflow.as_agent().run(stream=True)? 🙏
Beta Was this translation helpful? Give feedback.
All reactions