{
 "flight": {
  "id": 35602,
  "agent": "github-copilot",
  "state": "merged",
  "title": "Add `tool_choice` parameter to `ChatCompletionClient` `create` and `create_stream` methods",
  "number": 6697,
  "source": "aidev",
  "commits": 23,
  "debrief": "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.",
  "outcome": "merged_after_rework",
  "signals": [
   "aidev:Copilot"
  ],
  "index_ok": true,
  "additions": 7521,
  "closed_at": "2025-06-30T05:15:28+00:00",
  "deletions": 2226,
  "merged_at": "2025-06-30T05:15:28+00:00",
  "opened_at": "2025-06-19T03:50:03+00:00",
  "task_type": "feat",
  "body_chars": 923,
  "confidence": "dataset",
  "updated_at": "2026-11-03T21:56:21.305043+00:00",
  "enriched_at": null,
  "body_excerpt": "## Summary\n\nImplements 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.\n\n## Changes\n\n### Core Interface\n- Core Interface: Added `tool_choice: Tool | Literal[\"",
  "review_count": 5,
  "files_changed": 53,
  "hours_to_merge": 265.42,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 2,
  "og_generated_at": "2026-11-03T21:56:21.305043+00:00",
  "reviewer_excerpt": "Add unit tests for `AnthropicChatCompletionClient` and `OpenAIChatCompletionClient` to test the use of `tool_choice` parameter using mocks.",
  "review_comment_count": 3,
  "reviewer_excerpt_url": "https://github.com/microsoft/autogen/pull/6697#pullrequestreview-2948086328"
 },
 "repo": {
  "name": "autogen",
  "owner": "microsoft",
  "stars": 61748,
  "license": "CC-BY-4.0",
  "full_name": "microsoft/autogen",
  "primary_language": "Python"
 },
 "author": {
  "login": "Copilot",
  "name": null,
  "github_profile": "https://github.com/Copilot",
  "page": null
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Eric Zhu"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Eric Zhu"
  },
  {
   "at": "2025-06-22T07:31:56+00:00",
   "url": "https://github.com/microsoft/autogen/pull/6697#pullrequestreview-2948086328",
   "kind": "changes_requested",
   "actor_login": "ekzhu"
  },
  {
   "at": "2025-06-23T13:05:53+00:00",
   "url": "https://github.com/microsoft/autogen/pull/6697#pullrequestreview-2950035270",
   "kind": "changes_requested",
   "actor_login": "ekzhu"
  }
 ],
 "related": [
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix OpenAI UnprocessableEntityError when AssistantAgent makes multiple tool calls",
   "number": 6799,
   "outcome": "merged_after_rework",
   "index_ok": true,
   "additions": 18966,
   "deletions": 2084,
   "merged_at": "2025-07-20T07:30:42+00:00",
   "opened_at": "2025-07-11T11:40:11+00:00",
   "task_type": "fix",
   "files_changed": 127,
   "hours_to_merge": 211.84
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix JSON serialization of team state by handling datetime objects in message dump",
   "number": 6797,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 224,
   "deletions": 75,
   "merged_at": "2025-07-15T02:05:53+00:00",
   "opened_at": "2025-07-11T11:29:04+00:00",
   "task_type": "fix",
   "files_changed": 10,
   "hours_to_merge": 86.61
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix GraphFlowManager termination to prevent _StopAgent from polluting conversation context",
   "number": 6752,
   "outcome": "merged_after_rework",
   "index_ok": true,
   "additions": 80,
   "deletions": 97,
   "merged_at": "2025-07-06T07:57:03+00:00",
   "opened_at": "2025-07-06T06:56:32+00:00",
   "task_type": "fix",
   "files_changed": 3,
   "hours_to_merge": 1.01
  }
 ],
 "pr_url": "https://github.com/microsoft/autogen/pull/6697",
 "page": "https://agentriders.com/logs/microsoft/autogen/6697/"
}