Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Workaround OpenAI assistant's RunCreationOption's tools override - #6512

#6512
Merged
stephentoub merged 1 commit into
dotnet:maindotnet/extensions:mainfrom
stephentoub:assistanttoolsmergestephentoub/extensions:assistanttoolsmergeCopy head branch name to clipboard
Jun 12, 2025
Merged

Workaround OpenAI assistant's RunCreationOption's tools override#6512
stephentoub merged 1 commit into
dotnet:maindotnet/extensions:mainfrom
stephentoub:assistanttoolsmergestephentoub/extensions:assistanttoolsmergeCopy head branch name to clipboard

Conversation

@stephentoub

@stephentoub stephentoub commented Jun 11, 2025

Copy link
Copy Markdown
Member

In OpenAIAssistantChatClient, as part of providing ChatOptions.Tools to the service, the only API available to do so is ToolsOverride, which ends up replacing rather than augmenting any tools defined at the assistant level. To work around that, this changes the implementation to retrieve the assistant's tools and send them as part of the override, effectively implementing a merge rather than override.

Microsoft Reviewers: Open in CodeFlow

In OpenAIAssistantChatClient, as part of providing ChatOptions.Tools to the service, the only API available to do so is ToolsOverride, which ends up replacing rather than augmenting any tools defined at the assistant level. To work around that, this changes the implementation to retrieve the assistant's tools and send them as part of the override, effectively implementing a merge rather than override.
@stephentoub
stephentoub requested a review from a team as a code owner June 11, 2025 02:38
@github-actions github-actions Bot added the area-ai Microsoft.Extensions.AI libraries label Jun 11, 2025
@stephentoub
stephentoub merged commit 4bea223 into dotnet:main Jun 12, 2025
@stephentoub
stephentoub deleted the assistanttoolsmerge branch June 12, 2025 15:27
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.