Files
Memoh/internal/subagent/types.go
T
2026-01-31 19:58:17 +08:00

57 lines
1.6 KiB
Go

package subagent
import "time"
type Subagent struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
UserID string `json:"user_id"`
Messages []map[string]interface{} `json:"messages"`
Metadata map[string]interface{} `json:"metadata"`
Skills []string `json:"skills"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Deleted bool `json:"deleted"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
}
type CreateRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Messages []map[string]interface{} `json:"messages,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Skills []string `json:"skills,omitempty"`
}
type UpdateRequest struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
type UpdateContextRequest struct {
Messages []map[string]interface{} `json:"messages"`
}
type UpdateSkillsRequest struct {
Skills []string `json:"skills"`
}
type AddSkillsRequest struct {
Skills []string `json:"skills"`
}
type ListResponse struct {
Items []Subagent `json:"items"`
}
type ContextResponse struct {
Messages []map[string]interface{} `json:"messages"`
}
type SkillsResponse struct {
Skills []string `json:"skills"`
}