MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / __init__

Method __init__

scrapegraphai/nodes/base_node.py:48–68  ·  view source on GitHub ↗
(
        self,
        node_name: str,
        node_type: str,
        input: str,
        output: List[str],
        min_input_len: int = 1,
        node_config: Optional[dict] = None,
    )

Source from the content-addressed store, hash-verified

46 """
47
48 def __init__(
49 self,
50 node_name: str,
51 node_type: str,
52 input: str,
53 output: List[str],
54 min_input_len: int = 1,
55 node_config: Optional[dict] = None,
56 ):
57 self.node_name = node_name
58 self.input = input
59 self.output = output
60 self.min_input_len = min_input_len
61 self.node_config = node_config
62 self.logger = get_logger()
63
64 if node_type not in ["node", "conditional_node"]:
65 raise ValueError(
66 f"node_type must be 'node' or 'conditional_node', got '{node_type}'"
67 )
68 self.node_type = node_type
69
70 @abstractmethod
71 def execute(self, state: dict) -> dict:

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.85

Tested by

no test coverage detected