Replies: 1 comment
-
I was encountering this error since my ollama version did not support tool calling. |
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
-
I will try to elaborate on my issue and would appreciate any kind of help!
Introduction
I am running an ollama server with LiteLLM proxy. I aim to design a group chat using Autogen. The designated agents are:
User_Proxy
: ask questionSQL_Generator
: generate SQLSQL_Runner
: run SQL (tool calling)Result_Validator
: validate resultProblems
The group chat works fine up until
SQL_Runner
returns the data from DB. But when the next speaker is expected to be theResult_Validator
,SQL_Generator
is assigned as next speaker, although I explicitly state in the system message thatSQL_Runner
should pass the result toResult_Validator
.For some reason,
SQL_Generator
agent's role remains as tool following the activity ofSQL_Runner
instead of one of [system, user, assistant] and it leads to this error:Code
Please let me know if you need extra pieces of code.
LLM Configs
GroupChat
For the problem number 1, I have already tried to set
autogen.GroupChat
'sspeaker_selection_method
to"round_robin"
but the result did not change at all.For the problem number 2, I am guessing that it might be overcome if I can somehow prevent agent role from being cached, but I cannot really figure out how.
Beta Was this translation helpful? Give feedback.
All reactions