Documentation
¶
Index ¶
- func InitSkillStoreHandlers(api huma.API, store *SkillStore)
- 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 SkillStore
- func (s *SkillStore) Close()
- func (s *SkillStore) CloseSkillSession(ctx context.Context, req *spec.CloseSkillSessionRequest) (resp *spec.CloseSkillSessionResponse, err error)
- func (s *SkillStore) CreateSkillSession(ctx context.Context, req *spec.CreateSkillSessionRequest) (*spec.CreateSkillSessionResponse, error)
- 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) GetSkillsPrompt(ctx context.Context, req *spec.GetSkillsPromptRequest) (resp *spec.GetSkillsPromptResponse, err error)
- func (s *SkillStore) InvokeSkillTool(ctx context.Context, req *spec.InvokeSkillToolRequest) (*spec.InvokeSkillToolResponse, error)
- func (s *SkillStore) ListRuntimeSkills(ctx context.Context, req *spec.ListRuntimeSkillsRequest) (resp *spec.ListRuntimeSkillsResponse, err 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) RenderSkill(ctx context.Context, req *spec.RenderSkillRequest) (*spec.RenderSkillResponse, error)
- type SkillStoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSkillStoreHandlers ¶
func InitSkillStoreHandlers(api huma.API, store *SkillStore)
InitSkillStoreHandlers registers all endpoints for skill bundles and skills.
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 SkillStore ¶
type SkillStore struct {
// contains filtered or unexported fields
}
SkillStore provides CRUD and listing for Skill bundles and Skills (single JSON file).
func NewSkillStore ¶
func NewSkillStore(baseDir string, opts ...SkillStoreOption) (*SkillStore, error)
func (*SkillStore) Close ¶
func (s *SkillStore) Close()
func (*SkillStore) CloseSkillSession ¶
func (s *SkillStore) CloseSkillSession( ctx context.Context, req *spec.CloseSkillSessionRequest, ) (resp *spec.CloseSkillSessionResponse, err error)
func (*SkillStore) CreateSkillSession ¶
func (s *SkillStore) CreateSkillSession( ctx context.Context, req *spec.CreateSkillSessionRequest, ) (*spec.CreateSkillSessionResponse, error)
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) GetSkillsPrompt ¶ added in v0.0.95
func (s *SkillStore) GetSkillsPrompt( ctx context.Context, req *spec.GetSkillsPromptRequest, ) (resp *spec.GetSkillsPromptResponse, err error)
func (*SkillStore) InvokeSkillTool ¶ added in v0.0.82
func (s *SkillStore) InvokeSkillTool( ctx context.Context, req *spec.InvokeSkillToolRequest, ) (*spec.InvokeSkillToolResponse, error)
func (*SkillStore) ListRuntimeSkills ¶
func (s *SkillStore) ListRuntimeSkills( ctx context.Context, req *spec.ListRuntimeSkillsRequest, ) (resp *spec.ListRuntimeSkillsResponse, err 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 ¶ added in v0.2.2
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) RenderSkill ¶ added in v0.2.1
func (s *SkillStore) RenderSkill( ctx context.Context, req *spec.RenderSkillRequest, ) (*spec.RenderSkillResponse, error)
type SkillStoreOption ¶
type SkillStoreOption func(*skillStoreOptions) error
func WithEmbeddedHydrateDir ¶
func WithEmbeddedHydrateDir(dir string) SkillStoreOption
func WithRuntime ¶
func WithRuntime(rt *agentskills.Runtime) SkillStoreOption
Click to show internal directories.
Click to hide internal directories.