Symptom
The run raises RuntimeError: No available speakers found. The report describes that as the graph being unable to find the next speaker even though the edge exists.
Evidence what you'll see
- The traceback in the comments is
select_speakerin_digraph_group_chat.pyraisingRuntimeError: No available speakers found. - The messages just before the error, from the agent that called the tool, are
ToolCallRequestEvent,ToolCallExecutionEvent, andToolCallSummaryMessage. - The maintainer wrote that speaker selection only checks subclasses of
BaseChatMessage, and the tool-call events are not those subclasses.
Why it happens
GraphFlow can have more than one legal next speaker, but it still has to know which agent just finished. It reads the source of the last message. A tool call inserts events that are not normal chat messages, so that lookup finds nobody and raises RuntimeError: No available speakers found. A related gap is the edge condition itself. Keyword checks could not express every exit. The python-v0.6.0 notes say callable conditions address the case where a keyword condition cannot cover every possibility and the run cannot find the next agent.
Affected versions
Reported on AutoGen Python 0.5.6 with Python 3.12. The operating-system field in the report says None. The agents in the report call tools, including query_muse_search and get_dataset_info.
Fix steps
0 of 3 done
Your check marks stay in this browser only.
How to check it worked
- Run the graph that includes a tool-using agent. After
ToolCallSummaryMessage, the next agent should speak, and the run should not raiseRuntimeError: No available speakers found.
If it still fails
- If you save the graph, the
python-v0.6.0notes say a callable condition cannot be serialized with it. The notes do not give a serialized form for that condition. - For a flow that should be one agent at a time, the maintainer said to keep the graph sequential. A sequential tool chain was still reported to hit this error before the callable-condition change.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it