Skip to content

Conversation

@MackinnonBuck
Copy link
Member

@MackinnonBuck MackinnonBuck commented Sep 8, 2025

Summary

This draft introduces the tool reduction feature set:

  • New abstractions (IToolReductionStrategy) for selecting a subset of tools per request.
  • Middleware (ToolReducingChatClient) that applies a configured strategy automatically.
  • An initial embedding-based implementation (EmbeddingToolReductionStrategy) as a first strategy.
  • Supporting builder extensions and tests.

All components are marked experimental and may evolve. Additional strategies can be added in follow-up work.

Next Steps

  • Additional tool reduction strategy implementations.
  • Refinements to abstractions as necessary.

Feedback welcome before expanding scope.

Fixes #6670

Microsoft Reviewers: Open in CodeFlow

@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Sep 8, 2025
@jeffhandley jeffhandley requested a review from ericstj September 30, 2025 17:22
@MackinnonBuck MackinnonBuck mentioned this pull request Oct 2, 2025
@MackinnonBuck MackinnonBuck marked this pull request as ready for review October 14, 2025 23:53
@MackinnonBuck MackinnonBuck requested a review from a team as a code owner October 14, 2025 23:54
Copilot AI review requested due to automatic review settings October 14, 2025 23:54
@MackinnonBuck MackinnonBuck requested a review from a team as a code owner October 14, 2025 23:54
This was referenced Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Middleware for tool reduction

6 participants