deferred

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolNameSearchTool = "search_tool"
	ToolNameAddTool    = "add_tool"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToolArgs

type AddToolArgs struct {
	Name string `json:"name" jsonschema:"The name of the tool to activate"`
}

type SearchToolArgs

type SearchToolArgs struct {
	Query string `json:"query" jsonschema:"Search query to find tools by name or description (case-insensitive)"`
}

type SearchToolResult

type SearchToolResult struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ToolSet added in v1.60.0

type ToolSet struct {
	// contains filtered or unexported fields
}

func New added in v1.60.0

func New() *ToolSet

func (*ToolSet) AddSource added in v1.60.0

func (d *ToolSet) AddSource(toolset tools.ToolSet, deferAll bool, toolNames []string)

func (*ToolSet) HasSources added in v1.60.0

func (d *ToolSet) HasSources() bool

func (*ToolSet) Instructions added in v1.60.0

func (d *ToolSet) Instructions() string

func (*ToolSet) Start added in v1.60.0

func (d *ToolSet) Start(ctx context.Context) error

func (*ToolSet) Stop added in v1.60.0

func (d *ToolSet) Stop(context.Context) error

func (*ToolSet) Tools added in v1.60.0

func (d *ToolSet) Tools(context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

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