2026-02-05 16:54:55 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Agent struct {
|
|
|
|
|
BaseModel
|
2026-02-24 18:26:02 +08:00
|
|
|
Name string `json:"name" gorm:"not null;unique"`
|
2026-03-30 14:53:05 +08:00
|
|
|
Remark string `json:"remark"`
|
2026-03-02 14:53:58 +08:00
|
|
|
AgentType string `json:"agentType" gorm:"default:openclaw"`
|
2026-02-24 18:26:02 +08:00
|
|
|
Provider string `json:"provider"`
|
|
|
|
|
Model string `json:"model"`
|
|
|
|
|
APIType string `json:"apiType"`
|
|
|
|
|
MaxTokens int `json:"maxTokens"`
|
|
|
|
|
ContextWindow int `json:"contextWindow"`
|
|
|
|
|
BaseURL string `json:"baseUrl"`
|
|
|
|
|
APIKey string `json:"apiKey"`
|
|
|
|
|
Token string `json:"token"`
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
AppInstallID uint `json:"appInstallId"`
|
2026-04-03 17:15:54 +08:00
|
|
|
WebsiteID uint `json:"websiteId"`
|
2026-02-24 18:26:02 +08:00
|
|
|
AccountID uint `json:"accountId"`
|
|
|
|
|
ConfigPath string `json:"configPath"`
|
2026-02-05 16:54:55 +08:00
|
|
|
}
|