MCPcopy Create free account
hub / github.com/Integuru-AI/Integuru / __init__

Method __init__

integuru/agent.py:21–36  ·  view source on GitHub ↗
(
        self,
        prompt: str,
        har_file_path: str,
        cookie_path: str,
    )

Source from the content-addressed store, hash-verified

19 INPUT_VARIABLES_KEY: str = "input_variables"
20
21 def __init__(
22 self,
23 prompt: str,
24 har_file_path: str,
25 cookie_path: str,
26 ):
27 self.prompt: str = prompt
28 self.duplicate_part_set: Set[str] = set()
29 self.global_master_node: Optional[str] = None
30 self.req_to_res_map: Dict[Request, str] = parse_har_file(har_file_path)
31 self.url_to_res_req_dict: Dict[str, Dict[str, Any]] = build_url_to_req_res_map(self.req_to_res_map)
32 self.har_urls: List[Tuple[str, str, str, str]] = get_har_urls(har_file_path)
33 self.cookie_dict: Dict[str, Dict[str, Any]] = parse_cookie_file_to_dict(cookie_path)
34 self.curl_to_id_dict: Dict[str, str] = {}
35 self.cookie_to_id_dict: Dict[str, str] = {}
36 self.dag_manager: DAGManager = DAGManager()
37
38 def end_url_identify_agent(self, state: AgentState) -> AgentState:
39 """

Callers

nothing calls this directly

Calls 5

DAGManagerClass · 0.90
parse_har_fileFunction · 0.85
build_url_to_req_res_mapFunction · 0.85
get_har_urlsFunction · 0.85

Tested by

no test coverage detected