mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)
minor fix: remove redundant code from OpenAIFunctionsAgent (#11245)
This commit is contained in:
parent
5e5039dbd2
commit
17cdeb72ef
@ -50,7 +50,7 @@ class OpenAIFunctionsAgent(BaseSingleActionAgent):
|
|||||||
|
|
||||||
def get_allowed_tools(self) -> List[str]:
|
def get_allowed_tools(self) -> List[str]:
|
||||||
"""Get allowed tools."""
|
"""Get allowed tools."""
|
||||||
return list([t.name for t in self.tools])
|
return [t.name for t in self.tools]
|
||||||
|
|
||||||
@root_validator
|
@root_validator
|
||||||
def validate_llm(cls, values: dict) -> dict:
|
def validate_llm(cls, values: dict) -> dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user