GenerateLLMToolResponse

This functionality requires an external account »

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)

Create a tool and a request:

Generate the tool response:

Resolve the correct tool from a list:

If no matching tool is available, GenerateLLMToolResponse fails:

Wolfram Research (2023), GenerateLLMToolResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html.

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

BibTeX

@misc{reference.wolfram_2024_generatellmtoolresponse, author="Wolfram Research", title="{GenerateLLMToolResponse}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_generatellmtoolresponse, organization={Wolfram Research}, title={GenerateLLMToolResponse}, year={2023}, url={https://reference.wolfram.com/language/ref/GenerateLLMToolResponse.html}, note=[Accessed: 21-November-2024 ]}