MCPcopy Create free account

hub / github.com/Westlake-AGI-Lab/AppAgentX / functions

Functions184 in github.com/Westlake-AGI-Lab/AppAgentX

↓ 79 callersFunctionadd_log
(message)
demo.py:681
↓ 18 callersFunctionbox_area
(box)
backend/OmniParser/utils.py:176
↓ 8 callersFunctionfallback_to_react
Fall back to React mode when template execution fails Args: state: Execution state Returns: Updated execution state
deployment.py:613
↓ 6 callersFunctionbox_area
(box)
backend/OmniParser/util/box_annotator.py:165
↓ 6 callersFunctioncapture_and_parse_screen
Capture current screen and parse elements, update state Args: state: Deployment state Returns: Updated deployment state
deployment.py:151
↓ 6 callersFunctionexecute_adb
(adb_command)
tool/screen_content.py:14
↓ 5 callersFunctionfallback_to_semantic_match
Fallback to semantic matching when visual matching fails
deployment.py:361
↓ 4 callersFunctionextract_features
Extract features from images, supporting single or batch image processing. Input can be file paths or file streams. Parameters: imag
tool/img_tool.py:14
↓ 4 callersFunctionformat_file_choice
Format file information as option text
demo.py:495
↓ 4 callersFunctionget_is_overlap
(detections, text_background_x1, text_background_y1, text_background_x2, text_background_y2, image_size)
backend/OmniParser/util/box_annotator.py:195
↓ 4 callersFunctionintersection_area
(box1, box2)
backend/OmniParser/utils.py:179
↓ 4 callersFunctionis_tap_action
(normalized_start_yx, normalized_end_yx)
backend/OmniParser/util/action_matching.py:123
↓ 4 callersFunctionupdate_node_in_db
Update node properties in database Args: node_id: Node ID property_name: Property name property_value: Property value
chain_understand.py:279
↓ 3 callersFunctionIoU
(box1, box2)
backend/OmniParser/utils.py:186
↓ 3 callersFunctioncheck_ocr_box
(image_path, display_img = True, output_bb_format='xywh', goal_filtering=None, easyocr_args=None, use_paddleoc
backend/OmniParser/utils.py:496
↓ 3 callersMethodclose
(self)
data/graph_db.py:15
↓ 3 callersFunctioncreate_deployment_state
Create and initialize DeploymentState object Args: task: User input task description device: Device ID max_retries:
data/State.py:98
↓ 3 callersMethodcreate_node
Generic node creation function
data/graph_db.py:153
↓ 3 callersFunctionget_adb_devices
()
demo.py:50
↓ 3 callersMethodget_chain_start_nodes
Get all chain starting nodes (Page nodes with no incoming edges)
data/graph_db.py:318
↓ 3 callersFunctionget_som_labeled_img
ocr_bbox: list of xyxy format bbox
backend/OmniParser/utils.py:400
↓ 3 callersFunctionget_yolo_model
(model_path)
backend/OmniParser/utils.py:70
↓ 3 callersFunctionis_inside
(box1, box2)
backend/OmniParser/utils.py:196
↓ 3 callersFunctionmatch_screen_elements
Match current screen elements with elements in high-level action nodes using visual embedding comparison Args: state: Deployment sta
deployment.py:204
↓ 3 callersFunctionrefresh_task_id_from_file
(selected_file)
demo.py:578
↓ 2 callersFunction_extract_element_features
Crop elements from a page and extract features
tool/img_tool.py:338
↓ 2 callersFunction_is_non_dual_point_action
(action_type)
backend/OmniParser/util/action_matching.py:130
↓ 2 callersFunction_yx_in_bounding_boxes
Check if the (y,x) point is contained in each bounding box. Args: yx: The (y, x) coordinate in pixels of the point. bounding_boxes: A 2D in
backend/OmniParser/util/action_matching.py:60
↓ 2 callersFunctionannotate
This function annotates an image with bounding boxes and labels. Parameters: image_source (np.ndarray): The source image to be annot
backend/OmniParser/utils.py:323
↓ 2 callersFunctioncapture_and_parse_page
capture_and_parse_page Function Overview: 1. Take a screenshot of the current device interface based on the device information in St
explor_human.py:9
↓ 2 callersFunctioncheck_shortcut_associations
Check if high-level actions are associated with shortcuts Args: state: Execution state high_level_actions: List of high-leve
deployment.py:989
↓ 2 callersMethodcreate_page
Create a Page node Args: properties: Dictionary containing page_id and other attributes
data/graph_db.py:78
↓ 2 callersFunctionevaluate_shortcut_execution
Evaluate if shortcuts meet execution conditions Args: state: Execution state shortcuts: List of shortcuts Returns:
deployment.py:1036
↓ 2 callersFunctionevolve_chain_to_action
Process the chain evolution into a high-level action node. Args: start_page_id: Starting page ID Returns: Created high-level
chain_evolve.py:449
↓ 2 callersFunctionexecute_high_level_action
Execute high-level operations Args: state: Execution state shortcuts: List of shortcuts meeting execution conditions
deployment.py:1376
↓ 2 callersFunctionextract_task_description
Extract task description from the chain. Args: chain: Triplet chain Returns: Extracted task description
chain_evolve.py:169
↓ 2 callersFunctionformat_chain_operations
Format chain operations as text description. Args: chain: Triplet chain Returns: Formatted operation description text
chain_evolve.py:199
↓ 2 callersFunctiongenerate_execution_template
Generate execution template based on shortcuts Args: state: Execution state shortcuts: List of shortcuts that meet execution
deployment.py:1175
↓ 2 callersMethodget_action_by_id
Get Action node by ID Args: action_id: ID of the Action node Returns: Dict[str, Any] or None: Action node in
data/graph_db.py:450
↓ 2 callersMethodget_all_actions
Get all Action nodes from the database Returns: List[Dict[str, Any]]: List containing all Action node information
data/graph_db.py:417
↓ 2 callersMethodget_all_high_level_actions
Get all high-level action nodes from the database Returns: List[Dict[str, Any]]: List containing all high-level action node infor
data/graph_db.py:521
↓ 2 callersFunctionget_caption_model_processor
(model_name, model_name_or_path="Salesforce/blip2-opt-2.7b", device=None)
backend/OmniParser/utils.py:46
↓ 2 callersMethodget_chain_from_start
Get complete operation chain from starting node, returning triplet chain structure Args: start_page_id: ID of the starting page
data/graph_db.py:338
↓ 2 callersMethodget_element_by_id
Get Element node by ID Args: element_id: ID of the Element node Returns: Dict[str, Any] or None: Element nod
data/graph_db.py:487
↓ 2 callersFunctionget_xywh
(input)
backend/OmniParser/utils.py:479
↓ 2 callersFunctionload_image_to_base64
Convert image to base64 encoding Args: image_input: Image path string, PIL Image object, or BytesIO object Returns: str
utils.py:11
↓ 2 callersFunctionmatch_task_to_action
Match user task with high-level action nodes Args: state: Execution state task: User input task description Returns:
deployment.py:58
↓ 2 callersFunctionon_file_select
When file is selected, update file details
demo.py:554
↓ 2 callersFunctionprioritize_shortcuts
Prioritize shortcuts based on page flow Args: state: Execution state shortcuts: List of shortcuts Returns: Prio
deployment.py:1310
↓ 2 callersFunctionprocess_image
处理单个图像文件
backend/ImageEmbedding/image_embedding.py:111
↓ 2 callersFunctionrun_task
Execute a single task Args: task: User task description device: Device ID Returns: Execution result
deployment.py:932
↓ 2 callersFunctionstate2json
Export the running process to JSON
data/data_storage.py:22
↓ 2 callersFunctiontoggle_execution_buttons
(executing=True)
demo.py:1371
↓ 1 callersFunctionIoU
(box1, box2, return_max=True)
backend/OmniParser/util/box_annotator.py:175
↓ 1 callersFunction_build_distance_matrix
Build a comprehensive distance matrix
tool/img_tool.py:405
↓ 1 callersFunction_calculate_position_distance
Calculate the normalized position distance between two bounding boxes
tool/img_tool.py:449
↓ 1 callersFunction_check_drag_actions_match
Determines if two drag actions are the same.
backend/OmniParser/util/action_matching.py:165
↓ 1 callersFunction_check_tap_actions_match
Determines if two tap actions are the same.
backend/OmniParser/util/action_matching.py:134
↓ 1 callersMethod_ensure_index
Ensure the index exists, create if not
data/vector_db.py:45
↓ 1 callersFunction_resize_annotation_bounding_boxes
Resize the bounding boxes by the given fractions. Args: annotation_positions: Array of shape (N, 4), where each row represents the (y, x,
backend/OmniParser/util/action_matching.py:90
↓ 1 callersMethodadd_element_leads_to
Create Element-LEADS_TO->Page relationship
data/graph_db.py:273
↓ 1 callersMethodadd_element_to_action
Create Action-COMPOSED_OF->Element relationship
data/graph_db.py:185
↓ 1 callersMethodadd_element_to_page
Create Page-HAS_ELEMENT->Element relationship
data/graph_db.py:162
↓ 1 callersMethodannotate
Draws bounding boxes on the frame using the detections provided. Args: scene (np.ndarray): The image on which the boundi
backend/OmniParser/util/box_annotator.py:45
↓ 1 callersFunctionbuild_workflow
Build workflow state graph
deployment.py:1932
↓ 1 callersFunctionclear_all_databases
Clear all databases (Neo4j and Pinecone) Args: neo4j_uri: Neo4j database connection URI neo4j_auth: Neo4j authentication inf
utils.py:141
↓ 1 callersFunctionclear_neo4j_database
Clear all nodes and relationships in the Neo4j graph database Args: uri: Neo4j database connection URI auth: Authentication
utils.py:52
↓ 1 callersFunctionclear_vector_store
Clear vectors in the Pinecone vector database Args: api_key: Pinecone API key index_name: Index name namespace: Opti
utils.py:84
↓ 1 callersMethodcreate_action
Create an Action node (high-level/composite action) Args: properties: Dictionary containing action_id, description, element_seque
data/graph_db.py:135
↓ 1 callersFunctioncreate_action_element_relations
Create relations between high-level action and elements. Args: action_data: High-level action node data dictionary Returns:
chain_evolve.py:408
↓ 1 callersFunctioncreate_action_generation_chain
Create an LCEL chain for generating high-level action node content.
chain_evolve.py:111
↓ 1 callersFunctioncreate_action_node_in_db
Create a high-level action node in the database. Args: action_data: High-level action node data dictionary Returns: Created
chain_evolve.py:370
↓ 1 callersFunctioncreate_chain_evaluation_chain
Create an LCEL chain for evaluating whether the chain can be templated.
chain_evolve.py:60
↓ 1 callersMethodcreate_element
Create an Element node Args: properties: Dictionary containing element_id, element_type and other attributes Visual f
data/graph_db.py:105
↓ 1 callersFunctioncreate_merge_descriptions_chain
Create LCEL chain for merging page descriptions Returns: Description merging chain
chain_understand.py:115
↓ 1 callersFunctioncreate_triplet_reasoning_chain
Create LCEL chain for triplet reasoning
chain_understand.py:49
↓ 1 callersFunctionelement2vector
Process the visual features of the element and store them in the vector database Parameters: ID: str, the ID of the element in the J
data/data_storage.py:311
↓ 1 callersFunctionelement_img
Crop elements from a page and return the image byte stream. Parameters: page_path: str, image path of the page elements_json
tool/img_tool.py:198
↓ 1 callersFunctionelement_number_to_coords
Given the element_id (ID of the element), find the corresponding element's 'bbox' in the JSON file pointed to by state['current_page_json'] (
explor_human.py:80
↓ 1 callersFunctionelements_img
Batch crop multiple elements from a page and return a list of image byte streams. Parameters: page_path: str, image path of the page
tool/img_tool.py:260
↓ 1 callersFunctionevaluate_chain_templateability
Evaluate whether the chain can be templated into a high-level action. Args: chain: Triplet chain Returns: (Whether it can be
chain_evolve.py:282
↓ 1 callersFunctionexecute_element_action
Execute screen element action Args: state: Execution state element_match: Element matching result Returns: Whet
deployment.py:528
↓ 1 callersFunctionextract_element_details
Extract detailed information of all elements in the chain. Args: chain: Triplet chain Returns: Element detail text
chain_evolve.py:223
↓ 1 callersFunctionextract_reasoning_results
Extract reasoning results of all triplets in the chain. Args: chain: Triplet chain Returns: Reasoning result text
chain_evolve.py:247
↓ 1 callersFunctionformat_file_details
Format file details
demo.py:499
↓ 1 callersFunctiongenerate_action_node
Generate high-level action node content. Args: chain: Triplet chain Returns: Generated high-level action node content (dicti
chain_evolve.py:327
↓ 1 callersFunctiongenerate_short_md5
(input_string, length=8)
data/data_storage.py:14
↓ 1 callersMethodget_high_level_actions_for_task
Get high-level action nodes related to a specific task Args: task: User task description Returns: List[Dict[
data/graph_db.py:555
↓ 1 callersFunctionget_json_files
Get all JSON files and their details in the specified directory
demo.py:206
↓ 1 callersFunctionget_optimal_label_pos
check overlap of text and background detection box, and get_optimal_label_pos, pos: str, position of the text, must be one of 'top left', 't
backend/OmniParser/util/box_annotator.py:189
↓ 1 callersFunctionget_parsed_content_icon
(filtered_boxes, starting_idx, image_source, caption_model_processor, prompt=None, batch_size=32)
backend/OmniParser/utils.py:78
↓ 1 callersFunctionget_parsed_content_icon_phi3v
(filtered_boxes, ocr_bbox, image_source, caption_model_processor)
backend/OmniParser/utils.py:121
↓ 1 callersMethodget_shortcuts_for_action
Get shortcuts associated with a specific high-level action Args: action_id: High-level action ID Returns: Li
data/graph_db.py:599
↓ 1 callersFunctionget_xyxy
(input)
backend/OmniParser/utils.py:484
↓ 1 callersFunctionintersection_area
(box1, box2)
backend/OmniParser/util/box_annotator.py:168
↓ 1 callersFunctionjson2db
Chain stored logs into the database :param json_path: :return:
data/data_storage.py:127
↓ 1 callersFunctionlist_all_devices
List all devices currently connected via ADB (Android Debug Bridge). Returns: - Success: Returns a list of device IDs, each represen
tool/screen_content.py:29
↓ 1 callersFunctionmerge_node_descriptions
Merge description information of overlapping nodes in the chain Args: chain: Triplet chain merge_chain: Description merging chain
chain_understand.py:232
↓ 1 callersMethodparse
(self, image_path: str)
backend/OmniParser/omniparser.py:32
↓ 1 callersFunctionpos2id
Find matching element information from the JSON file based on coordinates. If no direct match is found, return the nearest element. Args
data/data_storage.py:61
next →1–100 of 184, ranked by callers