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.
Examples
open allclose allBasic Examples (1)
Retrieve a template for a tool to send email:
Apply the template to create an LLMTool:
Scope (5)
Use an LLM with a tool from the repository:
Configure a tool by applying the template to parameters:
Get a template for a tool with selected values preset:
Retrieve a tool using a ResourceObject:
Get a template for a tool for finding resource functions:
See the output of the tool. This text is provided to the LLM when the tool is called:
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