Documentation
¶
Index ¶
- type Backend
- func (b *Backend) Enabled() bool
- func (b *Backend) Execute(ctx context.Context, tool string, args map[string]any) (any, error)
- func (b *Backend) Kind() string
- func (b *Backend) ListTools(_ context.Context) ([]model.Tool, error)
- func (b *Backend) Name() string
- func (b *Backend) RegisterHandler(name string, def ToolDef)
- func (b *Backend) SetEnabled(enabled bool)
- func (b *Backend) Start(_ context.Context) error
- func (b *Backend) Stop() error
- func (b *Backend) UnregisterHandler(name string)
- type HandlerFunc
- type ToolDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the backend.Backend interface for local tool handlers.
func (*Backend) RegisterHandler ¶
RegisterHandler registers a tool handler.
func (*Backend) SetEnabled ¶
SetEnabled enables or disables the backend.
func (*Backend) UnregisterHandler ¶
UnregisterHandler removes a tool handler.
type HandlerFunc ¶
HandlerFunc is the function signature for tool handlers.
Click to show internal directories.
Click to hide internal directories.