MCPcopy Create free account

hub / github.com/microsoft/fara / functions

Functions650 in github.com/microsoft/fara

↓ 2 callersFunction_make_callback_wrapper
Helper to create a callback wrapper that handles both single results and lists.
webeval/src/webeval/core.py:656
↓ 2 callersFunction_make_trajectory_dir
(root: Path, n_actions: int = 2)
webeval/tests/test_shared_data_adapter.py:25
↓ 2 callersFunction_messages_to_native
(messages)
webeval/src/webeval/benchmarks/om2w/om2w.py:47
↓ 2 callersMethod_parse_thoughts_and_action
(self, message: str)
src/fara/fara_agent.py:306
↓ 2 callersFunction_print_result_line
(r: Dict[str, Any])
webeval/scripts/verify_trajectories.py:471
↓ 2 callersFunction_record_openai_usage
(response, client: ChatCompletionClient)
webeval/src/webeval/oai_clients/wrapper.py:236
↓ 2 callersFunction_recover_page
Attempt to recover a closed page by reloading it. Args: page: The Playwright page object to recover timeout_secs: Timeout fo
src/fara/browser/playwright_controller.py:120
↓ 2 callersFunction_route_vllm_extras_to_body
Move vLLM-only sampling params into ``extra_body`` so the OpenAI SDK accepts them.
webeval/src/webeval/oai_clients/wrapper.py:125
↓ 2 callersFunction_run
()
webeval/tests/test_oai_clients.py:192
↓ 2 callersFunction_validate_verification_result
Raise ``ValueError`` if *result* is missing or mis-typed fields.
webeval/src/webeval/rubric_agent/task_classification.py:118
↓ 2 callersFunction_write_fixture_tsv
( path: Path, rows: list[dict], fieldnames: list[str] | None = None )
webeval/tests/test_webtailbench_dataset.py:40
↓ 2 callersMethodapply_async
(self, func, args, callback)
webeval/src/webeval/core.py:677
↓ 2 callersFunctioncalc_step_budget_scores
(answer: FinalAnswer, score: float, budget_vals: List[int])
webeval/src/webeval/metric_helpers.py:5
↓ 2 callersFunctionceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
src/fara/_prompts.py:190
↓ 2 callersMethodclose
(self)
webeval/src/webeval/core.py:680
↓ 2 callersMethodclose
Close the browser and the page. Should be called when the agent is no longer needed.
src/fara/fara_agent.py:619
↓ 2 callersFunctioncompute_aggregate_metrics_gpt_evaluator
Compute aggregate metrics (e.g. average score). Must produce a dictionary. Computes: - mean_score: average over all - mean_score
webeval/src/webeval/evaluators.py:515
↓ 2 callersFunctioncompute_refusal_metrics
Compute only refusal detection metrics.
webeval/src/webeval/evaluators.py:627
↓ 2 callersMethodcount_tokens
( self, messages: Sequence[LLMMessage], tools: Sequence[ToolSchema] = (), )
webeval/src/webeval/oai_clients/wrapper.py:163
↓ 2 callersFunctioncreate_completion_client_from_env
Construct a client from a config dict. The dict must contain ``CHAT_COMPLETION_PROVIDER`` ("openai", "azure", "trapi", "azure_ml", or "gracef
webeval/src/webeval/oai_clients/create_utils.py:28
↓ 2 callersMethoddownload_dataset
Download or load the dataset into data/<benchmark_name>/.
webeval/src/webeval/benchmark.py:29
↓ 2 callersFunctionevaluate_benchmark_func
Evaluate the benchmark. Args: benchmark_name (str): Benchmark name. system_name (str): System name. benchmark_dir (s
webeval/src/webeval/core.py:354
↓ 2 callersFunctionevaluate_single_example
Evaluate a single example. Args: example_data (tuple): (ex, output_dir, redo_eval). Returns: tuple: (qid, score, durati
webeval/src/webeval/core.py:239
↓ 2 callersFunctionextract_categories
Return the taxonomy text for categories *start* through *end*. The result is raw markdown (NOT Template-escaped). Call ``escape_for_template(
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:114
↓ 2 callersFunctionextract_final_answer_data
Extract final answer data from _final_answer.json content. Returns: dict: Contains is_aborted, final_answer, num_screenshots, and to
webeval/src/webeval/post_eval_analysis.py:163
↓ 2 callersFunctionextract_predication
Extract the prediction from the response.
webeval/src/webeval/benchmarks/om2w/impl/src/utils.py:21
↓ 2 callersFunctionextract_subcategory_bullets
Return only the ``- **N.M …**`` bullet lines for a single category. Useful when the prompt provides its own framing/preamble and only needs t
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:289
↓ 2 callersFunctionfilter_no_captcha
Returns scores where reasoning does not contain 'captcha' (case-insensitive) and score is not None.
webeval/src/webeval/evaluators.py:407
↓ 2 callersFunctionfloor_by_factor
Returns the largest integer less than or equal to 'number' that is divisible by 'factor'.
src/fara/_prompts.py:195
↓ 2 callersFunctionformat_action_history
Format step summaries into the ``State N / Action N`` text format.
webeval/src/webeval/rubric_agent/formatting.py:38
↓ 2 callersMethodfrom_files
( files: Sequence[os.PathLike], logger: logging.Logger, eval_model: Union[str, List[st
webeval/src/webeval/oai_clients/graceful_client.py:92
↓ 2 callersMethodfrom_pil
(cls, image: Image.Image)
src/fara/fara_types.py:48
↓ 2 callersFunctiongetCursor
(elm)
src/fara/browser/page_script.js:26
↓ 2 callersFunctiongetInteractiveElements
()
src/fara/browser/page_script.js:136
↓ 2 callersFunctionget_init_url_context
(init_url: Optional[str])
webeval/src/webeval/rubric_agent/formatting.py:71
↓ 2 callersMethodget_page_url
Get the current page URL.
src/fara/browser/playwright_controller.py:578
↓ 2 callersFunctionget_taxonomy_for_failure_prompt
Return ``(taxonomy_text, summary_table)`` for the failure-analysis prompt. Categories 1-6. Category 6 is post-processed to contain ``$action
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:218
↓ 2 callersFunctionget_tokens
(s: str)
webeval/src/webeval/evaluators.py:83
↓ 2 callersMethodget_type_and_value
( self, )
src/fara/qwen_helpers/schema.py:108
↓ 2 callersFunctionisTopmost
(element, x, y)
src/fara/browser/page_script.js:206
↓ 2 callersFunctionlatest
Return the last observation, or None if empty.
webeval/src/webeval/rubric_agent/data_point.py:211
↓ 2 callersMethodload_dataset
Loads the previously downloaded dataset from self.data_dir into self.examples.
webeval/src/webeval/benchmark.py:35
↓ 2 callersFunctionload_or_download_benchmark
Load or download the benchmark data. Args: benchmark_name (str): Benchmark name. benchmark_dir (str): Directory for benchmar
webeval/src/webeval/core.py:106
↓ 2 callersFunctionnormalize_url
Normalize a URL by unquoting the path, removing any trailing slash, and sorting query parameters. Args: url (str): The URL to normal
webeval/src/webeval/evaluators.py:22
↓ 2 callersFunctionreduce_eval_results
(eval_results, benchmark)
webeval/src/webeval/core.py:483
↓ 2 callersMethodrefresh_credentials
(self)
webeval/src/webeval/oai_clients/wrapper.py:471
↓ 2 callersMethodremove_screenshot_from_message
Remove the screenshot from the message content.
src/fara/fara_agent.py:208
↓ 2 callersFunctionround_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
src/fara/_prompts.py:185
↓ 2 callersFunctionrun_benchmark_func
Run the benchmark. Args: benchmark_name (str): Benchmark name. system_name (str): System name. parallel (int): Numbe
webeval/src/webeval/core.py:147
↓ 2 callersFunctionrun_single_task
Run a single task in a separate process. Args: question_data (tuple): (question_id, example_data, output_dir). Returns:
webeval/src/webeval/core.py:36
↓ 2 callersFunctionselect_user_simulator_block
Pick the right user-simulator policy block. Args: enabled: ``MMRubricAgentConfig.user_simulator_enabled`` value. for_outcome: ``T
webeval/src/webeval/rubric_agent/prompts.py:114
↓ 2 callersMethodstart_xvfb
Start Xvfb virtual display server.
src/fara/browser/browser_bb.py:274
↓ 2 callersMethodto_dict
(self)
webeval/src/webeval/eval_result.py:23
↓ 2 callersFunctiontrimmedInnerText
(element)
src/fara/browser/page_script.js:232
↓ 2 callersFunctionverify_rubric
(d: dict)
webeval/src/webeval/rubric_agent/utils.py:14
↓ 1 callersFunctionAgentTrek_eval
(task, last_actions, thoughts, images_path)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/agenttrek_eval.py:4
↓ 1 callersFunctionAutonomous_eval
(task, last_actions, images_path)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/automomous_eval.py:4
↓ 1 callersFunctionWebJudge_Online_Mind2Web_eval
(task, last_actions, images_path, model, score_threshold)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_online_mind2web.py:88
↓ 1 callersFunctionWebJudge_general_eval
(task, input_image_paths, action_thoughts, last_actions, images_path, model, score_threshold)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_general_eval.py:120
↓ 1 callersFunctionWebVoyager_eval
(task, images_path, response, k=0)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webvoyager_eval.py:5
↓ 1 callersMethod__enter__
(self)
src/fara/vllm/az_vllm.py:176
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
src/fara/vllm/az_vllm.py:220
↓ 1 callersMethod__init__
(self, model_client: ChatCompletionClient)
webeval/src/webeval/benchmarks/om2w/om2w.py:57
↓ 1 callersMethod__init__
(self, az_folder, local_path, tag = None)
webeval/scripts/analyze_eval_results/artifacts.py:14
↓ 1 callersMethod_analyze_screenshot_evidence
( self, screenshots: List[Image.Image], rubric: dict, grouped_screenshots: Dic
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1625
↓ 1 callersMethod_analyze_screenshot_evidence_batched
( self, screenshots: List[Image.Image], rubric: dict, grouped_screenshots: Dic
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1734
↓ 1 callersMethod_build_full_rubric_context
(rubric: dict, target_criterion_idx: int)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:3075
↓ 1 callersMethod_build_full_rubric_with_baselines
(rubric: dict)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:3140
↓ 1 callersFunction_build_grounding_error_definitions
Build formatted error-code definitions for FINE_GRAINED_GROUNDING_PROMPT. Pulls definitions from ``error_taxonomy_analysis.md`` at import time.
webeval/src/webeval/rubric_agent/prompts.py:2197
↓ 1 callersFunction_build_template_env
()
webeval/src/webeval/rubric_agent/critical_point_classifier.py:51
↓ 1 callersFunction_cache_model
(model_url: str)
src/fara/vllm/az_vllm.py:81
↓ 1 callersFunction_call_llm
Call an LLM client and return the text content.
webeval/src/webeval/rubric_agent/task_classification.py:94
↓ 1 callersMethod_check_cp_violation
Decide whether the trajectory crossed the irreversible-action boundary in violation of the user's permissions. This is a focused, sin
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2848
↓ 1 callersMethod_check_rubric_dependencies
( self, rubric_dict: dict, task: str, init_url_context: str )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1273
↓ 1 callersMethod_classify_task
Step 10: Delegates to :func:`task_classification.classify_task`. Returns the ``TaskAgentResult`` as a plain dict so it can be stored
webeval/src/webeval/rubric_agent/verifier_agent.py:1449
↓ 1 callersMethod_classify_task_with_trajectory
Step 9b: Trajectory-informed task verification. Uses the same ambiguity / validity axes as Step 10 (``CHECK_VALID_TASK_PROMPT``), but
webeval/src/webeval/rubric_agent/verifier_agent.py:1350
↓ 1 callersMethod_clean_mlflow_key
Clean MLflow keys by replacing unsupported characters, Names may only contain alphanumerics, underscores (_), dashes (-), periods (.), spaces ( ), col
webeval/scripts/eval_exp.py:168
↓ 1 callersMethod_clear_rubric_scores
(rubric_dict: dict)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1329
↓ 1 callersMethod_click
(self, coordinate: Tuple[int, int])
src/fara/_prompts.py:160
↓ 1 callersMethod_compute_first_failure
Compute ``first_failure_step`` and ``first_failure_summary`` from the LLM's ``failure_points`` list. Priority: first failure of any k
webeval/src/webeval/rubric_agent/verifier_agent.py:628
↓ 1 callersFunction_default_azure_token_provider
Build a bearer-token provider with sensible Azure credential priority. Order: AzureCliCredential → ManagedIdentityCredential → DefaultAzureCr
webeval/src/webeval/oai_clients/wrapper.py:36
↓ 1 callersMethod_detect_fine_grained_grounding_errors
Visually verify that coordinate-bearing actions land on the intended target. For each action whose tool definition includes ``x`` and ``y``
webeval/src/webeval/rubric_agent/verifier_agent.py:741
↓ 1 callersMethod_detect_tool_interaction_errors
Programmatically detect 6.1 (Invalid invocation) and 6.2 (Hallucinated action) errors by comparing each step's action name and argumen
webeval/src/webeval/rubric_agent/verifier_agent.py:657
↓ 1 callersMethod_detect_unsolicited_side_effects
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2614
↓ 1 callersMethod_disambiguate_conditional_criteria
( self, rubric: dict, evidence_by_criterion: Dict[int, List[Dict]], task: str,
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2072
↓ 1 callersFunction_download_model_from_hf
Download model from HuggingFace Hub if not already present.
src/fara/vllm/az_vllm.py:43
↓ 1 callersFunction_dt_now_str
()
webeval/scripts/analyze_eval_results/artifacts.py:9
↓ 1 callersFunction_extract_start_url_from_environment_config
Extract the configured starting URL/page from task.environment_config.
webeval/src/webeval/rubric_agent/task_classification.py:47
↓ 1 callersFunction_extract_summary_table
Return the full summary decision table (header + all rows).
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:79
↓ 1 callersMethod_filter_irrelevant_screenshots
( self, grouped: Dict[int, List[int]], relevance_scores: Dict[int, Dict] )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1596
↓ 1 callersMethod_first_point_of_failure_analysis
Step 9a: Failure Point Analysis — identify all failure points in the trajectory. The first (earliest) point of failure is computed pr
webeval/src/webeval/rubric_agent/verifier_agent.py:323
↓ 1 callersMethod_flush
(self, force = False)
webeval/scripts/mlflow_rate_limiter.py:44
↓ 1 callersMethod_generate_rubric
( self, task: str, init_url_context: str, critical_point_context: str = "",
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1213
↓ 1 callersFunction_getJsonLd
()
src/fara/browser/page_script.js:440
↓ 1 callersFunction_getMetaTags
()
src/fara/browser/page_script.js:419
↓ 1 callersFunction_getMicrodata
()
src/fara/browser/page_script.js:450
↓ 1 callersMethod_get_action_name
(evt: Dict[str, Any])
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:389
↓ 1 callersFunction_get_base_eval_arg_parser
()
webeval/scripts/arg_parsing.py:34
↓ 1 callersFunction_get_coordinate_actions
Return action names whose parameters include ``x`` and ``y``. Inlined from agento_next's ``computer_agent.tools.get_coordinate_actions`` so t
webeval/src/webeval/rubric_agent/verifier_agent.py:75
↓ 1 callersMethod_get_encoding
(self)
webeval/src/webeval/oai_clients/wrapper.py:158
← previousnext →101–200 of 650, ranked by callers