Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtifactSupport ¶
func ArtifactSupport() engine.ArtifactSupport
func DiscoveryProfile ¶
func DiscoveryProfile() engine.DiscoveryProfile
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter( query *engine.QueryService, ) (*Adapter, error)
func (*Adapter) List ¶
func (f *Adapter) List( ctx context.Context, rootID artifactstore.RootID, ) ([]WorkspaceSkill, error)
func (*Adapter) Load ¶
func (f *Adapter) Load( ctx context.Context, rootID artifactstore.RootID, recordIDs []artifactstore.RecordID, ) (SkillLoadPlan, error)
type SkillArgument ¶
type SkillDecoder ¶
type SkillDecoder struct{}
func NewSkillDecoder ¶
func NewSkillDecoder() *SkillDecoder
func (*SkillDecoder) Decode ¶
func (*SkillDecoder) Decode( _ context.Context, candidate discovery.Candidate, ) ([]discovery.Decoded, []artifactstore.Diagnostic)
func (*SkillDecoder) ID ¶
func (*SkillDecoder) ID() artifactstore.DecoderID
func (*SkillDecoder) Recognize ¶
func (*SkillDecoder) Recognize( _ context.Context, candidate discovery.Candidate, ) discovery.Recognition
type SkillLoadPlan ¶
type SkillLoadPlan struct {
RootID artifactstore.RootID `json:"rootID"`
CatalogRevision uint64 `json:"catalogRevision"`
Skills []WorkspaceSkill `json:"skills"`
Diagnostics []artifactstore.Diagnostic `json:"diagnostics,omitempty"`
}
type SkillSummary ¶
type SkillSummary struct {
SchemaVersion string `json:"schemaVersion"`
ID artifactstore.RecordID `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
Tags []string `json:"tags,omitempty"`
Insert string `json:"insert"`
Arguments []SkillArgument `json:"arguments,omitempty"`
IsEnabled bool `json:"isEnabled"`
CreatedAt time.Time `json:"createdAt"`
ModifiedAt time.Time `json:"modifiedAt"`
}
type WorkspaceSkill ¶
type WorkspaceSkill struct {
RootID artifactstore.RootID `json:"rootID"`
RecordID artifactstore.RecordID `json:"recordID"`
DefinitionDigest artifactstore.Digest `json:"definitionDigest"`
SourceID artifactstore.SourceID `json:"sourceID"`
Locator artifactstore.Locator `json:"locator"`
Skill SkillSummary `json:"skill"`
MarkdownBody string `json:"markdownBody,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.