Palantir has been granted a US patent on having a large language model (LLM) answer in a custom computer language that software then translates for other tools. The USPTO Official Gazette lists US 12,762,116 among patents issued on October 13, 2026.
The Gazette names the inventors as Matthew Hawes, Ankit Shankar and Matthew Bayer, and the assignee as Palantir Technologies Inc. The USPTO record is for application 18/674,672, filed May 24, 2024.
The application was published in 2024 as US20240403290A1. It says LLMs can be told to answer in precise, machine-readable formats but often make errors. The reason it gives is that such formats can differ sharply from natural language. It adds that errors become more likely as prompts and responses grow more complex.
The approach works in four steps. A user types a question in plain language. The system sends the LLM a prompt with the question, the format of a custom language and a list of available software tools. The LLM answers in that custom language, and a parser converts the answer into a query in a tool's own language.
Claim 1 protects that system under specific conditions:
- The format must include an example grammatical structure in the custom language.
- Arguments in the custom language are described in natural language.
- The tools must use a second language with a different format.
- The custom format must cause the LLM to answer with higher token density, meaning more content per token than an answer in the tool's format.
The parser identifies a tool, "a type of an element in the response", and a first query for that tool. The system then generates a second query in the tool's language and sends it to the tool.
The 2024 application says token density gains "can be as high as 2×, 5×, 10×, 50×, and sometimes even over 100×", depending on the prompt. It also says the custom language "can reduce the number of interactions with the LLM that are required".
Claim 11 is the matching method claim. Claim 16, a separate independent claim, covers a feedback loop. When the system detects a mistake in an answer, or is told of one, it automatically updates the custom language's format to make that mistake less likely. Claim 17 names one such mistake: an answer that fails to refer to a computer-based tool.
The patent text does not name a Palantir product. In our view, the invention fits a layer that turns plain-English questions into structured queries for an LLM agent that calls software tools. Foundry News recently covered a related Palantir application on deciding when an LLM's tool calls run automatically.
We think the patent shows Palantir treating the language an LLM answers in as something engineers can tune for cost and accuracy. Builders and competitors working on LLM tool use should watch for further Palantir filings that extend this approach.
