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

minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)
This commit is contained in:
Dayuan Jiang authored and GitHub committed 2023-10-01 13:22:15 -04:00
1 parent 5e5039dbd2
commit 17cdeb72ef
1 file changed
+1 -1
@@ -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: