Documentation
¶
Index ¶
- type AddSkillsRequest
- type ContextResponse
- type CreateRequest
- type ListResponse
- type Service
- func (s *Service) AddSkills(ctx context.Context, id string, req AddSkillsRequest) (Subagent, error)
- func (s *Service) Create(ctx context.Context, botID string, req CreateRequest) (Subagent, error)
- func (s *Service) Delete(ctx context.Context, id string) error
- func (s *Service) Get(ctx context.Context, id string) (Subagent, error)
- func (s *Service) GetByBotAndName(ctx context.Context, botID string, name string) (Subagent, error)
- func (s *Service) GetOrCreate(ctx context.Context, botID string, req CreateRequest) (Subagent, error)
- func (s *Service) List(ctx context.Context, botID string) ([]Subagent, error)
- func (s *Service) Update(ctx context.Context, id string, req UpdateRequest) (Subagent, error)
- func (s *Service) UpdateContext(ctx context.Context, id string, req UpdateContextRequest) (Subagent, error)
- func (s *Service) UpdateSkills(ctx context.Context, id string, req UpdateSkillsRequest) (Subagent, error)
- type SkillsResponse
- type Subagent
- type UpdateContextRequest
- type UpdateRequest
- type UpdateSkillsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSkillsRequest ¶
type AddSkillsRequest struct {
Skills []string `json:"skills"`
}
type ContextResponse ¶
type CreateRequest ¶
type ListResponse ¶
type ListResponse struct {
Items []Subagent `json:"items"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetByBotAndName ¶
func (*Service) GetOrCreate ¶
func (*Service) UpdateContext ¶
func (*Service) UpdateSkills ¶
type SkillsResponse ¶
type SkillsResponse struct {
Skills []string `json:"skills"`
}
type Subagent ¶
type Subagent struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
BotID string `json:"bot_id"`
Messages []map[string]any `json:"messages"`
Metadata map[string]any `json:"metadata"`
Skills []string `json:"skills"`
Usage map[string]any `json:"usage"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Deleted bool `json:"deleted"`
DeletedAt *time.Time `json:"deleted_at,omitempty"`
}
type UpdateContextRequest ¶
type UpdateRequest ¶
type UpdateSkillsRequest ¶
type UpdateSkillsRequest struct {
Skills []string `json:"skills"`
}
Click to show internal directories.
Click to hide internal directories.