Mistral AI patents code-block method for pausing and resuming tool calls
The US Patent and Trademark Office published patent US 12,670,045 B1, titled "Code implemented tool calls," invented by Gabriel Vergnaud and assigned to and filed by Mistral AI, both listed in Paris. The application was filed on March 4, 2026 as Appl. No. 19/557,103, and the patent covers 20 claims in total; only the first is disclosed on the published page. Claim 1 describes a method for handling tool calls made by a large language model. A server receives a user request that needs one or more tool calls executed. Instead of the model issuing a direct function call, the LLM generates a code block in a programming language that encapsulates those tool calls, and the server executes that code block inside a sandbox. When execution hits a pending tool call, the server pauses the code block, sends the pending call out to a client for execution, and waits. Once the client returns a first result, the server resumes the code block, substitutes that result into the code in place of the pending call, and continues running until it produces a second, final result, which it returns to the LLM. In effect, the patent claims a pause-and-resume control flow around LLM-generated code as the mechanism for interleaving sandboxed execution with external tool calls handled by a separate client. The published page gives only the bibliographic data and claim 1; it does not include an abstract, background section, or the remaining 19 claims, and it says nothing about whether the method is used in any shipping Mistral product, nor about licensing or litigation.
Key facts
- US patent 12,670,045 B1, "Code implemented tool calls," was filed by Mistral AI (Paris) on March 4, 2026 as Appl. No. 19/557,103, with Gabriel Vergnaud listed as inventor.
- The patent has 20 claims total; only claim 1 is disclosed on the published gazette page.
- Claim 1 covers an LLM generating a code block that encapsulates tool calls, executed by a server in a sandbox.
- The server pauses the code block on a pending tool call, sends it to a client for execution, then resumes with the client's result substituted in before returning a final result to the LLM.
- The page does not state whether the method is implemented in any Mistral product, nor does it cover licensing or industry reaction.
Why it matters
Code-block tool calling, where a model writes a small program to orchestrate several tool calls instead of issuing them one at a time, has become a common technique for building LLM agents. Mistral AI now holds a US patent on a specific version of that pattern: pausing a sandboxed code block mid-execution to hand a pending tool call to a client, then resuming with the result spliced back in. A granted patent in this area means the underlying control flow, not just a product, is now a piece of intellectual property.
Who it affects
The patent is assigned to Mistral AI and names Gabriel Vergnaud as inventor. It potentially concerns any company or developer building agent frameworks or LLM platforms that use a similar sandbox-and-pause pattern for tool execution, since the published claim describes the mechanism generically rather than tying it to a specific Mistral product.
How to use it
The published gazette page discloses bibliographic details and claim 1 only, with no abstract, pricing, or licensing terms included. Readers wanting the other 19 claims or Mistral's own account of where this is used would need to consult the full patent record, which is not part of the material published here.
How solid is it
The source is the official USPTO patent gazette page, a primary legal document giving the patent number, filing date, application number, inventor, assignee, and the verbatim text of claim 1. That much is solid. What is not verifiable from this page is deployment: nothing here confirms the method is running in a live Mistral product, and the remaining 19 claims are not shown.
Risks and caveats
A patent claim is a legal description of a method, not evidence of how the technique is currently used in practice or how broadly it will be enforced. The page gives no background section explaining the problem the patent addresses, no abstract, and no information on licensing or on whether Mistral intends to assert the patent against others building similar tool-call architectures.