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

minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)
pull/11270/head
Dayuan Jiang 8 months ago committed by GitHub
parent 5e5039dbd2
commit 17cdeb72ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save