We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfda8b7 + 147f09a commit 9dd2e82Copy full SHA for 9dd2e82
codeinterpreterapi/agents/functions_agent.py
@@ -128,13 +128,13 @@ def get_allowed_tools(self) -> List[str]:
128
"""Get allowed tools."""
129
return list([t.name for t in self.tools])
130
131
- @root_validator
+ @root_validator(allow_reuse=True)
132
def validate_llm(cls, values: dict) -> dict:
133
if not isinstance(values["llm"], ChatOpenAI):
134
raise ValueError("Only supported with ChatOpenAI models.")
135
return values
136
137
138
def validate_prompt(cls, values: dict) -> dict:
139
prompt: BasePromptTemplate = values["prompt"]
140
if "agent_scratchpad" not in prompt.input_variables:
0 commit comments