Skip to content

Improve tool choice - #204

Merged
juliendenize merged 8 commits into
mainfrom
update_tool_choice
Mar 24, 2026
Merged

juliendenize merged 8 commits into
mainfrom
update_tool_choice

Conversation

@juliendenize

Copy link
Copy Markdown
Collaborator

Improve tool choice support to:

  • handle required
  • handle named tool choice

This allow better OpenAI API spec support and internal usage. Would be useful for latter grammar support.

Comment thread src/mistral_common/protocol/instruct/request.py
@juliendenize
juliendenize requested a review from joa-stdn March 24, 2026 09:17

@joa-stdn joa-stdn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks so much!

@juliendenize
juliendenize merged commit d49c4c3 into main Mar 24, 2026
6 checks passed
juliendenize added a commit that referenced this pull request Mar 24, 2026
* Improve tool choice

* Apply suggestion from @juliendenize

* mypy

* mypy

* fix

* Improve tool choice typing

* Fix doctest

* Improve docstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants