Documentation
¶
Overview ¶
Package compiled provides interfaces for compiled Go skills.
This package re-exports types from github.com/plexusone/omniskill/skill for backwards compatibility, adding only omniagent-specific extensions like StorageAware.
Index ¶
- func ParametersToJSONSchema(params map[string]Parameter) map[string]any
- type Parameter
- type Registry
- func (r *Registry) All() []Skill
- func (r *Registry) AllTools() []skill.Tool
- func (r *Registry) CloseAll() error
- func (r *Registry) Count() int
- func (r *Registry) FindTool(name string) (skill.Tool, Skill, bool)
- func (r *Registry) Get(name string) (Skill, bool)
- func (r *Registry) InitAll(ctx context.Context) error
- func (r *Registry) InjectStorage(storage kvs.Store)
- func (r *Registry) Register(s Skill) error
- func (r *Registry) ToolCount() int
- type Skill
- type SkillInfo
- type StorageAware
- type Tool
- type ToolHandler
- type ToolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages compiled skills.
func (*Registry) InjectStorage ¶
InjectStorage injects storage into all storage-aware skills.
type Skill ¶
type Skill interface {
// Name returns the skill identifier (e.g., "invest", "weather").
Name() string
// Description returns a human-readable description of the skill.
Description() string
// Tools returns the tools provided by this skill.
Tools() []skill.Tool
// Init initializes the skill. Called once when the agent starts.
Init(ctx context.Context) error
// Close releases resources. Called when the agent shuts down.
Close() error
}
Skill is the interface that compiled skills implement. This is compatible with skill.Skill from omniskill.
type StorageAware ¶
StorageAware is an optional interface for skills that need storage. If a skill implements this interface, the agent will inject the storage backend after creation and before Init() is called.
Click to show internal directories.
Click to hide internal directories.