MCPcopy Create free account

hub / github.com/Integuru-AI/Integuru / functions

Functions48 in github.com/Integuru-AI/Integuru

↓ 11 callersMethodadd_node
( self, node_type: Literal["cookie", "master", "cURL", "not found"], content: Option
integuru/models/DAGManager.py:12
↓ 7 callersMethodadd_edge
(self, from_node_id: str, to_node_id: str)
integuru/models/DAGManager.py:58
↓ 7 callersMethodupdate_node
( self, node_id: str, **attributes: Optional[List[str]])
integuru/models/DAGManager.py:24
↓ 4 callersMethodget_instance
(cls, model: str = None)
integuru/util/LLM.py:9
↓ 4 callersMethodswitch_to_alternate_model
Returns a ChatOpenAI instance configured for o1-miniss
integuru/util/LLM.py:30
↓ 3 callersMethodto_curl_command
(self)
integuru/models/request.py:13
↓ 2 callersFunctionprint_dag
Recursively prints the DAG structure with visual connectors and cUrl.
integuru/util/print.py:11
↓ 2 callersMethodrevert_to_default_model
Set the default model to use when no specific model is requested
integuru/util/LLM.py:24
↓ 1 callersFunction_print_dag_recursive
Helper function to recursively print the DAG in reverse order.
integuru/util/print.py:351
↓ 1 callersFunctionaggregate_functions
(txt_path, output_path)
integuru/util/print.py:268
↓ 1 callersFunctionbuild_graph
(prompt, har_file_path="network_requests.har", cookie_path="cookies.json", to_generate_code=False)
integuru/graph_builder.py:22
↓ 1 callersFunctionbuild_url_to_req_res_map
Builds a dictionary mapping URLs to {'request': formatted_request, 'response': response_dict}
integuru/util/har_processing.py:115
↓ 1 callersFunctioncall_agent
( model: str, prompt: str, har_file_path: str, cookie_path: str, input_variables: dict = N
integuru/main.py:7
↓ 1 callersFunctioncli
( model, prompt, har_path, cookie_path, max_steps, input_variables, generate_code )
integuru/__main__.py:40
↓ 1 callersMethoddetect_cycles
Detects if there are cycles in the DAG managed by this class. If a cycle is found, it returns the list of nodes involved in the cycle
integuru/models/DAGManager.py:33
↓ 1 callersMethoddynamic_part_identifying_agent
Identify dynamic parts present in the cURL command
integuru/agent.py:146
↓ 1 callersMethodend_url_identify_agent
Identify the URL responsible for a specific action
integuru/agent.py:38
↓ 1 callersFunctionfind_json_path
Finds the path(s) to a given value in a JSON object. Args: json_obj (dict or list): The JSON object to search. target_value: The
integuru/util/print.py:96
↓ 1 callersMethodfind_key_by_string_in_value
(dictionary: Dict[str, Dict[str, Any]], search_string: str)
integuru/agent.py:406
↓ 1 callersFunctionformat_request
Formats a HAR request into a Request object.
integuru/util/har_processing.py:41
↓ 1 callersFunctionformat_response
Extracts and returns the content text and content type from a HAR response.
integuru/util/har_processing.py:81
↓ 1 callersFunctiongenerate_code
Generates Python code for a given node in the graph based on its attributes.
integuru/util/print.py:138
↓ 1 callersFunctiongenerate_obfuscation_map
(dynamic_parts_list: List[str])
integuru/util/print.py:316
↓ 1 callersFunctionget_har_urls
Extracts and returns a list of tuples containing method, URL, response format, and response preview from a HAR file, excluding certain file t
integuru/util/har_processing.py:132
↓ 1 callersMethodget_node
Retrieves the attributes of the specified node. :param node_id: ID of the node to retrieve. :return: Dictionary of n
integuru/models/DAGManager.py:49
↓ 1 callersFunctionget_node_label
Generates a label for a node in the graph based on its attributes.
integuru/util/print.py:406
↓ 1 callersMethodget_simplest_request
Find the index of the simplest cURL command from a list
integuru/agent.py:251
↓ 1 callersMethodinput_variables_identifying_agent
Identify input variables present in the cURL command
integuru/agent.py:76
↓ 1 callersFunctionopen_browser_and_wait
()
create_har.py:6
↓ 1 callersFunctionparse_cookie_file_to_dict
Parses a JSON cookie file and returns a dictionary of cookie data.
integuru/util/har_processing.py:216
↓ 1 callersFunctionparse_har_file
Parses the HAR file and returns a dictionary mapping Request objects to response dictionaries.
integuru/util/har_processing.py:92
↓ 1 callersFunctionprint_dag_in_reverse
Generates the order of requests to be made based on the DAG. Prints the DAG starting from source nodes and ending at sink nodes, traversing s
integuru/util/print.py:339
↓ 1 callersMethodset_default_model
Set the default model to use when no specific model is requested
integuru/util/LLM.py:18
↓ 1 callersFunctionswap_string_using_obfuscation_map
Swaps all parts in the input string that match keys in the obfuscation map with their corresponding values. Args: input_string (str): Th
integuru/util/print.py:324
↓ 1 callersMethodto_minified_curl_command
Minifies the curl command by removing referer and cookie headers. This is done to reduce LLM hallucinations.
integuru/models/request.py:42
↓ 1 callersFunctionvisualize_dag
Visualizes the DAG using Matplotlib with arrows indicating direction.
integuru/util/print.py:71
Method__init__
( self, prompt: str, har_file_path: str, cookie_path: str, )
integuru/agent.py:21
Method__init__
(self)
integuru/models/DAGManager.py:9
Method__init__
(self, method: str, url: str, headers: Dict[str, str], query_params: Optional[Dict[str, str]
integuru/models/request.py:5
Method__str__
(self)
integuru/models/DAGManager.py:61
Method__str__
(self)
integuru/models/request.py:75
Functioncheck_end_condition
(state, agent, to_generate_code)
integuru/graph_builder.py:7
Methodfind_curl_from_content
Find the cURL command that contains the dynamic parts
integuru/agent.py:292
MethodsetUp
(self)
tests/test_integration_agent.py:8
Methodtest_dynamic_part_identifying_agent
(self, mock_llm_instance)
tests/test_integration_agent.py:54
Methodtest_end_url_identify_agent
(self, mock_llm_instance)
tests/test_integration_agent.py:23
Methodtest_input_variables_identifying_agent
(self, mock_llm_instance)
tests/test_integration_agent.py:36
Methodurl_to_curl
Identify the master cURL command responsible for the action
integuru/agent.py:227