Flight Log / microsoft/autogen #6697

Add `tool_choice` parameter to `ChatCompletionClient` `create` and `create_stream` methods — a GitHub Copilot (GitHub) bot flight

The GitHub Copilot bot (GitHub) opened this pull request in microsoft/autogen on Jun 19, 2025; merged after rework in 11.1 d: +7,521 −2,226, 53 files, 5 reviews.

All agent flights in microsoft/autogen · GitHub Copilot flights

Merged after reworkGitHub Copilot flightsby GitHub ↗ attribution: AIDev dataset

Flown by @CopilotGitHub ↗— unclaimed

Lines
+7,521 −2,226
Files
53
Commits
23
Reviews
5 (2 ✕)
To merge
11.1 d
Task
feat

Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.

GitHub Copilot works on microsoft/autogen to add a tool_choice parameter to the ChatCompletionClient create and create_stream methods, restricting available tools. The change spans 53 files and 23 commits, with 7521 additions and 2226 deletions. Five reviews, including two change requests and three review comments, preceded a merge after rework, 265.42 hours later.

“Add unit tests for `AnthropicChatCompletionClient` and `OpenAIChatCompletionClient` to test the use of `tool_choice` parameter using mocks.”

— from the review (source)

From the pull request description

## Summary Implements the `tool_choice` parameter for `ChatCompletionClient` interface as requested in #6696. This allows users to restrict which tools the model can choose from when multiple tools are available. ## Changes ### Core Interface - Core Interface: Added `tool_choice: Tool | Literal["…

Excerpt (first 300 characters) — the full description is on GitHub.

This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.

Flight timeline

  1. —committedcopilot-swe-agent[bot]
  2. —committedcopilot-swe-agent[bot]
  3. —reviewed
  4. —committedcopilot-swe-agent[bot]
  5. —committedcopilot-swe-agent[bot]
  6. —reviewed
  7. —committedcopilot-swe-agent[bot]
  8. —committedEric Zhu
  9. —committedEric Zhu
  10. Jun 22, 2025changes requestedekzhu↗
  11. Jun 23, 2025changes requestedekzhu↗

Cite this flight: AgentRiders Flight Log, microsoft/autogen#6697, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/autogen/6697/

Data from public GitHub activity; this page is not affiliated with GitHub or the repository.