-
Notifications
You must be signed in to change notification settings - Fork 3.9k
.Net: Bug: Using Gemini for Agents can't select next agent #10939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also encountered a similar problem, which seems to be related to the model's ability. I had no problem using DeepSeeker R1, but the QwQ-32B model reported this error |
@sscowden, thanks for the report. Please consider updating the ResultParser = (result) =>
{
string? resultValue = result.GetValue<string>();
Debug.WriteLine($"Termination Result: {resultValue}");
return resultValue?.Contains("yes", StringComparison.OrdinalIgnoreCase) ?? false;
} Following this convention will also allow the ability to set breakpoint in the result parser. The exception message reports I wonder if there's an encoding issue that is affecting comparison? After making the update to Also, you should be able to step the debugger back into the strategy for direct inspection of the failure point. |
Will do this tomorrow and get back to you. Thanks! |
You called it!
Is this something I should be handling manually in the ResultParser or is this a bug? |
in python we do something like this |
Glad to hear this helped provide insight. I feel that the most appropriate approach is to have the The platform level, may not have the most complete perpsective with regards to making data-processing (result-parser) decisions. Even if we trimmed whitespace, there's going to be othercases where it might be: I'm extremely fond of using structured output for these strategies as the primary tactic for raising response consistency / reliability. |
Describe the bug
Trying to use Gemini for an Agent demo and it always fails with the following error:
'Agent Failure - Strategy unable to select next agent: BillParser'
To Reproduce
Expected behavior
Expect group chat to select the agents properly
Platform
The text was updated successfully, but these errors were encountered: