MCPcopy Create free account

hub / github.com/microsoft/fara / functions

Functions650 in github.com/microsoft/fara

↓ 1 callersFunctionhas_chinese_chars
(data: Any)
src/fara/qwen_helpers/utils.py:12
↓ 1 callersMethodhash
Returns a string hash of the system configuration applicable to be a path. This is route results with different parameters to differe
webeval/src/webeval/basesystem.py:36
↓ 1 callersMethodhover_coords
Hovers the mouse over the specified coordinates. Args: page (Page): The Playwright page object. x (float): T
src/fara/browser/playwright_controller.py:467
↓ 1 callersFunctionidentify_key_points
(task, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_online_mind2web.py:7
↓ 1 callersFunctionidentify_key_points
(task, input_image_paths, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_general_eval.py:7
↓ 1 callersMethodinit
Initialize the browser, context, and page.
src/fara/browser/browser_bb.py:117
↓ 1 callersFunctionis_tool_schema
Check if obj is a valid JSON schema describing a tool compatible with OpenAI's tool calling. Example valid schema: { "name": "get_c
src/fara/qwen_helpers/base_tool.py:11
↓ 1 callersFunctionjson_loads
(text: str)
src/fara/qwen_helpers/utils.py:17
↓ 1 callersFunctionjudge_image
(task, image_path, key_points, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_online_mind2web.py:35
↓ 1 callersFunctionjudge_image
(task, input_image_paths, image_path, key_points, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_general_eval.py:49
↓ 1 callersMethodkeypress
Press specified keys in sequence. Args: page (Page): The Playwright page object keys (List[str]): List of ke
src/fara/browser/playwright_controller.py:550
↓ 1 callersFunctionlabelElements
(elements)
src/fara/browser/page_script.js:190
↓ 1 callersFunctionllm_call_expect_json
Call ``client.create(messages=...)`` and parse the response as a JSON object containing every name in ``required_keys``. Retries up to ``max_
webeval/src/webeval/rubric_agent/llm_helpers.py:19
↓ 1 callersFunctionllm_evaluate_candidate_answer_async
Uses an LLM to evaluate the candidate answer versus either the gold truth answer (if provided) or the task itself, returning a JSON object wi
webeval/src/webeval/evaluators.py:281
↓ 1 callersMethodload_answer_from_disk
(self, task_id: str, output_dir: str)
webeval/src/webeval/systems/websurfer.py:212
↓ 1 callersFunctionload_benchmark_class
Dynamically load a benchmark class based on the benchmark name.
webeval/src/webeval/benchmark.py:146
↓ 1 callersFunctionload_json
(filepath: str)
webeval/src/webeval/utils.py:108
↓ 1 callersFunctionload_jsonl
(filepath: str)
webeval/src/webeval/utils.py:103
↓ 1 callersMethodlog_2_mlflow
(self)
webeval/scripts/eval_exp.py:123
↓ 1 callersFunctionlog_fn_call_template_as_tag
Log the fn_call_template mapping as an MLflow tag.
webeval/scripts/eval_exp.py:350
↓ 1 callersFunctionlog_long_command_as_params
(cmd_string, max_param_length=450)
webeval/scripts/eval_exp.py:361
↓ 1 callersFunctionlower
(text: str)
webeval/src/webeval/evaluators.py:79
↓ 1 callersFunctionmain
()
webeval/src/webeval/cli.py:42
↓ 1 callersFunctionmain
()
webeval/scripts/webtailbench.py:103
↓ 1 callersFunctionmain
()
webeval/scripts/verify_trajectories.py:391
↓ 1 callersFunctionmain
()
webeval/scripts/om2w.py:31
↓ 1 callersFunctionmain
()
webeval/scripts/webvoyager.py:30
↓ 1 callersFunctionmain
CLI entry point for fara command.
src/fara/run_fara.py:114
↓ 1 callersFunctionmain
()
scripts/download_model.py:14
↓ 1 callersFunctionmap_folders
(path, func: Callable[[os.PathLike], Dict])
webeval/scripts/eval_exp.py:30
↓ 1 callersMethodmaybe_remove_old_screenshots
Remove old screenshots from the chat history. Assuming we have not yet added the current screenshot message. Note: Original user messages (ma
src/fara/fara_agent.py:220
↓ 1 callersFunctionmessage_to_openai_format
Convert our LLMMessage to OpenAI API format
src/fara/fara_types.py:79
↓ 1 callersFunctionnormalize_answer
Lower text and remove punctuation, articles, and extra whitespace.
webeval/src/webeval/evaluators.py:70
↓ 1 callersMethodpage_down
( self, page: Page, amount: int = 400, full_page: bool = False )
src/fara/browser/playwright_controller.py:375
↓ 1 callersMethodpage_up
( self, page: Page, amount: int = 400, full_page: bool = False )
src/fara/browser/playwright_controller.py:385
↓ 1 callersFunctionparallel_eval
(args, num_workers=60)
webeval/src/webeval/benchmarks/om2w/impl/src/run.py:115
↓ 1 callersFunctionparse_args
()
webeval/scripts/verify_trajectories.py:345
↓ 1 callersFunctionparse_text_based_event
Parse events where thoughts and actions are embedded as text in the message field. Expected format: "Thought #X: <thought text> Acti
webeval/src/webeval/trajectory.py:76
↓ 1 callersMethodpreprocess_fncall_messages
( self, messages: List[Message], functions: List[dict], lang: Literal["en", "z
src/fara/qwen_helpers/fncall_prompt.py:33
↓ 1 callersMethodproc_coords
( self, coords: List[float] | None, im_w: int, im_h: int, og_im_w: int
src/fara/fara_agent.py:331
↓ 1 callersFunctionprocess_element_tag
Clean an HTML element string, keeping only salient_attributes.
webeval/src/webeval/benchmarks/om2w/impl/src/clean_html.py:24
↓ 1 callersFunctionremap_action_names
this is needed in the case of gpt_solver, where the action names are not consistent with those of trained models
webeval/src/webeval/trajectory.py:65
↓ 1 callersFunctionremove_articles
(text: str)
webeval/src/webeval/evaluators.py:72
↓ 1 callersFunctionremove_punc
(text: str)
webeval/src/webeval/evaluators.py:76
↓ 1 callersFunctionrender_critical_point_context_block
Render the structured CP classification as a prompt-injection block.
webeval/src/webeval/rubric_agent/critical_point_classifier.py:356
↓ 1 callersMethodresize
Resize the image
src/fara/fara_types.py:57
↓ 1 callersFunctionresolve_tools
Stub: the optional tool registry used for action-schema validation is not shipped with this package. ``MMRubricAgentConfig.tools`` is optiona
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:697
↓ 1 callersFunctionrun_eval_multiple_examples_with_progress
(examples, processes, output_folder, redo_eval, system, benchmark, callback = None, eval_only=False, max_error
webeval/src/webeval/core.py:765
↓ 1 callersFunctionrun_eval_single_example
Run evaluation for a single example with retry logic. Args: example (dict): Example data. folder (str): Output folder.
webeval/src/webeval/core.py:565
↓ 1 callersFunctionrun_evaluate_benchmark_func
Run and evaluate the benchmark. Args: benchmark_name (str): Benchmark name. system_name (str): System name. parallel
webeval/src/webeval/core.py:500
↓ 1 callersFunctionrun_fara_agent
( initial_task: str = None, endpoint_config: Dict[str, str] = None, start_page: str = "https://www
src/fara/run_fara.py:39
↓ 1 callersFunctionsanitize
(input)
src/fara/browser/page_script.js:451
↓ 1 callersFunctionselect_cp_decision_rules
Return the decision-rule block for a given critical-point type. Args: cp_type: the ``critical_point_type`` from the classifier. ``None``
webeval/src/webeval/rubric_agent/prompts.py:206
↓ 1 callersMethodset_download_handler
Set the download handler for the browser.
src/fara/browser/browser_bb.py:108
↓ 1 callersMethodset_token_usage
(self, key: str, token_usage: RequestUsage | Dict[str, int])
webeval/src/webeval/trajectory.py:35
↓ 1 callersFunctionsmart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The to
src/fara/_prompts.py:200
↓ 1 callersMethodsteps
Group events into steps based on action_id linkage. Args: with_tail_observations: If True (default), include a trailing step
webeval/src/webeval/rubric_agent/data_point.py:299
↓ 1 callersMethodstop_xvfb
Stop the Xvfb process if it's running.
src/fara/browser/browser_bb.py:290
↓ 1 callersFunctionstrip_url_query
(url)
src/fara/utils.py:1
↓ 1 callersFunctionsum_points_recursive
(items, breakdown_list)
webeval/src/webeval/rubric_agent/utils.py:100
↓ 1 callersMethodto_base64
Convert PIL image to base64 string
src/fara/fara_types.py:51
↓ 1 callersMethodto_dict
(self)
webeval/src/webeval/trajectory.py:46
↓ 1 callersMethodto_dict
(self)
webeval/src/webeval/rubric_agent/data_point.py:29
↓ 1 callersMethodto_json
(self)
webeval/src/webeval/eval_result.py:26
↓ 1 callersFunctiontools_to_action_definitions
(tools)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:714
↓ 1 callersMethodtotal_usage
(self)
webeval/src/webeval/oai_clients/wrapper.py:202
↓ 1 callersFunctiontraverseItem
(item, information)
src/fara/browser/page_script.js:470
↓ 1 callersFunctiontruncate_observation
Truncate text keeping first and last halves with a marker between. Inlined from agento_next's ``agents/utils.truncate_observation`` so this m
webeval/src/webeval/rubric_agent/formatting.py:22
↓ 1 callersMethodverify
Run Steps 9a, 9b, and 10 on top of a scored rubric. Args: rubric_dict: Scored rubric (output of :meth:`MMRubricAg
webeval/src/webeval/rubric_agent/verifier_agent.py:177
↓ 1 callersMethodwait_for_captcha_resolution
Wait for captcha to be resolved if one is being solved.
src/fara/browser/browser_bb.py:297
↓ 1 callersMethodwait_for_captcha_with_timeout
Wait for captcha to be solved with timeout
src/fara/fara_agent.py:161
↓ 1 callersFunctionwhite_space_fix
(text: str)
webeval/src/webeval/evaluators.py:74
Method__add__
(self, other: "RequestUsage")
webeval/src/webeval/oai_clients/messages.py:68
Method__call__
(self, result: EvalResult, mlflow_facade, mlflow_run_id: str)
webeval/scripts/webtailbench.py:31
Method__call__
(self, parser, namespace, values, option_string=None)
webeval/scripts/arg_parsing.py:13
Method__call__
(self, result: EvalResult)
webeval/scripts/eval_exp.py:139
Method__call__
(self, result: EvalResult, mlflow_facade, mlflow_run_id: str)
webeval/scripts/om2w.py:19
Method__call__
(self, result: EvalResult, mlflow_facade, mlflow_run_id: str)
webeval/scripts/webvoyager.py:20
Method__enter__
(self)
webeval/scripts/mlflow_rate_limiter.py:7
Method__enter__
(self)
webeval/scripts/mlflow_rate_limiter.py:23
Method__enter__
(self)
webeval/scripts/dummy_workspace.py:8
Method__enter__
(self)
webeval/scripts/analyze_eval_results/artifacts.py:46
Method__exit__
(self, exc_type, exc_val, exc_tb)
webeval/scripts/mlflow_rate_limiter.py:10
Method__exit__
(self, exc_type, exc_val, exc_tb)
webeval/scripts/mlflow_rate_limiter.py:66
Method__exit__
(self, exc_type, exc_val, exc_tb)
webeval/scripts/dummy_workspace.py:11
Method__exit__
(self, exc_type, exc_value, traceback)
webeval/scripts/analyze_eval_results/artifacts.py:50
Method__getitem__
(self, item)
src/fara/qwen_helpers/schema.py:27
Method__init__
(self, processes, initializer, initargs)
webeval/src/webeval/core.py:673
Method__init__
(self, name: str, data_dir: str, examples: List[Dict[str, Any]] = None)
webeval/src/webeval/benchmark.py:24
Method__init__
(self, filename: str = "log.jsonl")
webeval/src/webeval/utils.py:120
Method__init__
(self, system_name: str)
webeval/src/webeval/basesystem.py:16
Method__init__
(self, path, gpt_solver = False, skip_web_surfer_log = False)
webeval/src/webeval/trajectory.py:122
Method__init__
( self, system_name: str, web_surfer_model_type: str = "fara", max_rounds: int
webeval/src/webeval/systems/websurfer.py:25
Method__init__
( self, clients: List[ChatCompletionClient], support_json: bool = True, logger
webeval/src/webeval/oai_clients/graceful_client.py:43
Method__init__
(self, max_tokens: Optional[int] = None)
webeval/src/webeval/oai_clients/wrapper.py:136
Method__init__
(self, **kwargs)
webeval/src/webeval/oai_clients/wrapper.py:299
Method__init__
(self, **kwargs)
webeval/src/webeval/oai_clients/wrapper.py:361
Method__init__
(self, **kwargs)
webeval/src/webeval/oai_clients/wrapper.py:452
Method__init__
( self, config: AgentConfig | dict[str, Any] | None = None, **kwargs: Any )
webeval/src/webeval/rubric_agent/base.py:32
Method__init__
(self, value: str, description: str = "")
webeval/src/webeval/rubric_agent/_cp_schema.py:60
← previousnext →301–400 of 650, ranked by callers