Tool Combination
Combine multiple tools and function calls within a single prompt to enable the LLM to solve complex tasks requiring diverse capabilities.
When to use
When a user request requires multiple distinct actions or information sources that cannot be fulfilled by a single tool call.
How to apply
Define a set of tools that the LLM can access, each with a clear function signature.
Present the LLM with a user query that inherently requires multiple steps or types of information.
Allow the LLM to orchestrate the calls to these tools, potentially in sequence or in parallel, to fulfill the request.
Glossary
- Tool
- An external capability or service that an LLM can invoke to perform specific actions or retrieve information, such as searching the web, sending emails, or querying a database.
- Function Call
- The mechanism by which an LLM requests to use a defined tool, specifying the tool's name and the necessary arguments for its execution.
- Function Signature
- A formal description of a function or tool, including its name, a description of what it does, and the parameters it accepts, along with their types and descriptions.
- Set of Tools
- A collection of multiple distinct tools that an LLM has been made aware of and can choose to use based on the user's request.
