Documentation
¶
Index ¶
- type Installed
- type ListProvidedSkillsRequest
- type ListProvidedSkillsResponse
- type ListProvidedSkillsResponseBody
- type Origin
- type Provider
- type RenderProvidedSkillRequest
- type RenderProvidedSkillRequestBody
- type RenderProvidedSkillResponse
- type RenderRequest
- type RenderedSkill
- type Scope
- type Skill
- type SkillRuntime
- func (s *SkillRuntime) AgentSkillsRuntime() *agentskills.Runtime
- func (s *SkillRuntime) CloseSkillSession(ctx context.Context, req *spec.CloseSkillSessionRequest) (*spec.CloseSkillSessionResponse, error)
- func (s *SkillRuntime) CreateSkillSession(ctx context.Context, req *spec.CreateSkillSessionRequest) (*spec.CreateSkillSessionResponse, error)
- func (s *SkillRuntime) GetSkillsPrompt(ctx context.Context, req *spec.GetSkillsPromptRequest) (*spec.GetSkillsPromptResponse, error)
- func (s *SkillRuntime) InvokeSkillTool(ctx context.Context, req *spec.InvokeSkillToolRequest) (*spec.InvokeSkillToolResponse, error)
- func (s *SkillRuntime) ListRuntimeSkills(ctx context.Context, req *spec.ListRuntimeSkillsRequest) (*spec.ListRuntimeSkillsResponse, error)
- func (s *SkillRuntime) RemoveWorkspace(ctx context.Context, rootID artifactstore.RootID) error
- func (s *SkillRuntime) RenderSkill(ctx context.Context, req *spec.RenderSkillRequest) (*spec.RenderSkillResponse, error)
- func (s *SkillRuntime) ResyncInstalled(ctx context.Context) error
- func (s *SkillRuntime) ResyncWorkspace(ctx context.Context, rootID artifactstore.RootID) error
- func (s *SkillRuntime) RunScriptsEnabled() bool
- func (s *SkillRuntime) Store() *skillstore.SkillStore
- type SkillRuntimeOption
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installed ¶
type Installed struct {
// contains filtered or unexported fields
}
func NewInstalled ¶
func NewInstalled(value *skillstore.SkillStore, runtime *SkillRuntime) (*Installed, error)
func (*Installed) Render ¶
func (p *Installed) Render(ctx context.Context, request RenderRequest) (RenderedSkill, error)
type ListProvidedSkillsRequest ¶
type ListProvidedSkillsRequest struct {
WorkspaceRootID artifactstore.RootID `json:"workspaceRootID,omitempty"`
}
type ListProvidedSkillsResponse ¶
type ListProvidedSkillsResponse struct {
Body *ListProvidedSkillsResponseBody
}
type ListProvidedSkillsResponseBody ¶
type ListProvidedSkillsResponseBody struct {
Skills []Skill `json:"skills"`
}
type RenderProvidedSkillRequest ¶
type RenderProvidedSkillRequest struct {
Body *RenderProvidedSkillRequestBody
}
type RenderProvidedSkillRequestBody ¶
type RenderProvidedSkillRequestBody struct {
WorkspaceRootID artifactstore.RootID `json:"workspaceRootID,omitempty"`
Identity string `json:"identity" required:"true"`
Arguments map[string]string `json:"arguments,omitempty"`
}
type RenderProvidedSkillResponse ¶
type RenderProvidedSkillResponse struct {
Body *RenderedSkill
}
type RenderRequest ¶
type RenderedSkill ¶
type RenderedSkill struct {
Skill Skill `json:"skill"`
Available bool `json:"available"`
Text string `json:"text,omitempty"`
Insert agentskillsSpec.SkillInsert `json:"insert,omitempty"`
Arguments []agentskillsSpec.SkillArgument `json:"arguments,omitempty"`
AppliedArguments map[string]string `json:"appliedArguments,omitempty"`
Diagnostics []artifactstore.Diagnostic `json:"diagnostics,omitempty"`
}
type Scope ¶
type Scope struct {
WorkspaceRootID artifactstore.RootID `json:"workspaceRootID,omitempty"`
}
type Skill ¶
type Skill struct {
Identity string `json:"identity"`
Origin Origin `json:"origin"`
InstalledRef *skillstoreSpec.SkillRef `json:"installedRef,omitempty"`
WorkspaceRootID artifactstore.RootID `json:"workspaceRootID,omitempty"`
WorkspaceRecordID artifactstore.RecordID `json:"workspaceRecordID,omitempty"`
RecordRevision uint64 `json:"recordRevision,omitempty"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
Insert agentskillsSpec.SkillInsert `json:"insert"`
Arguments []agentskillsSpec.SkillArgument `json:"arguments,omitempty"`
Tags []string `json:"tags,omitempty"`
Enabled bool `json:"enabled"`
Available bool `json:"available"`
RuntimeAllowed bool `json:"runtimeAllowed"`
BuiltIn bool `json:"builtIn"`
CatalogCurrent bool `json:"catalogCurrent"`
State string `json:"state,omitempty"`
Shadowed bool `json:"shadowed"`
ShadowedBy string `json:"shadowedBy,omitempty"`
DefinitionDigest string `json:"definitionDigest,omitempty"`
SourceID artifactstore.SourceID `json:"sourceID,omitempty"`
Locator artifactstore.Locator `json:"locator,omitempty"`
Diagnostics []artifactstore.Diagnostic `json:"diagnostics,omitempty"`
CreatedAt time.Time `json:"createdAt"`
ModifiedAt time.Time `json:"modifiedAt"`
}
type SkillRuntime ¶
type SkillRuntime struct {
// contains filtered or unexported fields
}
SkillRuntime owns the in-memory Agent Skills catalog, provider lifecycle, sessions, prompt generation, rendering, and tool invocation.
func NewSkillRuntime ¶
func NewSkillRuntime( store *skillstore.SkillStore, opts ...SkillRuntimeOption, ) (*SkillRuntime, error)
func (*SkillRuntime) AgentSkillsRuntime ¶
func (s *SkillRuntime) AgentSkillsRuntime() *agentskills.Runtime
func (*SkillRuntime) CloseSkillSession ¶
func (s *SkillRuntime) CloseSkillSession( ctx context.Context, req *spec.CloseSkillSessionRequest, ) (*spec.CloseSkillSessionResponse, error)
func (*SkillRuntime) CreateSkillSession ¶
func (s *SkillRuntime) CreateSkillSession( ctx context.Context, req *spec.CreateSkillSessionRequest, ) (*spec.CreateSkillSessionResponse, error)
func (*SkillRuntime) GetSkillsPrompt ¶
func (s *SkillRuntime) GetSkillsPrompt( ctx context.Context, req *spec.GetSkillsPromptRequest, ) (*spec.GetSkillsPromptResponse, error)
func (*SkillRuntime) InvokeSkillTool ¶
func (s *SkillRuntime) InvokeSkillTool( ctx context.Context, req *spec.InvokeSkillToolRequest, ) (*spec.InvokeSkillToolResponse, error)
func (*SkillRuntime) ListRuntimeSkills ¶
func (s *SkillRuntime) ListRuntimeSkills( ctx context.Context, req *spec.ListRuntimeSkillsRequest, ) (*spec.ListRuntimeSkillsResponse, error)
func (*SkillRuntime) RemoveWorkspace ¶
func (s *SkillRuntime) RemoveWorkspace( ctx context.Context, rootID artifactstore.RootID, ) error
func (*SkillRuntime) RenderSkill ¶
func (s *SkillRuntime) RenderSkill( ctx context.Context, req *spec.RenderSkillRequest, ) (*spec.RenderSkillResponse, error)
func (*SkillRuntime) ResyncInstalled ¶
func (s *SkillRuntime) ResyncInstalled(ctx context.Context) error
ResyncInstalled updates only the installed desired partition. Runtime ownership is tracked independently from provider type because installed and Workspace filesystem skills both intentionally use provider type "fs".
func (*SkillRuntime) ResyncWorkspace ¶
func (s *SkillRuntime) ResyncWorkspace( ctx context.Context, rootID artifactstore.RootID, ) error
func (*SkillRuntime) RunScriptsEnabled ¶
func (s *SkillRuntime) RunScriptsEnabled() bool
RunScriptsEnabled reports the effective shared filesystem-provider policy. Inference composition uses this value only to decide whether skills-runscript is advertised to the model.
func (*SkillRuntime) Store ¶
func (s *SkillRuntime) Store() *skillstore.SkillStore
type SkillRuntimeOption ¶
type SkillRuntimeOption func(*skillRuntimeOptions) error
func WithRunScripts ¶
func WithRunScripts(enabled bool) SkillRuntimeOption
WithRunScripts configures the shared filesystem-provider execution policy. Workspace filesystem skills and installed filesystem skills always use this same provider and therefore this same policy.
func WithRuntime ¶
func WithRuntime(value *agentskills.Runtime) SkillRuntimeOption
func WithWorkspaceSkillAdapter ¶
func WithWorkspaceSkillAdapter( value *skilladapter.Adapter, ) SkillRuntimeOption
type Workspace ¶
type Workspace struct {
// contains filtered or unexported fields
}
func NewWorkspace ¶
func NewWorkspace( runtime *SkillRuntime, ) (*Workspace, error)
func (*Workspace) Render ¶
func (p *Workspace) Render( ctx context.Context, request RenderRequest, ) (RenderedSkill, error)