(t *testing.T)
| 208 | } |
| 209 | |
| 210 | func TestTaskTool_WithOptions(t *testing.T) { |
| 211 | t.Skip("Skipping: TaskTool doesn't properly handle timeout_minutes and priority parameters") |
| 212 | tool, err := NewTaskTool(nil) |
| 213 | if err != nil { |
| 214 | t.Fatalf("Failed to create Task tool: %v", err) |
| 215 | } |
| 216 | |
| 217 | input := map[string]any{ |
| 218 | "subagent_type": "general-purpose", |
| 219 | "prompt": "Test with options", |
| 220 | "model": "gpt-4", |
| 221 | "timeout_minutes": 5, |
| 222 | "priority": 200, |
| 223 | "async": false, |
| 224 | } |
| 225 | |
| 226 | result := ExecuteToolWithInput(t, tool, input) |
| 227 | result = AssertToolSuccess(t, result) |
| 228 | |
| 229 | // 验证选项字段 |
| 230 | if result["model"].(string) != "gpt-4" { |
| 231 | t.Errorf("Expected model 'gpt-4', got %v", result["model"]) |
| 232 | } |
| 233 | |
| 234 | if result["timeout_minutes"].(int) != 5 { |
| 235 | t.Errorf("Expected timeout_minutes 5, got %v", result["timeout_minutes"]) |
| 236 | } |
| 237 | |
| 238 | if result["priority"].(int) != 200 { |
| 239 | t.Errorf("Expected priority 200, got %v", result["priority"]) |
| 240 | } |
| 241 | |
| 242 | if result["async"].(bool) != false { |
| 243 | t.Errorf("Expected async false, got %v", result["async"]) |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | func TestTaskTool_ResumeTask(t *testing.T) { |
| 248 | t.Skip("Skipping: Resume functionality requires full subagent framework integration") |
nothing calls this directly
no test coverage detected