Documentation
¶
Index ¶
- func ValidateSkill(skill *spec.Skill) error
- func ValidateSkillArtifactMetadata(name string, description string, arguments []agentskillsSpec.SkillArgument) error
- type BuiltInSkills
- func (b *BuiltInSkills) Close() error
- func (b *BuiltInSkills) GetBuiltInSkill(ctx context.Context, bundleID bundleitemutils.BundleID, slug spec.SkillSlug) (spec.Skill, error)
- func (b *BuiltInSkills) GetBuiltInSkillBundle(ctx context.Context, id bundleitemutils.BundleID) (spec.SkillBundle, error)
- func (b *BuiltInSkills) ListBuiltInSkills(ctx context.Context) (bundles map[bundleitemutils.BundleID]spec.SkillBundle, ...)
- func (b *BuiltInSkills) SetSkillBundleEnabled(ctx context.Context, id bundleitemutils.BundleID, enabled bool) (spec.SkillBundle, error)
- func (b *BuiltInSkills) SetSkillEnabled(ctx context.Context, bundleID bundleitemutils.BundleID, slug spec.SkillSlug, ...) (spec.Skill, error)
- type BuiltInSkillsOption
- type SkillSource
- type SkillStore
- func (s *SkillStore) Close()
- func (s *SkillStore) DeleteSkill(ctx context.Context, req *spec.DeleteSkillRequest) (*spec.DeleteSkillResponse, error)
- func (s *SkillStore) DeleteSkillBundle(ctx context.Context, req *spec.DeleteSkillBundleRequest) (*spec.DeleteSkillBundleResponse, error)
- func (s *SkillStore) GetSkill(ctx context.Context, req *spec.GetSkillRequest) (*spec.GetSkillResponse, error)
- func (s *SkillStore) ListSkillBundles(ctx context.Context, req *spec.ListSkillBundlesRequest) (*spec.ListSkillBundlesResponse, error)
- func (s *SkillStore) ListSkills(ctx context.Context, req *spec.ListSkillsRequest) (*spec.ListSkillsResponse, error)
- func (s *SkillStore) PatchSkill(ctx context.Context, req *spec.PatchSkillRequest) (*spec.PatchSkillResponse, error)
- func (s *SkillStore) PatchSkillBundle(ctx context.Context, req *spec.PatchSkillBundleRequest) (*spec.PatchSkillBundleResponse, error)
- func (s *SkillStore) PutSkill(ctx context.Context, req *spec.PutSkillRequest) (*spec.PutSkillResponse, error)
- func (s *SkillStore) PutSkillArtifact(ctx context.Context, req *spec.PutSkillArtifactRequest) (resp *spec.PutSkillArtifactResponse, err error)
- func (s *SkillStore) PutSkillBundle(ctx context.Context, req *spec.PutSkillBundleRequest) (*spec.PutSkillBundleResponse, error)
- func (s *SkillStore) ResolveSkillSource(value spec.Skill) (SkillSource, error)
- type SkillStoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSkill ¶
ValidateSkill applies the Skill Store's structural rules to a projected Skill. Callers retain ownership of the supplied value.
func ValidateSkillArtifactMetadata ¶
func ValidateSkillArtifactMetadata( name string, description string, arguments []agentskillsSpec.SkillArgument, ) error
ValidateSkillArtifactMetadata applies the source-package rules shared by managed Skill creation and other materialized SKILL.md workflows.
Types ¶
type BuiltInSkills ¶
type BuiltInSkills struct {
// contains filtered or unexported fields
}
func NewBuiltInSkills ¶
func NewBuiltInSkills( ctx context.Context, overlayBaseDir string, maxSnapshotAge time.Duration, opts ...BuiltInSkillsOption, ) (b *BuiltInSkills, err error)
func (*BuiltInSkills) Close ¶
func (b *BuiltInSkills) Close() error
func (*BuiltInSkills) GetBuiltInSkill ¶
func (b *BuiltInSkills) GetBuiltInSkill( ctx context.Context, bundleID bundleitemutils.BundleID, slug spec.SkillSlug, ) (spec.Skill, error)
func (*BuiltInSkills) GetBuiltInSkillBundle ¶
func (b *BuiltInSkills) GetBuiltInSkillBundle( ctx context.Context, id bundleitemutils.BundleID, ) (spec.SkillBundle, error)
func (*BuiltInSkills) ListBuiltInSkills ¶
func (b *BuiltInSkills) ListBuiltInSkills(ctx context.Context) ( bundles map[bundleitemutils.BundleID]spec.SkillBundle, skills map[bundleitemutils.BundleID]map[spec.SkillSlug]spec.Skill, err error, )
func (*BuiltInSkills) SetSkillBundleEnabled ¶
func (b *BuiltInSkills) SetSkillBundleEnabled( ctx context.Context, id bundleitemutils.BundleID, enabled bool, ) (spec.SkillBundle, error)
func (*BuiltInSkills) SetSkillEnabled ¶
type BuiltInSkillsOption ¶
type BuiltInSkillsOption func(*BuiltInSkills)
func WithBuiltInSkillsFS ¶
func WithBuiltInSkillsFS(fsys fs.FS, root string) BuiltInSkillsOption
type SkillSource ¶
SkillSource identifies a materialized source package. It is a storage/source projection, not a runtime catalog identity.
type SkillStore ¶
type SkillStore struct {
// contains filtered or unexported fields
}
SkillStore owns durable Skill management state. It has no session, prompt, catalog, provider, or Agent Skills runtime lifecycle dependency.
func NewSkillStore ¶
func NewSkillStore(baseDir string, opts ...SkillStoreOption) (*SkillStore, error)
func (*SkillStore) Close ¶
func (s *SkillStore) Close()
func (*SkillStore) DeleteSkill ¶
func (s *SkillStore) DeleteSkill( ctx context.Context, req *spec.DeleteSkillRequest, ) (*spec.DeleteSkillResponse, error)
func (*SkillStore) DeleteSkillBundle ¶
func (s *SkillStore) DeleteSkillBundle( ctx context.Context, req *spec.DeleteSkillBundleRequest, ) (*spec.DeleteSkillBundleResponse, error)
func (*SkillStore) GetSkill ¶
func (s *SkillStore) GetSkill( ctx context.Context, req *spec.GetSkillRequest, ) (*spec.GetSkillResponse, error)
func (*SkillStore) ListSkillBundles ¶
func (s *SkillStore) ListSkillBundles( ctx context.Context, req *spec.ListSkillBundlesRequest, ) (*spec.ListSkillBundlesResponse, error)
func (*SkillStore) ListSkills ¶
func (s *SkillStore) ListSkills(ctx context.Context, req *spec.ListSkillsRequest) (*spec.ListSkillsResponse, error)
func (*SkillStore) PatchSkill ¶
func (s *SkillStore) PatchSkill( ctx context.Context, req *spec.PatchSkillRequest, ) (*spec.PatchSkillResponse, error)
func (*SkillStore) PatchSkillBundle ¶
func (s *SkillStore) PatchSkillBundle( ctx context.Context, req *spec.PatchSkillBundleRequest, ) (*spec.PatchSkillBundleResponse, error)
func (*SkillStore) PutSkill ¶
func (s *SkillStore) PutSkill( ctx context.Context, req *spec.PutSkillRequest, ) (*spec.PutSkillResponse, error)
func (*SkillStore) PutSkillArtifact ¶
func (s *SkillStore) PutSkillArtifact( ctx context.Context, req *spec.PutSkillArtifactRequest, ) (resp *spec.PutSkillArtifactResponse, err error)
func (*SkillStore) PutSkillBundle ¶
func (s *SkillStore) PutSkillBundle( ctx context.Context, req *spec.PutSkillBundleRequest, ) (*spec.PutSkillBundleResponse, error)
func (*SkillStore) ResolveSkillSource ¶
func (s *SkillStore) ResolveSkillSource( value spec.Skill, ) (SkillSource, error)
ResolveSkillSource resolves an installed record into an accessible source. Built-in embedded packages are materialized and translated to filesystem sources entirely inside skillstore.
type SkillStoreOption ¶
type SkillStoreOption func(*skillStoreOptions) error
func WithEmbeddedHydrateDir ¶
func WithEmbeddedHydrateDir(dir string) SkillStoreOption