Documentation
¶
Index ¶
- type DiskStorage
- func (s *DiskStorage) CommitSkill(agentName string, skillFolder string) (string, error)
- func (s *DiskStorage) CreateAgentDataDirectory(config *agent_config.AgentConfig) error
- func (s *DiskStorage) DeleteSavedSkill(agentName string, skillFolder string) error
- func (s *DiskStorage) DeleteTempSkill(agentName string, skillFolder string) error
- func (s *DiskStorage) UploadSkillToTemp(agentName string, zipData []byte, zipFileName string) (*agent_config.TempSkillUploadResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskStorage ¶
type DiskStorage struct {
Path string
}
func NewDiskStorage ¶
func NewDiskStorage(path string) *DiskStorage
func (*DiskStorage) CommitSkill ¶
func (s *DiskStorage) CommitSkill(agentName string, skillFolder string) (string, error)
CommitSkill moves a skill from temp to the permanent skills directory
func (*DiskStorage) CreateAgentDataDirectory ¶
func (s *DiskStorage) CreateAgentDataDirectory(config *agent_config.AgentConfig) error
func (*DiskStorage) DeleteSavedSkill ¶
func (s *DiskStorage) DeleteSavedSkill(agentName string, skillFolder string) error
DeleteSavedSkill removes a committed skill from the agent's skills directory
func (*DiskStorage) DeleteTempSkill ¶
func (s *DiskStorage) DeleteTempSkill(agentName string, skillFolder string) error
DeleteTempSkill removes a skill from the agent's temp directory
func (*DiskStorage) UploadSkillToTemp ¶
func (s *DiskStorage) UploadSkillToTemp(agentName string, zipData []byte, zipFileName string) (*agent_config.TempSkillUploadResponse, error)
UploadSkillToTemp extracts a skill zip file to the agent's temp directory
Click to show internal directories.
Click to hide internal directories.