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

  • tool must be an LLMTool.
  • GenerateLLMToolResponse attempts to use the parameter specifications in tool to interpret the string parameters in req.
  • 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: 02-May-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: 02-May-2024 ]}