Feature request: support reasoning effort in ChatMistralAI (JavaScript)

Hi everyone,

I’d like to propose exposing a typed reasoningEffort option in the JavaScript ChatMistralAI integration.
The Mistral SDK exposes this request parameter, but @langchain/mistralai 1.2.0 does not expose it through the model’s configuration.

Use Case

Applications using reasoning models need to choose how much reasoning compute the model uses for a request.
For example, an interactive application may prefer a lower effort for simple questions and a higher effort for more complex tasks.

Exposing this setting through ChatMistralAI would let applications make that choice while using LangChain’s model interface.
It would also help applications balance reasoning quality with latency and token usage.

Proposed Support

  • Expose a typed reasoningEffort option when constructing ChatMistralAI.
  • Forward the selected value to the Mistral SDK for both invocation and streaming.
  • Omit the parameter when the application does not set it, preserving the API’s default behavior.

The accepted values would depend on the selected model.
For example, Mistral Large 4 supports low, medium, and high, while other models expose different levels.

I’d be happy to contribute a PR with regression tests for the request parameters, including streaming.
Is this already planned or tracked for JavaScript, and would this approach fit the integration?

Reference: Mistral reasoning documentation.