- Notifications
You must be signed in to change notification settings - Fork7.2k
Comparing changes
Open a pull request
base repository:microsoft/autogen
Uh oh!
There was an error while loading.Please reload this page.
base:python-v0.6.2
head repository:microsoft/autogen
Uh oh!
There was an error while loading.Please reload this page.
compare:python-v0.6.4
- 19commits
- 262files changed
- 11contributors
Commits on Jul 6, 2025
Fix function calling support for Llama3.3 (#6750)
## Why are these changes needed?This PR fixes incorrect model metadata for llama3.3.The function_calling capability was previously set to False, but[llama3.3 supports functioncalling.](https://www.llama.com/docs/model-cards-and-prompt-formats/llama3_3/)with [ollama](https://ollama.com/library/llama3.3).<!-- Please give a short summary of the change and the problem thissolves. -->## Related issue number<!-- For example: "Closes#1234" -->## Checks- [x] I've included any doc changes needed for<https://microsoft.github.io/autogen/>. See<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> tobuild and test documentation locally.- [x] I've added tests (if relevant) corresponding to the changesintroduced in this PR.- [x] I've made sure all auto checks have passed.Co-authored-by: mh <>
Fix GraphFlow to support multiple task execution without explicit res…
…et (#6747)## ProblemWhen using GraphFlow with a termination condition, the second taskexecution would immediately terminate without running any agents. Thefirst task would run successfully, but subsequent tasks would skip allagents and go directly to the stop agent.This was demonstrated by the following issue:```python# First task runs correctlyresult1 = await team.run(task="First task") # ✅ Works fine# Second task fails immediately result2 = await team.run(task="Second task") # ❌ Only user + stop messages```## Root CauseThe `GraphFlowManager` was not resetting its execution state whentermination occurred. After the first task completed:1. The `_ready` queue was empty (all nodes had been processed)2. The `_remaining` and `_enqueued_any` tracking structures remained in"completed" state3. The `_message_thread` retained history from the previous taskThis left the graph in a "completed" state, causing subsequent tasks toimmediately trigger the stop agent instead of executing the workflow.## SolutionAdded an override of the `_apply_termination_condition` method in`GraphFlowManager` to automatically reset the graph execution state whentermination occurs:```pythonasync def _apply_termination_condition( self, delta: Sequence[BaseAgentEvent | BaseChatMessage], increment_turn_count: bool = False) -> bool: # Call the base implementation first terminated = await super()._apply_termination_condition(delta, increment_turn_count) # If terminated, reset the graph execution state and message thread for the next task if terminated: self._remaining = {target: Counter(groups) for target, groups in self._graph.get_remaining_map().items()} self._enqueued_any = {n: {g: False for g in self._enqueued_any[n]} for n in self._enqueued_any} self._ready = deque([n for n in self._graph.get_start_nodes()]) # Clear the message thread to start fresh for the next task self._message_thread.clear() return terminated```This ensures that when a task completes (termination condition is met),the graph is automatically reset to its initial state ready for the nexttask.## TestingAdded a comprehensive test case`test_digraph_group_chat_multiple_task_execution` that validates:- Multiple tasks can be run sequentially without explicit reset calls- All agents are executed the expected number of times - Both tasks produce the correct number of messages- The fix works with various termination conditions(MaxMessageTermination, TextMentionTermination)## ResultGraphFlow now works like SelectorGroupChat where multiple tasks can berun sequentially without explicit resets between them:```python# Both tasks now work correctlyresult1 = await team.run(task="First task") # ✅ 5 messages, all agents calledresult2 = await team.run(task="Second task") # ✅ 5 messages, all agents called again```Fixes#6746.> [!WARNING]>> <details>> <summary>Firewall rules blocked me from connecting to one or moreaddresses</summary>>> #### I tried to connect to the following addresses, but was blocked byfirewall rules:>> - `esm.ubuntu.com`> - Triggering command: `/usr/lib/apt/methods/https` (dns block)>> If you need me to access, download, or install something from one ofthese locations, you can either:>> - Configure [Actions setupsteps](https://gh.io/copilot/actions-setup-steps) to set up myenvironment, which run before the firewall is enabled> - Add the appropriate URLs or hosts to my [firewall allowlist](https://gh.io/copilot/firewall-config)>> </details><!-- START COPILOT CODING AGENT TIPS -->---💬 Share your feedback on Copilot coding agent for the chance to win a$200 gift card! Click[here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) tostart the survey.---------Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: ekzhu <320302+ekzhu@users.noreply.github.com>Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Fix GraphFlowManager termination to prevent _StopAgent from polluting…
… conversation context (#6752)Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: ekzhu <320302+ekzhu@users.noreply.github.com>Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Add tool name and description override functionality to Workbench imp…
…lementations (#6690)Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: ekzhu <320302+ekzhu@users.noreply.github.com>Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Added DuckDuckGo Search Tool and Agent in AutoGen Extensions (#6682)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Commits on Jul 7, 2025
Add script to automatically generate API documentation and remove har…
…d-coded RST files; fix API docs (#6755)
Update GitHub Models url to the new url (#6759)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
SingleThreadedAgentRuntime to use subclass check for factory_wrapper …
…instead of equality (#6731)Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
feat: add qwen2.5vl support (#6650)
Co-authored-by: Victor Dibia <victordibia@microsoft.com>Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Commits on Jul 9, 2025
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:git diff python-v0.6.2...python-v0.6.4
Uh oh!
There was an error while loading.Please reload this page.