LLMResourceTool[name]
gives the TemplateObject for the specified large language model tool.
LLMResourceTool[resource]
retrieves the TemplateObject for the specified resource.
LLMResourceTool[…,<|key1p1,key2p2,…|>]
gives the TemplateObject with slots filled in by parameters.
LLMResourceTool[…][<|key1p1,key2p2,…|>]
creates an LLMTool by applying the template to parameter data.
LLMResourceTool
LLMResourceTool[name]
gives the TemplateObject for the specified large language model tool.
LLMResourceTool[resource]
retrieves the TemplateObject for the specified resource.
LLMResourceTool[…,<|key1p1,key2p2,…|>]
gives the TemplateObject with slots filled in by parameters.
LLMResourceTool[…][<|key1p1,key2p2,…|>]
creates an LLMTool by applying the template to parameter data.
Details and Options
- LLMResourceTool retrieves prompts from the Wolfram LLM Tool Repository.
- The TemplateObject returned by LLMResourceTool creates an LLMTool when applied to parameters.
- The resource can be an LLM tool ResourceObject or a CloudObject or URL hosting an LLM tool ResourceObject.
- In LLMResourceTool["name",params], using TemplateSlot as a value will rename slots within the template.
- LLMResourceTool is commonly used within LLMConfiguration as a value for an LLMEvaluator option.
- LLMResourceTool takes the following options:
-
ResourceSystemBase Automatic the base location of the global resource system ResourceSystemPath $ResourceSystemPath path along which to search ResourceVersion Automatic version to select of a published resource
Examples
open all close allBasic Examples (1)
Retrieve a template for a tool to send email:
template = LLMResourceTool["WolframLanguageEvaluator"]Apply the template to create an LLMTool:
template[]Scope (5)
Use an LLM with a tool from the repository:
LLMSynthesize[{"How do I find the tangent plane for a function x^2-y at a specific point using a resource function", LLMPrompt["NothingElse", "Code"]}, LLMEvaluator -> <|"Tools" -> LLMResourceTool["WFRSearch"]|>]Configure a tool by applying the template to parameters:
tool = LLMResourceTool["TextRetrieval"][<|"Location" -> "Cloud"|>]Get a template for a tool with selected values preset:
LLMResourceTool["TextRetrieval", <|"Location" -> "Cloud"|>]Retrieve a tool using a ResourceObject:
LLMResourceTool[ResourceObject["LLMTool" -> "WolframLanguageEvaluator"]]Get a template for a tool for finding resource functions:
template = LLMResourceTool["WFRLookup"]tool = template[]response = GenerateLLMToolResponse[tool, LLMToolRequest["WFRLookup", {"name" -> "PolynomialHomogenize"}]]See the output of the tool. This text is provided to the LLM when the tool is called:
response["Output"]Options (3)
ResourceSystemBase (1)
Specify Wolfram repositories as the source of a published prompt:
LLMResourceTool["WebpageText", ResourceSystemBase -> "https://resources.wolframcloud.com"]ResourceSystemPath (1)
Only look for published prompts, ignoring any local or cloud-deployed content:
LLMResourceTool["TextRetrieval", ResourceSystemPath -> {URL["https://resources.wolframcloud.com"]}]Instead, only look for locally cached tools:
LLMResourceTool["WFRSearch", ResourceSystemPath -> {PersistenceLocation["Local"]}]ResourceVersion (1)
Properties & Relations (1)
Use All in LLMSynthesize to return the tool calls along with the final response:
conversation = LLMSynthesize["How do I find the tangent plane for a function x^2-y at a specific point using a resource function", All, LLMEvaluator -> <|"Tools" -> LLMResourceTool["WFRSearch"]|>];
conversation["CompletionText"]See the tool requests made by the LLM:
conversation["ToolRequests"]conversation["ToolResponses"]History
Introduced in 2024 (14.0)
Text
Wolfram Research (2024), LLMResourceTool, Wolfram Language function, https://reference.wolfram.com/language/ref/LLMResourceTool.html.
CMS
Wolfram Language. 2024. "LLMResourceTool." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LLMResourceTool.html.
APA
Wolfram Language. (2024). LLMResourceTool. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LLMResourceTool.html
BibTeX
@misc{reference.wolfram_2026_llmresourcetool, author="Wolfram Research", title="{LLMResourceTool}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/LLMResourceTool.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_llmresourcetool, organization={Wolfram Research}, title={LLMResourceTool}, year={2024}, url={https://reference.wolfram.com/language/ref/LLMResourceTool.html}, note=[Accessed: 13-June-2026]}