From 3390edbad5ba43831bc71260be821390b56f5ba5 Mon Sep 17 00:00:00 2001 From: bunnysayzz Date: Wed, 22 Jul 2026 01:37:25 +0530 Subject: [PATCH] fix: correct node type values in agent.py to match DAGManager definitions ## Changes\n\n1. **url_to_curl method**: Changed "master_curl" to "master" - DAGManager.NODE_TYPES only supports {"cookie", "master", "cURL"}, so "master_curl" was invalid.\n\n2. **find_curl_from_content method**: Changed "curl" to "cURL" - same mismatch, DAGManager expects capital "cURL" but lowercase "curl" was used.\n\nCloses #33 --- integuru/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integuru/agent.py b/integuru/agent.py index cb7b76a..38b9f48 100644 --- a/integuru/agent.py +++ b/integuru/agent.py @@ -234,7 +234,7 @@ def url_to_curl(self, state: AgentState) -> AgentState: master_node_id = self.curl_to_id_dict[curl] else: master_node_id = self.dag_manager.add_node( - node_type="master_curl", # Specify node type + node_type="master", # Specify node type content={ "key": request, "value": self.req_to_res_map[request] @@ -376,7 +376,7 @@ def find_curl_from_content(self, state: AgentState) -> AgentState: continue curl_node_id = self.dag_manager.add_node( - node_type="curl", # Specify node type + node_type="cURL", # Specify node type content={ "key": simplest_request, "value": self.req_to_res_map[simplest_request]