deferred

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 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

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

func NewDeferredToolset

func NewDeferredToolset() *Toolset

func (*Toolset) AddSource

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

func (*Toolset) HasSources

func (d *Toolset) HasSources() bool

func (*Toolset) Instructions

func (d *Toolset) Instructions() string

func (*Toolset) Start

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

func (*Toolset) Stop

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

func (*Toolset) Tools

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