represents a tool request made by an LLM.
LLMToolRequest["tool",{"name1""val1","name2""val2",…}]
represents a request to "tool" with the specified parameter values.
LLMToolRequest["tool",params,str]
annotates a request with the request string.
LLMToolRequest
represents a tool request made by an LLM.
LLMToolRequest["tool",{"name1""val1","name2""val2",…}]
represents a request to "tool" with the specified parameter values.
LLMToolRequest["tool",params,str]
annotates a request with the request string.
Details
- LLMToolRequest is typically used to represent a request for external computations or information made by an LLM.
- Properties of an LLMToolRequest can be accessed with LLMToolRequest[…][prop].
- The following properties are supported:
-
"Name" requested tool name "ParameterValues" parameter values "RequestString" request string - GenerateLLMToolResponse returns the response to an LLMToolRequest according to one or more LLMTool objects and formats them as LLMToolResponse objects.
Examples
Basic Examples (2)
Create a representation of a tool request:
request = LLMToolRequest["countcharacter", {"string" -> "how many characters in this?"}]GenerateLLMToolResponse[LLMTool["countcharacter", "string", StringLength[#string]&], request]Call an LLM with access to a tool and return the requests it made:
LLMSynthesize["Use the tool to write a few sentences about Chicago.", {"CompletionText", "ToolRequests"}, LLMEvaluator -> <|"Tools" -> LLMTool["cityPopulationFinder", "city" -> "City", #city["Population"]&]|>]Related Guides
History
Introduced in 2023 (13.3)
Text
Wolfram Research (2023), LLMToolRequest, Wolfram Language function, https://reference.wolfram.com/language/ref/LLMToolRequest.html.
CMS
Wolfram Language. 2023. "LLMToolRequest." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LLMToolRequest.html.
APA
Wolfram Language. (2023). LLMToolRequest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LLMToolRequest.html
BibTeX
@misc{reference.wolfram_2026_llmtoolrequest, author="Wolfram Research", title="{LLMToolRequest}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/LLMToolRequest.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_llmtoolrequest, organization={Wolfram Research}, title={LLMToolRequest}, year={2023}, url={https://reference.wolfram.com/language/ref/LLMToolRequest.html}, note=[Accessed: 12-June-2026]}