Documentation
¶
Overview ¶
Package tool defines internal-only interfaces and logic for tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackTool ¶
func PackTool(req *model.LLMRequest, tool Tool) error
The PackTool ensures that in case there is a usage of multiple function tools, all of them are consolidated into one genai tool that has all the function declarations provided by the tools. So, if there is already a tool with a function declaration, it appends another to it; otherwise, it creates a new genai tool.
Types ¶
type Tool ¶
type Tool interface {
Name() string
Declaration() *genai.FunctionDeclaration
}
Click to show internal directories.
Click to hide internal directories.