lint
This commit is contained in:
parent
41f05b2e85
commit
e7b4c2f4b2
2 changed files with 4 additions and 3 deletions
|
|
@ -18,7 +18,8 @@ class AgentCreator(LangChainTypeCreator):
|
|||
self.type_dict = loading.AGENT_TO_CLASS
|
||||
# Add JsonAgent to the list of agents
|
||||
for name, agent in CUSTOM_AGENTS.items():
|
||||
self.type_dict[name] = agent
|
||||
# TODO: validate AgentType
|
||||
self.type_dict[name] = agent # type: ignore
|
||||
return self.type_dict
|
||||
|
||||
def get_signature(self, name: str) -> Optional[Dict]:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Dict, List, Optional
|
||||
from typing import Dict, List, Optional, Type
|
||||
|
||||
from langchain import prompts
|
||||
from langchain.prompts import loading
|
||||
|
|
@ -15,7 +15,7 @@ class PromptCreator(LangChainTypeCreator):
|
|||
type_name: str = "prompts"
|
||||
|
||||
@property
|
||||
def frontend_node_class(self) -> str:
|
||||
def frontend_node_class(self) -> Type[PromptFrontendNode]:
|
||||
return PromptFrontendNode
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue