static

package module
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store holds static knowledge loaded from a disk.

func LoadDir

func LoadDir(root string) (*Store, error)

LoadDir loads prompts, skills, and facts from subdirectories of the root. Expected layout: root/{prompts,skills,facts}/<name>.<ext>

Skill files may begin with a YAML front-matter block delimited by `---` lines (name, description, tools); the remainder is the skill's instructions.

func (*Store) Get

func (s *Store) Get(_ context.Context, id string) (intent.Entry, error)

func (*Store) List

func (s *Store) List(_ context.Context, filter intent.Filter) ([]intent.Entry, error)

func (*Store) Retrieve

func (s *Store) Retrieve(_ context.Context, _ intent.RetrieveQuery) ([]intent.Entry, error)

func (*Store) Skills

func (s *Store) Skills() intent.SkillRegistry

Skills returns a registry of the loaded skills for use with intent.WithSkills.

Jump to

Keyboard shortcuts

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