Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 17cdeb7

Browse files
authored
minor fix: remove redundant code from OpenAIFunctionsAgent (langchain-ai#11245)
minor fix: remove redundant code from OpenAIFunctionsAgent (langchain-ai#11245)
1 parent 5e5039d commit 17cdeb7

File tree

1 file changed

+1
-1
lines changed
  • libs/langchain/langchain/agents/openai_functions_agent

1 file changed

+1
-1
lines changed

libs/langchain/langchain/agents/openai_functions_agent/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class OpenAIFunctionsAgent(BaseSingleActionAgent):
5050

5151
def get_allowed_tools(self) -> List[str]:
5252
"""Get allowed tools."""
53-
return list([t.name for t in self.tools])
53+
return [t.name for t in self.tools]
5454

5555
@root_validator
5656
def validate_llm(cls, values: dict) -> dict:

0 commit comments

Comments
 (0)