GenerateLLMToolResponse
GenerateLLMToolResponse[tool,req]
gives the LLMToolResponse generated by executing tool on the LLMToolRequest req.
GenerateLLMToolResponse[{tool1,tool2,…},req]
picks a tool based on req.
GenerateLLMToolResponse[config,req]
uses the tools from an LLMConfiguration.
Details
- GenerateLLMToolResponse is typically used to compute answers to requests made by LLMs using the provided list of tools.
- The tool must be an LLMTool.
- The parameter values in req are interpreted according to the specification in tool.
- If more than one tool is provided, the request is matched to whichever tooli has a name matching the one from the request. If no tooli matches, a Failure is returned.
Examples
Basic Examples (2)
Resolve the correct tool from a list:
If no matching tool is available, GenerateLLMToolResponse fails:
Text
Wolfram Research (2023), GenerateLLMToolResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html.
CMS
Wolfram Language. 2023. "GenerateLLMToolResponse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html.
APA
Wolfram Language. (2023). GenerateLLMToolResponse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html