| 270 | } |
| 271 | |
| 272 | func getCopilotTimeoutValue(workflowData *WorkflowData) string { |
| 273 | timeoutValue := strconv.Itoa(int(constants.DefaultAgenticWorkflowTimeout / time.Minute)) |
| 274 | if workflowData.TimeoutMinutes == "" { |
| 275 | return timeoutValue |
| 276 | } |
| 277 | rawTimeoutValue := strings.TrimSpace(workflowData.TimeoutMinutes) |
| 278 | if after, ok := strings.CutPrefix(rawTimeoutValue, "timeout-minutes:"); ok { |
| 279 | rawTimeoutValue = strings.TrimSpace(after) |
| 280 | } |
| 281 | if rawTimeoutValue != "" { |
| 282 | return rawTimeoutValue |
| 283 | } |
| 284 | return timeoutValue |
| 285 | } |
| 286 | |
| 287 | func (e *CopilotEngine) resolveCopilotCommand(workflowData *WorkflowData, sandboxEnabled bool) (string, string) { |
| 288 | if workflowData.EngineConfig != nil && workflowData.EngineConfig.Command != "" { |