Skip to content

Commit 9dd2e82

Browse files
committed
2 parents dfda8b7 + 147f09a commit 9dd2e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeinterpreterapi/agents/functions_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ def get_allowed_tools(self) -> List[str]:
128128
"""Get allowed tools."""
129129
return list([t.name for t in self.tools])
130130

131-
@root_validator
131+
@root_validator(allow_reuse=True)
132132
def validate_llm(cls, values: dict) -> dict:
133133
if not isinstance(values["llm"], ChatOpenAI):
134134
raise ValueError("Only supported with ChatOpenAI models.")
135135
return values
136136

137-
@root_validator
137+
@root_validator(allow_reuse=True)
138138
def validate_prompt(cls, values: dict) -> dict:
139139
prompt: BasePromptTemplate = values["prompt"]
140140
if "agent_scratchpad" not in prompt.input_variables:

0 commit comments

Comments
 (0)