Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blanche-official/blanche
/ functions
Functions
564 in github.com/blanche-official/blanche
⨍
Functions
564
◇
Types & classes
103
↳
Endpoints
7
↓ 134 callers
Method
get
(self, prompt_id: str)
blanche/llms/prompt.py:13
↓ 44 callers
Method
roles
(self, add_group_role: bool = False)
blanche/browser/node_type.py:54
↓ 30 callers
Function
extract_section
Extract content between start_marker and end_marker.
tests/llms/test_action_listing_prompt_discrepancies.py:12
↓ 22 callers
Function
_test_action_node_resolution_pipe
(url: str)
tests/integration/test_resolution.py:11
↓ 19 callers
Method
execute
( self, action_id: str, params: dict[str, str] | str | None = None, enter: boo
blanche/env.py:145
↓ 17 callers
Method
category
(self)
blanche/browser/node_type.py:324
↓ 16 callers
Method
check_sessions
Check actual number of open browser instances and contexts.
blanche/browser/pool.py:128
↓ 16 callers
Method
find
(self, id: str)
blanche/browser/node_type.py:576
↓ 15 callers
Function
format_diff_message
Creates a detailed diff message between two texts.
tests/llms/test_action_listing_prompt_discrepancies.py:25
↓ 14 callers
Method
get_browser_resource
Create and track a new browser context
blanche/browser/pool.py:208
↓ 12 callers
Function
children_roles
(a11y_node: A11yNode)
blanche/pipe/preprocessing/a11y/utils.py:4
↓ 11 callers
Method
actions
( self, status: Literal[ActionStatus, "all"] = "valid", role: Literal[ActionRole, "all
blanche/actions/space.py:81
↓ 11 callers
Method
available_browsers
(self, headless: bool | None = None)
blanche/browser/pool.py:109
↓ 11 callers
Method
forward
( self, context: Context, previous_action_list: list[Action] | None = None, mi
blanche/pipe/main.py:163
↓ 11 callers
Method
interaction_nodes
(self)
blanche/browser/context.py:15
↓ 11 callers
Method
snapshot
(self, screenshot: bool | None = None, retries: int = 5)
blanche/browser/driver.py:115
↓ 10 callers
Function
actions_from_ids
(ids: list[str])
tests/pipe/test_main.py:12
↓ 10 callers
Method
cleanup
Cleanup all browser instances
blanche/browser/pool.py:276
↓ 10 callers
Method
extract
Extract content from text based on defined tags Parameters: text: The text to extract content from fail_if_final_tag:
blanche/llms/engine.py:41
↓ 9 callers
Function
list_interactive_nodes
( ax_tree: A11yNode, parent_path: str | None = None, only_with_id: bool = False, include_id: b
blanche/pipe/preprocessing/a11y/traversal.py:63
↓ 9 callers
Method
search
(self, query: str, threshold: float = 0.60, max_results: int = 1)
blanche/actions/space.py:118
↓ 8 callers
Function
context_from_ids
(ids: list[str])
tests/pipe/test_main.py:16
↓ 8 callers
Method
forward
( action: Action, params: list[ActionParameterValue], context: Context, browse
blanche/env.py:38
↓ 8 callers
Method
has_space
(self)
blanche/browser/observation.py:35
↓ 8 callers
Method
is_special
(action_id: str)
blanche/actions/base.py:128
↓ 8 callers
Function
llm_patch_from_ids
(ids: list[str])
tests/pipe/test_main.py:40
↓ 8 callers
Function
space_to_ids
(space: ActionSpace)
tests/pipe/test_main.py:51
↓ 7 callers
Function
_compute_children_roles_count
(children: list[A11yNode])
blanche/pipe/preprocessing/a11y/utils.py:28
↓ 7 callers
Function
generate_sequential_ids
Generates sequential IDs for interactive elements in the accessibility tree using depth-first search.
blanche/pipe/preprocessing/a11y/id_generation.py:51
↓ 7 callers
Method
get_by_role
(self, role: str, name: str | None = None)
tests/mock/mock_browser.py:70
↓ 7 callers
Method
get_role_str
(self)
blanche/browser/node_type.py:571
↓ 7 callers
Method
subtree_filter
(self, ft: Callable[["BlancheNode"], bool])
blanche/browser/node_type.py:610
↓ 6 callers
Method
all
(self)
tests/mock/mock_browser.py:36
↓ 6 callers
Function
format_path_for_conflict_resolution
(node_path: list[A11yNode] | None)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:225
↓ 6 callers
Method
from_value
(value: str)
blanche/browser/node_type.py:289
↓ 6 callers
Method
list
()
blanche/actions/base.py:203
↓ 6 callers
Method
observe
Mock observe method that returns a constant observation
tests/mock/mock_env.py:29
↓ 6 callers
Function
prune_non_interesting_nodes
(node: A11yNode, config: PruningConfig)
blanche/pipe/preprocessing/a11y/pruning.py:194
↓ 6 callers
Method
release_browser_resource
(self, resource: BrowserResource)
blanche/browser/pool.py:238
↓ 6 callers
Method
search_pattern
(text: str, tag: str)
blanche/common/parser.py:94
↓ 6 callers
Function
session_response_dict
(session_id: str, close: bool = False)
tests/sdk/test_client.py:70
↓ 6 callers
Method
short_wait
(self)
blanche/browser/driver.py:94
↓ 5 callers
Method
_format_session_args
(self, data: TSessionRequestDict)
blanche/sdk/client.py:70
↓ 5 callers
Method
_request
(self, path: str, request: SessionRequest)
blanche/sdk/client.py:58
↓ 5 callers
Method
close
(self)
blanche/browser/driver.py:52
↓ 5 callers
Function
create_test_tree
Creates a test accessibility tree with nested nodes
tests/pipe/preprocessing/a11y/test_id_generation.py:10
↓ 5 callers
Function
find_all_paths_by_role_and_name
(node: A11yNode, role: str, name: str)
blanche/pipe/preprocessing/a11y/traversal.py:28
↓ 5 callers
Function
find_node_path_by_id
(node: A11yNode, blanche_id: str)
blanche/pipe/preprocessing/a11y/traversal.py:41
↓ 5 callers
Method
goto
Mock navigation action
tests/mock/mock_browser.py:137
↓ 5 callers
Method
has_data
(self)
blanche/browser/observation.py:38
↓ 5 callers
Function
parse_table_parameter
Parse a parameter string into an ActionParameter object. Args: param_string: String in format 'name: value type: value [default=valu
blanche/actions/parsing.py:203
↓ 5 callers
Function
prune_empty_links
(node: A11yNode, config: PruningConfig)
blanche/pipe/preprocessing/a11y/pruning.py:113
↓ 5 callers
Function
return_selector
(selector: str)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:398
↓ 5 callers
Method
subgraph_without
(self, actions: list[Action])
blanche/browser/context.py:62
↓ 5 callers
Function
sync_ids_between_trees
Synchronizes IDs between two accessibility trees by copying IDs from the source tree to matching nodes in the target tree.
blanche/pipe/preprocessing/a11y/id_generation.py:82
↓ 4 callers
Method
_format_observe_response
(self, response_dict: dict[str, Any])
blanche/sdk/client.py:109
↓ 4 callers
Method
_preobserve
(self, snapshot: BrowserSnapshot)
blanche/env.py:94
↓ 4 callers
Function
check_embedding_imports
()
blanche/actions/space.py:25
↓ 4 callers
Method
completion
( self, messages: list[Message], model: str, temperature: float = 0.0,
blanche/llms/engine.py:17
↓ 4 callers
Method
flatten
(self, only_interaction: bool = False)
blanche/browser/node_type.py:599
↓ 4 callers
Method
goto
(self, url: str | None)
blanche/env.py:128
↓ 4 callers
Method
is_interaction
(self)
blanche/browser/node_type.py:585
↓ 4 callers
Method
markdown_description
(self, include_ids: bool = True, include_images: bool = False)
blanche/browser/context.py:18
↓ 4 callers
Function
parse_table
Parse a table of actions into a list of PossibleAction objects. Args: table_text: The text of the table to parse. partial: W
blanche/actions/parsing.py:277
↓ 4 callers
Function
prune_text_child_in_interaction_nodes
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:135
↓ 4 callers
Function
read_file_content
(file_path: Path)
tests/llms/test_action_listing_prompt_discrepancies.py:7
↓ 4 callers
Method
scrape
( self, url: str | None = None, only_main_content: bool = True, scrape_images:
blanche/env.py:213
↓ 3 callers
Method
_close_browser
(self, browser_id: str, headless: bool, force: bool = True)
blanche/browser/pool.py:255
↓ 3 callers
Function
_start_session
(mock_post: MagicMock, client: BlancheClient, session_id: str)
tests/sdk/test_client.py:81
↓ 3 callers
Function
add_group_role
(node: A11yNode, group_role: str)
blanche/pipe/preprocessing/a11y/utils.py:11
↓ 3 callers
Method
close
(self, **data: Unpack[SessionRequestDict])
blanche/sdk/client.py:96
↓ 3 callers
Method
empty
()
blanche/browser/node_type.py:449
↓ 3 callers
Method
filter
(self, filter_str: str)
tests/mock/mock_browser.py:32
↓ 3 callers
Method
get_available_memory
Calculate total available memory for Playwright
blanche/browser/pool.py:41
↓ 3 callers
Function
get_first_parent_with_text_elements
( node: A11yNode, path: list[A11yNode], depth: int = 1, min_depth: int = 1, min_nb_text_na
blanche/pipe/preprocessing/a11y/conflict_resolution.py:47
↓ 3 callers
Function
interactive_list_to_set
(interactions: list[A11yNode], with_id: bool = False)
blanche/pipe/preprocessing/a11y/traversal.py:109
↓ 3 callers
Function
list_image_nodes
(ax_tree: A11yNode)
blanche/pipe/preprocessing/a11y/traversal.py:100
↓ 3 callers
Method
markdown
(self)
blanche/actions/base.py:84
↓ 3 callers
Method
materialize
(self, prompt_id: str, variables: dict[str, str] | None = None)
blanche/llms/prompt.py:28
↓ 3 callers
Method
should_prune
A node should be pruned if it is an image or a text node with an empty name
blanche/pipe/preprocessing/a11y/pruning.py:24
↓ 3 callers
Function
simple_processing_accessiblity_tree
(node: A11yNode, config: PruningConfig | None = None)
blanche/pipe/preprocessing/a11y/pruning.py:214
↓ 3 callers
Method
textify
(self, obs: Observation)
blanche/common/parser.py:54
↓ 3 callers
Method
trace
Log LLM usage to the database.
blanche/common/tracer.py:12
↓ 3 callers
Function
visualize_a11y_tree
( root_node: A11yNode, output_format: Literal["tree", "markdown"] = "tree", )
blanche/pipe/preprocessing/a11y/viz.py:90
↓ 2 callers
Method
__init__
( self, pipe: BaseActionListingPipe, max_tries: int = 3, )
blanche/pipe/listing.py:158
↓ 2 callers
Method
_call_llm_evaluator
(self, messages: list[dict[str, Any]])
eval/webvoyager/eval.py:29
↓ 2 callers
Method
_obslisting
( self, min_nb_actions: int | None, max_nb_actions: int, retry: int = 2, )
blanche/env.py:102
↓ 2 callers
Method
_parse_env
( self, action_id: str, params: dict[str, str] | str | None = None )
blanche/env.py:248
↓ 2 callers
Function
add_children_to_pruned_node
(node: A11yNode, children: list[A11yNode])
blanche/pipe/preprocessing/a11y/pruning.py:241
↓ 2 callers
Function
add_id
(reference_node: A11yNode)
blanche/pipe/preprocessing/a11y/id_generation.py:88
↓ 2 callers
Function
add_nodes
(nodes: list[str])
blanche/pipe/preprocessing/a11y/grouping.py:392
↓ 2 callers
Method
ask_blanche
Executes actions in the Blanche environment based on LLM decisions. This method demonstrates how to: 1. Parse LLM output int
examples/agent.py:100
↓ 2 callers
Method
back
()
blanche/actions/base.py:163
↓ 2 callers
Method
calculate_max_contexts
Calculate maximum number of contexts based on available memory
blanche/browser/pool.py:46
↓ 2 callers
Method
check_params
(self)
blanche/actions/base.py:65
↓ 2 callers
Function
clean_url
(url: str)
blanche/utils/url.py:7
↓ 2 callers
Method
completion
( self, prompt_id: str, variables: dict[str, Any] | None = None, )
tests/mock/mock_service.py:18
↓ 2 callers
Function
construct_image_url
Constructs absolute URL for image source, handling relative and absolute paths. Args: base_page_url: The URL of the page containing
blanche/utils/image.py:20
↓ 2 callers
Function
deep_copy_node
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:208
↓ 2 callers
Function
extract_selector_from_locator
(locator: Locator)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:212
next →
1–100 of 564, ranked by callers