MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ShouldCommitFinalTextAfterStreamError

Function ShouldCommitFinalTextAfterStreamError

agent/loop.go:58–63  ·  view source on GitHub ↗
(turn *ModelTurn)

Source from the content-addressed store, hash-verified

56 OutputTruncated bool
57 StreamHadError bool
58 PTLDetected bool
59 PTLErrorMsg string
60}
61
62func ShouldCommitFinalTextAfterStreamError(turn *ModelTurn) bool {
63 return turn != nil &&
64 turn.StreamHadError &&
65 len(turn.ToolCalls) == 0 &&
66 strings.TrimSpace(turn.FullText) != ""

Callers 3

queryLoopMethod · 0.85
HandleStreamEventMethod · 0.85

Calls

no outgoing calls