MCPcopy Create free account

hub / github.com/microsoft/fara / functions

Functions650 in github.com/microsoft/fara

↓ 1 callersMethod_get_screenshot_and_user_msgs
Shared helper for screenshot lookup and user-message collection.
webeval/src/webeval/rubric_agent/data_point.py:395
↓ 1 callersMethod_group_screenshots_by_criterion
( self, relevance_scores: Dict[int, Dict], num_criteria: int )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1568
↓ 1 callersMethod_handle_new_page_safe
Safely handle new pages in single tab mode.
src/fara/browser/browser_bb.py:258
↓ 1 callersFunction_image_from_uri
Decode an image URI (only data URLs are supported) into an :class:`AGImage`.
webeval/src/webeval/benchmarks/om2w/om2w.py:25
↓ 1 callersMethod_images_are_identical
Check whether two images are perceptually identical via dhash. Returns ``(is_match, hamming_distance)``. *is_match* is ``True`` when
webeval/src/webeval/rubric_agent/verifier_agent.py:1486
↓ 1 callersMethod_init_browser_base
Initialize BrowserBase connection, defaults to chromium.
src/fara/browser/browser_bb.py:136
↓ 1 callersMethod_init_persistent_browser
Initialize persistent browser with data directory.
src/fara/browser/browser_bb.py:220
↓ 1 callersMethod_init_regular_browser
Initialize regular browser according to the specified channel.
src/fara/browser/browser_bb.py:195
↓ 1 callersMethod_invert_grouped_screenshots
( grouped: Dict[int, List[int]], )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1585
↓ 1 callersFunction_is_azure_blob_url
Check if a given path is an Azure blob URL.
webeval/scripts/eval_exp.py:34
↓ 1 callersMethod_is_reasoning_model
(description: str)
webeval/src/webeval/oai_clients/graceful_client.py:143
↓ 1 callersMethod_key
(self, text: str)
src/fara/_prompts.py:157
↓ 1 callersFunction_load_cp_types
Load the canonical critical-point taxonomy from YAML.
webeval/src/webeval/rubric_agent/critical_point_classifier.py:45
↓ 1 callersMethod_load_screenshots
Load all screenshots in chronological order with strict 1-to-1 verification.
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1363
↓ 1 callersMethod_long_press
(self, coordinate: Tuple[int, int], time: int)
src/fara/_prompts.py:163
↓ 1 callersMethod_make_model_call
Make a model call using OpenAI client
src/fara/fara_agent.py:183
↓ 1 callersMethod_normalize_batched_analysis_response
( raw: Any, criterion_indices: List[int] )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2012
↓ 1 callersFunction_normalize_screenshots
Ensure screenshots follow ``screenshot_{N}.png`` 1-based naming. Creates symlinks when originals use a different convention and returns the l
webeval/src/webeval/benchmarks/webtailbench/shared_data_adapter.py:48
↓ 1 callersMethod_open
(self, text: str)
src/fara/_prompts.py:175
↓ 1 callersMethod_outcome_verification
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2757
↓ 1 callersFunction_pool_init
(args_dict: Dict[str, Any], tasks: Dict[str, Dict[str, Any]])
webeval/scripts/verify_trajectories.py:137
↓ 1 callersFunction_postprocess_category_6_for_prompt
Replace the static action-space list in category 6 with Template vars. The .md has a concrete list of actions; the prompt needs ``$action_spa
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:188
↓ 1 callersFunction_prepare_cached_model
(model_url: str)
src/fara/vllm/az_vllm.py:128
↓ 1 callersMethod_remove_reasoning_effort_if_needed
( self, client: ChatCompletionClient, extra_create_args: Mapping[str, Any] )
webeval/src/webeval/oai_clients/graceful_client.py:146
↓ 1 callersMethod_rescore_criterion_with_screenshots
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2317
↓ 1 callersMethod_rescore_rubric_with_screenshots
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2422
↓ 1 callersFunction_resolve_live_eval_config
Resolve the ``--eval-config`` dir for the live test from env vars. ``GracefulRetryClient.from_path`` lists ``*.json`` directly under its ``--
webeval/tests/test_verify_trajectories.py:420
↓ 1 callersMethod_rubric_reality_check
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2213
↓ 1 callersFunction_run_eval_multiple_examples_with_progress_multi_proc
(examples, processes, output_folder, redo_eval, system, benchmark, callback = None, eval_only=False, max_error
webeval/src/webeval/core.py:721
↓ 1 callersFunction_run_eval_multiple_examples_with_progress_single_proc
(examples, output_folder, redo_eval, system, benchmark, callback = None, eval_only=False, max_error_task_retri
webeval/src/webeval/core.py:708
↓ 1 callersFunction_run_one
Verify one trajectory. Returns a result dict (also writes scores JSON).
webeval/scripts/verify_trajectories.py:177
↓ 1 callersFunction_run_pipeline
(inp: Dict[str, Any])
webeval/scripts/verify_trajectories.py:221
↓ 1 callersMethod_run_steps_6_7_single_instance
( self, rubric_dict: dict, evidence_by_criterion: Dict, screenshots: List,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2977
↓ 1 callersFunction_sanitize_extra_args_for_log
(extra_create_args: Mapping[str, Any])
webeval/src/webeval/oai_clients/graceful_client.py:24
↓ 1 callersMethod_score_screenshot_criterion_relevance
( self, screenshots: List[Image.Image], rubric: dict, task: str, init_
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1451
↓ 1 callersMethod_select_median_instance
( instances: List[Tuple[dict, float, dict]], )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:3063
↓ 1 callersMethod_setup_common_browser_features
Set up features common to all browser types.
src/fara/browser/browser_bb.py:231
↓ 1 callersFunction_summary_table_rows_for_categories
Filter summary table to only rows whose error code starts with categories in [start, end]. Keeps the header + separator rows.
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:87
↓ 1 callersMethod_swipe
(self, coordinate: Tuple[int, int], coordinate2: Tuple[int, int])
src/fara/_prompts.py:166
↓ 1 callersMethod_system_button
(self, button: str)
src/fara/_prompts.py:172
↓ 1 callersMethod_terminate
(self, status: str)
src/fara/_prompts.py:181
↓ 1 callersMethod_type
(self, text: str)
src/fara/_prompts.py:169
↓ 1 callersFunction_validate_classification
Validate the parsed YAML and coerce into a dataclass.
webeval/src/webeval/rubric_agent/critical_point_classifier.py:84
↓ 1 callersMethod_validate_rescore
(rescore: dict, max_points: float)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2574
↓ 1 callersMethod_validate_token_limit
(self, request_tokens: int)
webeval/src/webeval/oai_clients/graceful_client.py:155
↓ 1 callersMethod_verify_json_format_args
Verify the parameters of the function call
src/fara/qwen_helpers/base_tool.py:101
↓ 1 callersMethod_wait
(self, time: int)
src/fara/_prompts.py:178
↓ 1 callersFunctionaggregate_post_eval_errors
(folders, long_session_threshold_seconds=1800, num_actions=30)
webeval/src/webeval/post_eval_analysis.py:190
↓ 1 callersMethodall_evals
(self, task_data: Dict[str, Any], candidate: Trajectory)
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:382
↓ 1 callersFunctionauto_eval
(args, task_subset, final_predicted_labels, lock, model)
webeval/src/webeval/benchmarks/om2w/impl/src/run.py:14
↓ 1 callersFunctionauto_eval_by_gpt4v
(process_dir, openai_client, api_model, img_num)
webeval/src/webeval/benchmarks/webvoyager/gpt_eval.py:36
↓ 1 callersMethodback
(self, page: Page)
src/fara/browser/playwright_controller.py:334
↓ 1 callersMethodclick_coords
(self, page: Page, x: float, y: float)
src/fara/browser/playwright_controller.py:435
↓ 1 callersMethodclose
Close the browser and clean up resources.
src/fara/browser/browser_bb.py:320
↓ 1 callersMethodcompute_aggregate_metrics
Compute aggregate metrics (e.g. average score). Must produce a dictionary. You can override this method to compute custom me
webeval/src/webeval/benchmark.py:54
↓ 1 callersMethodcompute_aggregate_metrics_multiple_runs
Compute aggregate metrics for multiple runs.
webeval/src/webeval/benchmark.py:83
↓ 1 callersMethodcompute_aggregate_step_budget_metrics
(self, scores: List[Any])
webeval/src/webeval/benchmark.py:110
↓ 1 callersFunctioncompute_consensus_score
(accs: List[float], k: int)
webeval/src/webeval/evaluators.py:572
↓ 1 callersFunctioncompute_rephrasing_consensus_score
( scores: List[EvalResult], rephrased_to_og_map: Dict[str, str], only_og_correct: bool = False )
webeval/src/webeval/evaluators.py:584
↓ 1 callersMethodconvert_resized_coords_to_original
( self, coords: List[float], rsz_w: int, rsz_h: int, og_w: int, og_h: int )
src/fara/fara_agent.py:324
↓ 1 callersFunctioncount_web_surfer_log_entries
Count the number of WebSurferEvent log entries in web_surfer.log files and return detailed statistics about the number of steps per trajector
webeval/src/webeval/post_eval_analysis.py:649
↓ 1 callersFunctioncreate_client_from_file
( path: str, logger: Optional[logging.Logger] = None, use_responses_api: bool = False, )
webeval/src/webeval/oai_clients/create_utils.py:124
↓ 1 callersFunctioncreate_completion_client_from_env
Construct a chat completion client from a config dict. ``env`` is the same dict shape used elsewhere in webeval (with ``CHAT_COMPLETION_PROVI
webeval/src/webeval/utils.py:58
↓ 1 callersFunctiondetect_refusal_async
Use LLM to detect if the answer is a refusal to complete the task.
webeval/src/webeval/evaluators.py:477
↓ 1 callersFunctiondetect_refusals_parallel
Detect refusals in parallel for all answer texts.
webeval/src/webeval/evaluators.py:506
↓ 1 callersFunctiondict_2_str
(d: Dict[str, Any])
webeval/src/webeval/utils.py:113
↓ 1 callersMethoddownload_dataset
Fetch the WebTailBench TSVs from Hugging Face into ``data_dir``. Always pulls ``WebTailBench-v1-rubrics.tsv`` (the file with the ``pr
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:110
↓ 1 callersFunctionearliest
Return the first observation, or None if empty.
webeval/src/webeval/rubric_agent/data_point.py:218
↓ 1 callersFunctionencode_image
(image_path)
webeval/src/webeval/benchmarks/webvoyager/gpt_eval.py:31
↓ 1 callersMethodevaluate_by_rubric_evaluator
Run the multimodal rubric pipeline on a candidate Trajectory. Converts the trajectory to a DataPoint, invokes ``MMRubricAgent._genera
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:252
↓ 1 callersMethodevaluate_example
Evaluate a single example
webeval/src/webeval/benchmark.py:42
↓ 1 callersMethodevaluator
Implement the evaluator logic here
webeval/src/webeval/benchmark.py:48
↓ 1 callersMethodexec_hash
Returns a string hash of the benchmark execution configuration suitable to be a path. This is used to route results with different pa
webeval/src/webeval/benchmark.py:131
↓ 1 callersMethodexecute_action
( self, function_call: List[FunctionCall], )
src/fara/fara_agent.py:459
↓ 1 callersFunctionextract_action_timing_stats
Extract timing statistics for WebSurfer actions from log content. Returns: tuple: (avg_time_between_actions_seconds, session_dur
webeval/src/webeval/post_eval_analysis.py:58
↓ 1 callersFunctionextract_category_blockquotes
Return all blockquote content (``> ...`` lines) from a single category. Useful for nuance notes and clarifications that appear after the sub-
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:267
↓ 1 callersFunctionextract_last_error
Extract the last error from a core.log file content. Returns: tuple: (error_type, full_error_description) or (None, None) if no
webeval/src/webeval/post_eval_analysis.py:8
↓ 1 callersFunctionextract_score_from_json
Extract score from JSON content of score files. Returns: dict or int or None: For '0.8-5-3.json' files, returns a dict with score an
webeval/src/webeval/post_eval_analysis.py:108
↓ 1 callersFunctionextract_summary_table
Return the summary decision table filtered to categories [start, end]. Raw markdown, NOT Template-escaped.
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:130
↓ 1 callersFunctionextract_yaml_block
Extract and parse a YAML block from an LLM response. Searches for a fenced ``yaml`` code block, then falls back to unfenced and raw patterns.
webeval/src/webeval/rubric_agent/_yaml_utils.py:43
↓ 1 callersFunctionf1_score
(a_gold: str, a_pred: str)
webeval/src/webeval/evaluators.py:94
↓ 1 callersMethodfill_coords
( self, page: Page, x: float, y: float, value: str, press_ente
src/fara/browser/playwright_controller.py:487
↓ 1 callersFunctionfilter_no_answer_no_captcha_no_error
Returns scores that are not empty, not captcha, and not error, and score is not None.
webeval/src/webeval/evaluators.py:435
↓ 1 callersFunctionfilter_no_answer_no_error
Returns scores that are not empty, and not error, and score is not None.
webeval/src/webeval/evaluators.py:445
↓ 1 callersFunctionfind_trajectory_dirs
A trajectory dir contains web_surfer.log AND a *_final_answer.json.
webeval/scripts/verify_trajectories.py:380
↓ 1 callersFunctiongatherAllElements
* Recursively gathers elements matching specified roles from both regular DOM and Shadow DOM * @param {Array} roles - Array of role selectors to
src/fara/browser/page_script.js:109
↓ 1 callersMethodgenerate
(self, messages, max_new_tokens=512, temperature=0, model=None, **kwargs)
webeval/src/webeval/benchmarks/om2w/impl/src/utils.py:115
↓ 1 callersMethodgenerate_model_call
( self, is_first_round: bool, first_screenshot: Image.Image | None = None )
src/fara/fara_agent.py:422
↓ 1 callersFunctiongetApproximateAriaName
(element)
src/fara/browser/page_script.js:243
↓ 1 callersFunctiongetApproximateAriaRole
(element)
src/fara/browser/page_script.js:310
↓ 1 callersFunctiongetFocusedElementId
()
src/fara/browser/page_script.js:221
↓ 1 callersFunctiongetInteractiveElementsNoShaddow
()
src/fara/browser/page_script.js:43
↓ 1 callersMethodget_answer
Return an answer for the question. Should use save_answer_to_disk to save the answer.
webeval/src/webeval/basesystem.py:19
↓ 1 callersFunctionget_computer_use_system_prompt
( image, processor_im_cfg, include_input_text_key_args=False, fn_call_template="default", )
src/fara/_prompts.py:233
↓ 1 callersFunctionget_fn_call_template_mapping
Resolve a function-call template name to its actual prompt string. Uses the in-repo ``fara.qwen_helpers.fncall_prompt.NousFnCallPrompt`` temp
webeval/scripts/eval_exp.py:330
↓ 1 callersFunctionget_taxonomy_for_task_classification
Return taxonomy text for task-classification prompts (categories 7-8). Returns ``$$``-escaped text ready to embed in Template strings.
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:258
↓ 1 callersFunctionget_trimmed_url
(url, max_len)
src/fara/utils.py:5
↓ 1 callersMethodgpt_evaluator_async
(self, messages)
webeval/src/webeval/benchmarks/om2w/om2w.py:143
↓ 1 callersMethodgpt_evaluator_async
Adapted from https://github.com/MinorJerry/WebVoyager/blob/main/evaluation/auto_eval.py Evaluates the candidate answer by calling GPT
webeval/src/webeval/benchmarks/webvoyager/webvoyager.py:176
↓ 1 callersFunctiongraft_scores_onto_rubric
Copy scoring fields from the model response onto the original rubric. Validates lexical overlap of criterion strings using CRITERION_SIMILARI
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:849
← previousnext →201–300 of 650, ranked by callers