diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-08 03:34:41 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-08 06:31:50 +0000 |
| commit | 306482ddc04c6bd6284f52727f396b19e6b8e867 (patch) | |
| tree | 6a1b2afe9b08afb915d37481b7e368294217066b /internal/task/task.go | |
| parent | 560f42ba271ffc06eae1f93bccb26593cf93b150 (diff) | |
refactor(task): transition to generic agent architecture
Diffstat (limited to 'internal/task/task.go')
| -rw-r--r-- | internal/task/task.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/task/task.go b/internal/task/task.go index f6635cc..b3e93d3 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -25,7 +25,8 @@ const ( PriorityLow Priority = "low" ) -type ClaudeConfig struct { +type AgentConfig struct { + Type string `yaml:"type" json:"type"` Model string `yaml:"model" json:"model"` ContextFiles []string `yaml:"context_files" json:"context_files"` Instructions string `yaml:"instructions" json:"instructions"` @@ -49,7 +50,7 @@ type Task struct { ParentTaskID string `yaml:"parent_task_id" json:"parent_task_id"` Name string `yaml:"name" json:"name"` Description string `yaml:"description" json:"description"` - Claude ClaudeConfig `yaml:"claude" json:"claude"` + Agent AgentConfig `yaml:"agent" json:"agent"` Timeout Duration `yaml:"timeout" json:"timeout"` Retry RetryConfig `yaml:"retry" json:"retry"` Priority Priority `yaml:"priority" json:"priority"` |
