File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from langchain .agents import BaseSingleActionAgent
88from langchain .callbacks .base import BaseCallbackManager
9- from langchain .callbacks .manager import Callbacks
9+ from langchain .callbacks .manager import Callbacks # type: ignore
1010from langchain .chat_models .openai import ChatOpenAI
1111from langchain .prompts .chat import (
1212 BaseMessagePromptTemplate ,
1313 ChatPromptTemplate ,
1414 HumanMessagePromptTemplate ,
1515 MessagesPlaceholder ,
1616)
17+ from langchain .pydantic_v1 import root_validator
1718from langchain .schema import (
1819 AgentAction ,
1920 AgentFinish ,
2930)
3031from langchain .tools import BaseTool
3132from langchain .tools .convert_to_openai import format_tool_to_openai_function
32- from pydantic import root_validator
3333
3434
3535@dataclass
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def _run_handler(self, code: str):
240240 "got installed now. Please try again."
241241 )
242242 else :
243- # TODO: preanalyze error to optimize next code generation
243+ # TODO: pre-analyze error to optimize next code generation
244244 pass
245245 if self .verbose :
246246 print ("Error:" , output .content )
@@ -287,7 +287,7 @@ async def _arun_handler(self, code: str):
287287 "got installed now. Please try again."
288288 )
289289 else :
290- # TODO: preanalyze error to optimize next code generation
290+ # TODO: pre-analyze error to optimize next code generation
291291 pass
292292 if self .verbose :
293293 print ("Error:" , output .content )
You can’t perform that action at this time.
0 commit comments