(ctx context.Context)
| 2991 | } |
| 2992 | |
| 2993 | func (a *AgentMode) continueWithNewAIResponse(ctx context.Context) { |
| 2994 | turns := AgentMaxTurns() |
| 2995 | |
| 2996 | err := a.processAIResponseAndAct(ctx, turns) |
| 2997 | // Park is success, not an error to surface to the user. |
| 2998 | if errors.Is(err, errAgentParkedRequested) { |
| 2999 | return |
| 3000 | } |
| 3001 | if err != nil { |
| 3002 | fmt.Println(colorize( |
| 3003 | i18n.T("agent.error.continuation_failed", err), |
| 3004 | ColorYellow, |
| 3005 | )) |
| 3006 | } |
| 3007 | } |
| 3008 | |
| 3009 | // helper max turns |
| 3010 | // splitToolArgsMultiline faz split de argv estilo shell, mas com suporte a multilinha. |
no test coverage detected