skilltoolset

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package skilltoolset provides a toolset that lets an agent discover and use skills: folders of instructions and resources that extend its capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source skill.Source
	// Optional name of the toolset. If empty, default name will be used.
	Name string
	// Optional system instruction. If empty, default instruction will be used.
	SystemInstruction string
}

Config holds the configuration for creating a Skill Toolset.

type SkillToolset

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

SkillToolset provides a toolset for skills.

func New

func New(ctx context.Context, cfg Config) (*SkillToolset, error)

New creates a new Skill Toolset based on the provided configuration.

func (*SkillToolset) Name

func (ts *SkillToolset) Name() string

Name implements tool.Toolset. Returns the name of the toolset.

func (*SkillToolset) ProcessRequest

func (ts *SkillToolset) ProcessRequest(ctx agent.Context, req *model.LLMRequest) error

ProcessRequest implements toolinternal.RequestProcessor. It attaches the list of available skills and the system instruction explaining to the agent what it can do with these skills.

func (*SkillToolset) Tools

func (ts *SkillToolset) Tools(ctx agent.ReadonlyContext) ([]tool.Tool, error)

Tools implements tool.Toolset. It returns a list of tools agent can use to interact with skills.

Directories

Path Synopsis
internal
skilltool
Package skilltool provides the standard tools for the skill toolset.
Package skilltool provides the standard tools for the skill toolset.
Package skill provides structs and functions for working with agent skills.
Package skill provides structs and functions for working with agent skills.