MCPcopy Index your code
hub / github.com/Integuru-AI/Integuru / add_node

Method add_node

integuru/models/DAGManager.py:12–22  ·  view source on GitHub ↗
(
        self,
        node_type: Literal["cookie", "master", "cURL", "not found"],  
        content: Optional[dict] = None,  
        dynamic_parts: Optional[List[str]] = None,
        extracted_parts: Optional[List[str]] = None,
        input_variables: Optional[Dict[str, str]] = None,
    )

Source from the content-addressed store, hash-verified

10 self.graph = nx.DiGraph()
11 self.root_id = None
12 def add_node(
13 self,
14 node_type: Literal["cookie", "master", "cURL", "not found"],
15 content: Optional[dict] = None,
16 dynamic_parts: Optional[List[str]] = None,
17 extracted_parts: Optional[List[str]] = None,
18 input_variables: Optional[Dict[str, str]] = None,
19 ):
20 node_id = str(uuid.uuid4())
21 self.graph.add_node(node_id, node_type=node_type, content=content, dynamic_parts=dynamic_parts, extracted_parts=extracted_parts, input_variables=input_variables)
22 return node_id
23
24 def update_node(
25 self,

Callers 5

url_to_curlMethod · 0.80
build_graphFunction · 0.80

Calls

no outgoing calls