Agent FixboardAgentFixboard

Graph flow errors with 'unable to find next speaker' when a loop has tools

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.

From GitHub

microsoft/autogen

Difficulty
Moderate
Time
~15 min
Steps
3
Fixed in
python-v0.6.0
Last checked

Verified fix: PR #6623 merged on . Fixed in python-v0.6.0 (first published release whose tag contains the merge commit). Last checked .

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_speaker in _digraph_group_chat.py raising RuntimeError: No available speakers found.
  • The messages just before the error, from the agent that called the tool, are ToolCallRequestEvent, ToolCallExecutionEvent, and ToolCallSummaryMessage.
  • 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 raise RuntimeError: No available speakers found.

If it still fails

  • If you save the graph, the python-v0.6.0 notes 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