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

Method update_config

scrapegraphai/nodes/base_node.py:84–96  ·  view source on GitHub ↗

Updates the node_config dictionary as well as attributes with same key. Args: param (dict): The dictionary to update node_config with. overwrite (bool): Flag indicating if the values of node_config should be overwritten if their value is not None

(self, params: dict, overwrite: bool = False)

Source from the content-addressed store, hash-verified

82 pass
83
84 def update_config(self, params: dict, overwrite: bool = False):
85 """
86 Updates the node_config dictionary as well as attributes with same key.
87
88 Args:
89 param (dict): The dictionary to update node_config with.
90 overwrite (bool): Flag indicating if the values of node_config
91 should be overwritten if their value is not None.
92 """
93 for key, val in params.items():
94 if hasattr(self, key) and not overwrite:
95 continue
96 setattr(self, key, val)
97
98 def get_input_keys(self, state: dict) -> List[str]:
99 """

Callers 1

set_common_paramsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected