Skip to content

Commit

Permalink
minor fix: remove redundant code from OpenAIFunctionsAgent (langchain…
Browse files Browse the repository at this point in the history
…-ai#11245)

minor fix: remove redundant code from OpenAIFunctionsAgent (langchain-ai#11245)
  • Loading branch information
DayuanJiang authored Oct 1, 2023
1 parent 5e5039d commit 17cdeb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 17cdeb7

Please sign in to comment.