toolinternal

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: 10 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 NewToolContext

func NewToolContext(ctx agent.InvocationContext, functionCallID string, actions *session.EventActions) tool.Context

Types

type FunctionTool

type FunctionTool interface {
	tool.Tool
	Declaration() *genai.FunctionDeclaration
	Run(ctx tool.Context, args any) (result map[string]any, err error)
}

type RequestProcessor

type RequestProcessor interface {
	ProcessRequest(ctx tool.Context, req *model.LLMRequest) error
}

Directories

Path Synopsis
Package tool defines internal-only interfaces and logic for tools.
Package tool defines internal-only interfaces and logic for tools.

Jump to

Keyboard shortcuts

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