File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
from langchain .agents import BaseSingleActionAgent
8
8
from langchain .callbacks .base import BaseCallbackManager
9
- from langchain .callbacks .manager import Callbacks
9
+ from langchain .callbacks .manager import Callbacks # type: ignore
10
10
from langchain .chat_models .openai import ChatOpenAI
11
11
from langchain .prompts .chat import (
12
12
BaseMessagePromptTemplate ,
13
13
ChatPromptTemplate ,
14
14
HumanMessagePromptTemplate ,
15
15
MessagesPlaceholder ,
16
16
)
17
+ from langchain .pydantic_v1 import root_validator
17
18
from langchain .schema import (
18
19
AgentAction ,
19
20
AgentFinish ,
29
30
)
30
31
from langchain .tools import BaseTool
31
32
from langchain .tools .convert_to_openai import format_tool_to_openai_function
32
- from pydantic import root_validator
33
33
34
34
35
35
@dataclass
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def _run_handler(self, code: str):
240
240
"got installed now. Please try again."
241
241
)
242
242
else :
243
- # TODO: preanalyze error to optimize next code generation
243
+ # TODO: pre-analyze error to optimize next code generation
244
244
pass
245
245
if self .verbose :
246
246
print ("Error:" , output .content )
@@ -287,7 +287,7 @@ async def _arun_handler(self, code: str):
287
287
"got installed now. Please try again."
288
288
)
289
289
else :
290
- # TODO: preanalyze error to optimize next code generation
290
+ # TODO: pre-analyze error to optimize next code generation
291
291
pass
292
292
if self .verbose :
293
293
print ("Error:" , output .content )
You can’t perform that action at this time.
0 commit comments