feat(captain): align scenario and tool payloads

This commit is contained in:
2026-06-05 12:05:53 +08:00
parent 41a1b0c47e
commit fc2cb12e63
13 changed files with 588 additions and 107 deletions
+2
View File
@@ -232,6 +232,8 @@ type CaptainScenario struct {
Instruction string `gorm:"type:text" json:"instruction,omitempty"`
Enabled bool `gorm:"default:true;not null;index" json:"enabled"`
Tools json.RawMessage `gorm:"type:jsonb;serializer:json" json:"tools,omitempty"` // array of tool names
Assistant CaptainAssistant `gorm:"foreignKey:AssistantID" json:"assistant,omitempty"`
}
func (CaptainScenario) TableName() string { return "captain_scenarios" }