tools

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	Model        string   `yaml:"model,omitempty" json:"model,omitempty" toml:"model,omitempty"`
	Key          string   `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
	URL          string   `yaml:"url,omitempty" json:"url,omitempty" toml:"url,omitempty"`
	ReasonEffort string   `yaml:"reason,omitempty" json:"reason,omitempty" toml:"reason,omitempty"`
	Temperature  *float64 `yaml:"temperature,omitempty" json:"temperature,omitempty" toml:"temperature,omitempty"`
	SystemPrompt string   `yaml:"system,omitempty" json:"system,omitempty" toml:"system,omitempty"`
	UserTemplate string   `yaml:"user,omitempty" json:"user,omitempty" toml:"user,omitempty"`
	MCPs         []string `yaml:"mcps,omitempty" json:"mcps,omitempty" toml:"mcps,omitempty"`
}

Tool represents the configuration for a language model tool, when specified, will override global settings.

func Load

func Load(name string) (Tool, error)

func (*Tool) UserPrompt

func (tool *Tool) UserPrompt(user string) string

Jump to

Keyboard shortcuts

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