mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 15:17:26 +08:00
lint
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user