fixed looping bug
This commit is contained in:
parent
e331c7fbce
commit
657ad98e75
1 changed files with 2 additions and 1 deletions
|
|
@ -415,10 +415,11 @@ class AiCallLooper:
|
||||||
# STEP 5: GET CONTEXTS (merge OK, parse failed = cut JSON)
|
# STEP 5: GET CONTEXTS (merge OK, parse failed = cut JSON)
|
||||||
# Use candidateJson for context extraction
|
# Use candidateJson for context extraction
|
||||||
contexts = getContexts(candidateJson)
|
contexts = getContexts(candidateJson)
|
||||||
|
overlapInfo = "(empty=complete)" if contexts.overlapContext == "" else f"({len(contexts.overlapContext)} chars)"
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Iteration {iteration}: getContexts() -> "
|
f"Iteration {iteration}: getContexts() -> "
|
||||||
f"jsonParsingSuccess={contexts.jsonParsingSuccess}, "
|
f"jsonParsingSuccess={contexts.jsonParsingSuccess}, "
|
||||||
f"overlapContext={'\"\"' if not contexts.overlapContext else f'({len(contexts.overlapContext)} chars)'}"
|
f"overlapContext={overlapInfo}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# STEP 6: DECIDE based on jsonParsingSuccess and overlapContext
|
# STEP 6: DECIDE based on jsonParsingSuccess and overlapContext
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue