minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)

minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)
This commit is contained in:
Dayuan Jiang
2023-10-02 02:22:15 +09:00
committed by GitHub
parent 5e5039dbd2
commit 17cdeb72ef

View File

@@ -50,7 +50,7 @@ class OpenAIFunctionsAgent(BaseSingleActionAgent):
def get_allowed_tools(self) -> List[str]:
"""Get allowed tools."""
return list([t.name for t in self.tools])
return [t.name for t in self.tools]
@root_validator
def validate_llm(cls, values: dict) -> dict: