toolutils

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL