Replies: 1 comment
-
|
Adding @TaoChenOSU / @lokitoth to help comment. |
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.
-
Hi,
I'm building a switch-case workflow using agents, where the workflow itself runs as an agent within an orchestrating handoff agent workspace.
The issue I’m seeing is that during execution, the switch-case always returns to the default case. Based on logs, this seems to happen because a TurnToken is being passed into the switch evaluation, which causes all case conditions to fail.
Is this the intended behavior? If not, how should I handle or bypass the TurnToken so that the switch evaluates correctly?
Code:
Logs:
[14:09:13 INF] Successfully extracted scope_type: broad
[14:09:13 INF] Switch condition check: Expected=narrow, Extracted=broad, Match=False
[14:09:14 INF] Successfully extracted scope_type: broad
[14:09:14 INF] Switch condition check: Expected=broad, Extracted=broad, Match=True
[14:09:16 INF] Microsoft.Agents.AI.Workflows.TurnToken
[14:09:16 INF] Received TurnToken in condition evaluation, ignoring
[14:09:16 INF] Switch condition check: Expected=narrow, Extracted=ignore, Match=False
[14:09:17 INF] Microsoft.Agents.AI.Workflows.TurnToken
[14:09:17 INF] Received TurnToken in condition evaluation, ignoring
[14:09:17 INF] Switch condition check: Expected=broad, Extracted=ignore, Match=False
[14:09:18 INF] Microsoft.Agents.AI.Workflows.TurnToken
[14:09:18 INF] Received TurnToken in condition evaluation, ignoring
[14:09:18 INF] Switch condition check: Expected=combined, Extracted=ignore, Match=False
I'm running the workflow as a stream via a handoff builder:
I've been following this guide:
https://github.com/microsoft/agent-framework/blob/main/dotnet/samples/GettingStarted/Workflows/ConditionalEdges/02_SwitchCase/Program.cs
Using .NET / Agent Framework: 1.0.0-preview.251009.1
Beta Was this translation helpful? Give feedback.
All reactions