🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refine code
geekanc07cf543bff0
diff --git a/metagpt/strategy/tot.py b/metagpt/strategy/tot.pyindex e67d272c7..ce94d0de1 100644--- a/metagpt/strategy/tot.py+++ b/metagpt/strategy/tot.py@@ -5,7 +5,7 @@from __future__ import annotationsimport asyncio-from typing import Any, List+from typing import Any, List, Optionalfrom pydantic import BaseModel, ConfigDict, Field@@ -33,7 +33,7 @@ Output a list of jsons following the format:class ThoughtSolverBase(BaseModel):model_config = ConfigDict(arbitrary_types_allowed=True)- thought_tree: ThoughtTree | None = None+ thought_tree: Optional[ThoughtTree] = Field(default=None)llm: BaseLLM = Field(default_factory=LLM, exclude=True)config: ThoughtSolverConfig = Field(default_factory=ThoughtSolverConfig)