correction des pb de space : le spaceId est maintenant dans l'url uniquement
This commit is contained in:
1 parent
c52460bac0
commit
0bb8d1cb46
41 files changed
+1463
-121
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type Agent struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
TeamID string `db:"team_id" json:"teamId"`
|
||||
Name string `db:"name" json:"name"`
|
||||
SystemPrompt string `db:"system_prompt" json:"systemPrompt"`
|
||||
DefaultProviderID string `db:"def_provider_id" json:"defaultProviderId"`
|
||||
DefaultModelID string `db:"def_model_id" json:"defaultModelId"`
|
||||
ToolsPolicy string `db:"tools_policy" json:"toolsPolicy"`
|
||||
SubAgents bool `db:"sub_agents" json:"subAgents"`
|
||||
LoopStrategy string `db:"loop_strategy" json:"loopStrategy"`
|
||||
MaxIterations string `db:"max_iterations" json:"maxIterations"`
|
||||
StoppingCriteria string `db:"stopping_criteria" json:"stoppingCriteria"`
|
||||
DateCreated time.Time `db:"_date_created" json:"_date_created"`
|
||||
DateUpdated *time.Time `db:"_date_updated" json:"_date_updated"`
|
||||
VersionId string `db:"_version" json:"_version"`
|
||||
}
|
||||
|
||||
type AgentRepository interface {
|
||||
ListAgents(userID string, teamID string) ([]*Agent, error)
|
||||
GetAgent(userID string, teamID string, id string) (*Agent, error)
|
||||
CreateAgent(userID string, agent *Agent) (*Agent, error)
|
||||
UpdateAgent(userID string, agent *Agent) (*Agent, error)
|
||||
DeleteAgent(userID string, teamID string, id string) error
|
||||
}
|
||||
@@ -1,6 +1,12 @@
|
||||
package domain
|
||||
|
||||
type Item struct {
|
||||
ID string `json:"id"`
|
||||
Text string `json:"text"`
|
||||
Value string `json:"value"`
|
||||
Label string `json:"label"`
|
||||
}
|
||||
|
||||
type ComplexItem struct {
|
||||
Value string `json:"value"`
|
||||
Label string `json:"label"`
|
||||
Group string `json:"group"`
|
||||
}
|
||||
Reference in new issue
Block a user