MCPcopy Create free account

hub / github.com/blanche-official/blanche / functions

Functions564 in github.com/blanche-official/blanche

↓ 2 callersFunctionfind_node_path_by_predicate
(node: A11yNode, matching_ft: MatchingFt)
blanche/pipe/preprocessing/a11y/traversal.py:10
↓ 2 callersFunctionfind_node_path_by_role_and_name
(node: A11yNode, role: str, name: str)
blanche/pipe/preprocessing/a11y/traversal.py:21
↓ 2 callersFunctionfold_link_button
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:164
↓ 2 callersMethodformat
(node: BlancheNode, indent_level: int = 0, include_ids: bool = True, include_images: bool = False)
blanche/browser/context.py:22
↓ 2 callersMethodforward_async
(self, context: Context, scrape_images: bool = True)
blanche/pipe/data_scraping.py:240
↓ 2 callersMethodfrom_a11y_node
(node: A11yNode, path: str = "")
blanche/browser/node_type.py:560
↓ 2 callersMethodfrom_a11y_tree
(tree: A11yTree)
blanche/pipe/preprocessing/a11y/tree.py:41
↓ 2 callersFunctionget_locator_for_node_id
( page: Page, tree: A11yNode, node_id: str, conflict_resolution: bool = True )
blanche/pipe/preprocessing/a11y/conflict_resolution.py:237
↓ 2 callersMethodget_n_trials
(self, n_trials: int | None = None, nb_nodes: int = 0)
blanche/pipe/main.py:63
↓ 2 callersMethodget_prompt_variables
( self, context: Context, previous_action_list: list[Action] | None = None )
blanche/pipe/listing.py:61
↓ 2 callersFunctionget_valid_locator
(index: int, step: int = 1)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:455
↓ 2 callersMethodimage_nodes
(self)
blanche/browser/node_type.py:607
↓ 2 callersFunctionincrement_role
(role: str, count: int)
blanche/pipe/preprocessing/a11y/utils.py:31
↓ 2 callersMethodinteraction_nodes
(self, type: str = "processed", parent_path: str | None = None)
blanche/pipe/preprocessing/a11y/tree.py:70
↓ 2 callersFunctionkeep_node
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:247
↓ 2 callersMethodllm_completion
(self, prompt_id: str, variables: dict[str, Any])
blanche/pipe/listing.py:26
↓ 2 callersMethodlong_wait
(self)
blanche/browser/driver.py:87
↓ 2 callersFunctionnb_valid_groups
(node: A11yNode)
blanche/pipe/preprocessing/a11y/grouping.py:31
↓ 2 callersMethodobserve
( self, url: str | None = None, min_nb_actions: int | None = None, max_nb_acti
blanche/env.py:133
↓ 2 callersFunctionparse_action_ids
Should be able to parse action ids in the following format: - B1 or [B1] - B1-3 or [B1-3] - B1-B3 or [B1-B3] - B1, B2, B3 or [B1
blanche/actions/parsing.py:27
↓ 2 callersMethodparse_action_listing
(self, response: str)
blanche/pipe/listing.py:66
↓ 2 callersFunctionparse_action_parameters
Should be able to parse action parameters in the following format: - (parameterName1: Type1 = [value1, value2, ..., valueN], paramete
blanche/actions/parsing.py:65
↓ 2 callersMethodparse_webpage_description
(self, response: str)
blanche/pipe/listing.py:82
↓ 2 callersFunctionprune_text_field_already_contained_in_parent_name
Prune a text field if it is already contained in the parent node's name to reduce redundancy. Example: group { heading "New iPho
blanche/pipe/preprocessing/a11y/text.py:21
↓ 2 callersMethodrefresh
()
blanche/actions/base.py:179
↓ 2 callersFunctionremove_http
(href: str)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:22
↓ 2 callersMethodrun
Main execution loop that coordinates between the LLM and Blanche environment. This method shows a basic conversation flow. Consider
examples/agent.py:144
↓ 2 callersMethodscreenshot
()
blanche/actions/base.py:155
↓ 2 callersFunctionset_of_interactive_nodes
(ax_tree: A11yNode)
blanche/pipe/preprocessing/a11y/traversal.py:120
↓ 2 callersMethodshort_id
(self)
blanche/browser/node_type.py:294
↓ 2 callersFunctionsplit_id
(sub_id_part: str)
blanche/actions/parsing.py:49
↓ 2 callersMethodstep
( self, action_id: str, params: dict[str, str] | str | None = None, enter: boo
blanche/env.py:199
↓ 2 callersMethodstep
Mock step method that returns a constant observation
tests/mock/mock_env.py:34
↓ 2 callersMethodstop
Stop the playwright instance
blanche/browser/pool.py:122
↓ 2 callersMethodtextify_scrape
( self, obs: Observation, )
blanche/common/parser.py:152
↓ 2 callersMethodtextify_step
(self, obs: Observation)
blanche/common/parser.py:166
↓ 2 callersMethodwait
()
blanche/actions/base.py:187
↓ 1 callersMethod__post_init__
(self)
blanche/browser/node_type.py:553
↓ 1 callersMethod_create_browser
Get an existing browser or create a new one if needed
blanche/browser/pool.py:158
↓ 1 callersMethod_execute_special
( self, action_id: SpecialActionId, params: dict[str, str] | str | None = None, )
blanche/env.py:162
↓ 1 callersMethod_find_browser_with_space
Find a browser with available space for a new context
blanche/browser/pool.py:200
↓ 1 callersMethod_get_screenshot_matches
(self, res_files: list[str])
eval/webvoyager/eval.py:142
↓ 1 callersMethod_prepare_image_content
(self, screenshot_files: list[tuple[str, int]])
eval/webvoyager/eval.py:152
↓ 1 callersMethod_scrape_images
(self, context: Context)
blanche/pipe/data_scraping.py:206
↓ 1 callersFunction_test_execution
(test: ExecutionTest, headless: bool)
tests/actions/test_execution.py:41
↓ 1 callersFunctiona11tree_to_markdown
(node: A11yNode, heading_level: int = 1)
blanche/pipe/preprocessing/a11y/viz.py:41
↓ 1 callersFunctiona11tree_to_tree_string
( node: A11yNode, prefix: str = "", is_last: bool = True, )
blanche/pipe/preprocessing/a11y/viz.py:6
↓ 1 callersFunctionall_except
(category: NodeCategory)
tests/browser/test_node_type.py:278
↓ 1 callersMethodcalculate_max_browsers
Calculate optimal number of browser instances
blanche/browser/pool.py:53
↓ 1 callersFunctioncheck_consistency
(node: A11yNode, other_node: A11yNode, soft: bool = False)
blanche/pipe/preprocessing/a11y/validation.py:13
↓ 1 callersMethodcheck_enough_actions
( self, inodes_ids: list[str], action_list: list[Action], min_nb_actions: int
blanche/pipe/main.py:69
↓ 1 callersFunctioncheck_interactions_consistency_accross_ax_trees
( ax_tree: A11yNode, other_ax_tree: A11yNode, list_all: bool = False, soft: bool = False,
blanche/pipe/preprocessing/a11y/validation.py:28
↓ 1 callersFunctionclassify_image_element
Classify an image or SVG element. Args: locator: Playwright locator for the image/svg element Returns: tuple[ImageType, str
blanche/pipe/data_scraping.py:18
↓ 1 callersFunctionclassify_raster_image
Classify a regular image element.
blanche/pipe/data_scraping.py:77
↓ 1 callersFunctionclassify_svg
Classify an SVG element specifically.
blanche/pipe/data_scraping.py:36
↓ 1 callersMethodclose
(self)
blanche/common/resource.py:19
↓ 1 callersMethodclose
Mock browser cleanup
tests/mock/mock_browser.py:121
↓ 1 callersMethodcompare_with
(self, other: "BrowserSnapshot")
blanche/browser/snapshot.py:28
↓ 1 callersFunctioncomplex_processing_accessiblity_tree
(node: A11yNode, config: PruningConfig | None = None)
blanche/pipe/preprocessing/a11y/pruning.py:237
↓ 1 callersMethodcompute_attributes
( self, node: BlancheNode, snapshot: BrowserSnapshot, )
blanche/pipe/resolution.py:42
↓ 1 callersFunctioncompute_children_roles
(node: A11yNode)
blanche/pipe/preprocessing/a11y/utils.py:52
↓ 1 callersFunctioncompute_children_roles_count
(node: A11yNode)
blanche/pipe/preprocessing/a11y/utils.py:23
↓ 1 callersFunctioncompute_only_text_roles
(node: A11yNode)
blanche/pipe/preprocessing/a11y/text.py:10
↓ 1 callersFunctioncompute_playwright_code
( action: ExecutableAction, )
blanche/actions/code.py:83
↓ 1 callersFunctionconcat_text
(children: list[A11yNode])
blanche/pipe/preprocessing/a11y/grouping.py:98
↓ 1 callersMethodembed_actions
(self, actions: list[Action])
blanche/actions/space.py:195
↓ 1 callersMethodembed_query
(self, query: str)
blanche/actions/space.py:202
↓ 1 callersMethodembedding_description
(self)
blanche/actions/base.py:87
↓ 1 callersMethodencode_image
(self, image_name: str)
eval/webvoyager/eval.py:138
↓ 1 callersMethodexclude_actions_with_invalid_category
(action: Action)
blanche/pipe/filtering.py:26
↓ 1 callersMethodexclude_actions_with_invalid_description
(action: Action)
blanche/pipe/filtering.py:30
↓ 1 callersMethodexclude_actions_with_invalid_params
(action: Action)
blanche/pipe/filtering.py:22
↓ 1 callersMethodexecute_action
Execute action in async mode
blanche/browser/driver.py:169
↓ 1 callersFunctionfind_all_matching_subtrees_with_parents
(node: A11yNode, role: str, name: str | None = None)
blanche/pipe/preprocessing/a11y/traversal.py:48
↓ 1 callersFunctionfind_common_ancestor
(locator1: Locator, locator2: Locator)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:475
↓ 1 callersFunctionfind_neighbors_with_valid_locators
()
blanche/pipe/preprocessing/a11y/conflict_resolution.py:451
↓ 1 callersMethodfind_node_path_by_id
(self, id: str, type: str = "processed")
blanche/pipe/preprocessing/a11y/tree.py:92
↓ 1 callersFunctionflatten_interactions
(children: list[A11yNode])
blanche/pipe/preprocessing/a11y/grouping.py:200
↓ 1 callersFunctionflatten_node
Flatten a node with children into a list of terminal nodes.
blanche/pipe/preprocessing/a11y/traversal.py:125
↓ 1 callersFunctionflatten_text
(node: A11yNode)
blanche/pipe/preprocessing/a11y/grouping.py:99
↓ 1 callersFunctionfold_paragraph_single_text_node
Fold a paragraph node with a single text node into a text node. Example: paragraph { text "Take a closer look at" } Sho
blanche/pipe/preprocessing/a11y/text.py:63
↓ 1 callersFunctionfold_single_child
(child: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:293
↓ 1 callersMethodforward
()
blanche/actions/base.py:171
↓ 1 callersMethodforward
( self, action: Action, params_values: list[ActionParameterValue], context: Co
blanche/pipe/resolution.py:20
↓ 1 callersMethodforward
( self, context: Context, **param: Unpack[ScrapeRequestDict], )
blanche/pipe/data_scraping.py:168
↓ 1 callersMethodforward
( self, context: Context, previous_action_list: list[Action] | None = None, mi
blanche/pipe/main.py:19
↓ 1 callersMethodforward_incremental
( self, context: Context, previous_action_list: list[Action], )
blanche/pipe/listing.py:116
↓ 1 callersMethodforward_unfiltered
( self, context: Context, previous_action_list: list[Action] | None = None, n_
blanche/pipe/main.py:113
↓ 1 callersMethodfrom_data
(data: DataSpace | None)
blanche/sdk/types.py:202
↓ 1 callersMethodfrom_obs
( obs: Observation, session: SessionResponse, )
blanche/sdk/types.py:231
↓ 1 callersMethodfrom_snapshot
( snapshot: BrowserSnapshot, space: ActionSpace | None = None, data: DataSpace | None = None )
blanche/browser/observation.py:49
↓ 1 callersMethodfrom_space
(space: ActionSpace | None)
blanche/sdk/types.py:177
↓ 1 callersFunctiongenerate_playwright_code
(action: ExecutableAction, context: Context)
blanche/actions/code.py:6
↓ 1 callersFunctionget_action_from_node
(node: BlancheNode)
blanche/actions/code.py:16
↓ 1 callersMethodget_done_answer
(self, text: str)
blanche/common/parser.py:38
↓ 1 callersFunctionget_executor
(action: ExecutableAction)
blanche/actions/executor.py:11
↓ 1 callersFunctionget_group_func
(group_type: NodeCategory)
blanche/pipe/preprocessing/a11y/grouping.py:14
↓ 1 callersFunctionget_html_selector
Convert a Playwright locator to its XPath representation, prioritizing IDs and full element paths. Args: locator: Playwright Loc
blanche/pipe/preprocessing/a11y/conflict_resolution.py:363
↓ 1 callersFunctionget_image_src
(locator: Locator)
blanche/pipe/data_scraping.py:139
↓ 1 callersFunctionget_locator_for_a11y_path
( page: Page, node: A11yNode, node_path: list[A11yNode], conflict_resolution: bool = True )
blanche/pipe/preprocessing/a11y/conflict_resolution.py:247
← previousnext →101–200 of 564, ranked by callers