🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
[FIX] Error leading to infinite loop if there is no \boxed{} with BoxedStrategy (#2181)
Apokryphosx69b5710c9ae7
diff --git a/camel/verifiers/base.py b/camel/verifiers/base.pyindex fc19d5da3..5cd9038bd 100644--- a/camel/verifiers/base.py+++ b/camel/verifiers/base.py@@ -209,6 +209,20 @@ class BaseVerifier(ABC):)if not verifiable_solution:+ attempt += 1+ if attempt == self._max_retries:+ return VerificationResult(+ status=VerificationOutcome.ERROR,+ result="",+ error_message="Failed to extract verifiable solution",+ duration=time.time() - start_time,+ metadata={"attempt": attempt},+ )+ logger.warning(+ f"Failed to extract verifiable solution on attempt "+ f"{attempt}, retrying..."+ )+ await asyncio.sleep(self._retry_delay)continuetry: