tools

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Channel    string
	ChatID     string
	SessionKey string
}

type Registry

type Registry struct {
	WorkspaceDir        string
	RestrictToWorkspace bool
	ExecTimeout         time.Duration

	// If non-empty, only these tools are exposed and executable.
	// Unknown tool names are ignored.
	AllowTools []string

	BraveAPIKey  string
	Outbound     func(ctx context.Context, msg bus.OutboundMessage) error
	Spawn        func(ctx context.Context, task, label, originChannel, originChatID string) (string, error)
	Cron         *cron.Service
	ReadSkill    func(name string) (string, bool)
	MemorySearch memory.SearchManager
}

func (*Registry) Definitions

func (r *Registry) Definitions() []llm.ToolDefinition

func (*Registry) Execute

func (r *Registry) Execute(ctx context.Context, tctx Context, name string, args json.RawMessage) (string, error)

Jump to

Keyboard shortcuts

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