mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
renamed all (#3207)
This commit is contained in:
committed by
GitHub
Unverified
parent
1ae0b09e42
commit
d8cf8361bd
@@ -3,7 +3,7 @@
|
||||
import asyncio
|
||||
|
||||
from agent_framework import (
|
||||
AgentRunResponse,
|
||||
AgentResponse,
|
||||
ChatAgent,
|
||||
Executor,
|
||||
WorkflowBuilder,
|
||||
@@ -83,9 +83,9 @@ async def main():
|
||||
.build()
|
||||
)
|
||||
|
||||
output: AgentRunResponse | None = None
|
||||
output: AgentResponse | None = None
|
||||
async for event in workflow.run_stream("hello world"):
|
||||
if isinstance(event, WorkflowOutputEvent) and isinstance(event.data, AgentRunResponse):
|
||||
if isinstance(event, WorkflowOutputEvent) and isinstance(event.data, AgentResponse):
|
||||
output = event.data
|
||||
|
||||
if output:
|
||||
|
||||
Reference in New Issue
Block a user