Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClawHubRegistry ¶ added in v0.2.9
type ClawHubRegistry struct {
// contains filtered or unexported fields
}
func NewClawHubRegistry ¶ added in v0.2.9
func NewClawHubRegistry(cfg ClawHubRegistryConfig) *ClawHubRegistry
func (*ClawHubRegistry) Install ¶ added in v0.2.9
func (c *ClawHubRegistry) Install(ctx context.Context, req SkillInstallRequest) (SkillInstallResult, error)
func (*ClawHubRegistry) Search ¶ added in v0.2.9
func (c *ClawHubRegistry) Search(ctx context.Context, query string, limit int) ([]SkillSearchResult, error)
type ClawHubRegistryConfig ¶ added in v0.2.9
type Registry ¶
type Registry struct {
WorkspaceDir string
RestrictToWorkspace bool
ExecTimeout time.Duration
// If non-empty, only these tools are exposed and executable.
// Unknown tool names are ignored.
AllowTools []string
BraveAPIKey string
WebFetchAllowedDomains []string
WebFetchBlockedDomains []string
WebFetchMaxResponse int64
WebFetchTimeout time.Duration
Outbound func(ctx context.Context, msg bus.OutboundMessage) error
Spawn func(ctx context.Context, task, label, originChannel, originChatID string) (string, error)
Cron *cron.Service
ReadSkill func(name string) (string, bool)
SkillRegistry SkillRegistry
SkillSearchDefaultLimit int
MemorySearch memory.SearchManager
// contains filtered or unexported fields
}
func (*Registry) Definitions ¶
func (r *Registry) Definitions() []llm.ToolDefinition
type SkillInstallRequest ¶ added in v0.2.9
type SkillInstallResult ¶ added in v0.2.9
type SkillRegistry ¶ added in v0.2.9
type SkillRegistry interface {
Search(ctx context.Context, query string, limit int) ([]SkillSearchResult, error)
Install(ctx context.Context, req SkillInstallRequest) (SkillInstallResult, error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.