MCPcopy Create free account
hub / github.com/diillson/chatcli / continueWithNewAIResponse

Method continueWithNewAIResponse

cli/agent_mode.go:2993–3007  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2991}
2992
2993func (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.

Callers 3

cmdAddContextContinueMethod · 0.95
cmdContinueMethod · 0.95
cmdPreContextMethod · 0.95

Calls 4

TFunction · 0.92
AgentMaxTurnsFunction · 0.85
colorizeFunction · 0.85

Tested by

no test coverage detected