skillmanage

package
v0.1.21 Latest Latest
Warning

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

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

Documentation

Overview

Package skillmanage exposes SkillStore mutations as a runtime tool.

Index

Constants

View Source
const (
	ToolNameSkillManage = "skill_manage"
)

Variables

This section is empty.

Functions

func Register

func Register(registry *tools.Registry) error

Register adds the skill_manage tool to the runtime registry.

func RegisterWithMutation added in v0.1.17

func RegisterWithMutation(
	registry *tools.Registry,
	onMutation func(context.Context, skillstore.MutationKind, string, string),
) error

RegisterWithMutation adds skill_manage with an instance-scoped callback.

Types

type Tool

type Tool struct {
	tools.BaseTool
	// contains filtered or unexported fields
}

Tool lets the agent create and update procedural skills.

func NewTool

func NewTool() (*Tool, error)

NewTool creates skill_manage with the default Leros skills store.

func NewToolWithMutation added in v0.1.17

func NewToolWithMutation(onMutation func(context.Context, skillstore.MutationKind, string, string)) (*Tool, error)

NewToolWithMutation creates skill_manage with an instance-scoped mutation callback.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, raw json.RawMessage) (string, error)

Execute performs the requested skill management action.

func (*Tool) Validate

func (t *Tool) Validate(raw json.RawMessage) error

Validate checks skill_manage input before execution.

Jump to

Keyboard shortcuts

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