toolkit

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 11 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 {
	Module  string
	Name    string
	Context context.Context
	Func    ToolFunc
}

type ToolFunc

type ToolFunc = func(ctx context.Context, arg json.RawMessage) (api.UserContents, error)

type Toolkit

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

func NewToolkit

func NewToolkit(ctx context.Context, factories ...common.ModuleFactory) Toolkit

func (Toolkit) Get

func (t Toolkit) Get(name string) (Tool, bool)

func (Toolkit) Modules

func (t Toolkit) Modules() iter.Seq[common.Module]

func (Toolkit) System

func (t Toolkit) System() iter.Seq[string]

func (Toolkit) Tools

func (t Toolkit) Tools() iter.Seq[api.Tool]

func (Toolkit) Wrap

func (t Toolkit) Wrap(ctx context.Context, factories ...common.ModuleFactory) Toolkit

Jump to

Keyboard shortcuts

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