Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/fara
/ functions
Functions
650 in github.com/microsoft/fara
⨍
Functions
650
◇
Types & classes
122
↳
Endpoints
17
↓ 1 callers
Function
has_chinese_chars
(data: Any)
src/fara/qwen_helpers/utils.py:12
↓ 1 callers
Method
hash
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 callers
Method
hover_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 callers
Function
identify_key_points
(task, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_online_mind2web.py:7
↓ 1 callers
Function
identify_key_points
(task, input_image_paths, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_general_eval.py:7
↓ 1 callers
Method
init
Initialize the browser, context, and page.
src/fara/browser/browser_bb.py:117
↓ 1 callers
Function
is_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 callers
Function
json_loads
(text: str)
src/fara/qwen_helpers/utils.py:17
↓ 1 callers
Function
judge_image
(task, image_path, key_points, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_online_mind2web.py:35
↓ 1 callers
Function
judge_image
(task, input_image_paths, image_path, key_points, model)
webeval/src/webeval/benchmarks/om2w/impl/src/methods/webjudge_general_eval.py:49
↓ 1 callers
Method
keypress
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 callers
Function
labelElements
(elements)
src/fara/browser/page_script.js:190
↓ 1 callers
Function
llm_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 callers
Function
llm_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 callers
Method
load_answer_from_disk
(self, task_id: str, output_dir: str)
webeval/src/webeval/systems/websurfer.py:212
↓ 1 callers
Function
load_benchmark_class
Dynamically load a benchmark class based on the benchmark name.
webeval/src/webeval/benchmark.py:146
↓ 1 callers
Function
load_json
(filepath: str)
webeval/src/webeval/utils.py:108
↓ 1 callers
Function
load_jsonl
(filepath: str)
webeval/src/webeval/utils.py:103
↓ 1 callers
Method
log_2_mlflow
(self)
webeval/scripts/eval_exp.py:123
↓ 1 callers
Function
log_fn_call_template_as_tag
Log the fn_call_template mapping as an MLflow tag.
webeval/scripts/eval_exp.py:350
↓ 1 callers
Function
log_long_command_as_params
(cmd_string, max_param_length=450)
webeval/scripts/eval_exp.py:361
↓ 1 callers
Function
lower
(text: str)
webeval/src/webeval/evaluators.py:79
↓ 1 callers
Function
main
()
webeval/src/webeval/cli.py:42
↓ 1 callers
Function
main
()
webeval/scripts/webtailbench.py:103
↓ 1 callers
Function
main
()
webeval/scripts/verify_trajectories.py:391
↓ 1 callers
Function
main
()
webeval/scripts/om2w.py:31
↓ 1 callers
Function
main
()
webeval/scripts/webvoyager.py:30
↓ 1 callers
Function
main
CLI entry point for fara command.
src/fara/run_fara.py:114
↓ 1 callers
Function
main
()
scripts/download_model.py:14
↓ 1 callers
Function
map_folders
(path, func: Callable[[os.PathLike], Dict])
webeval/scripts/eval_exp.py:30
↓ 1 callers
Method
maybe_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 callers
Function
message_to_openai_format
Convert our LLMMessage to OpenAI API format
src/fara/fara_types.py:79
↓ 1 callers
Function
normalize_answer
Lower text and remove punctuation, articles, and extra whitespace.
webeval/src/webeval/evaluators.py:70
↓ 1 callers
Method
page_down
( self, page: Page, amount: int = 400, full_page: bool = False )
src/fara/browser/playwright_controller.py:375
↓ 1 callers
Method
page_up
( self, page: Page, amount: int = 400, full_page: bool = False )
src/fara/browser/playwright_controller.py:385
↓ 1 callers
Function
parallel_eval
(args, num_workers=60)
webeval/src/webeval/benchmarks/om2w/impl/src/run.py:115
↓ 1 callers
Function
parse_args
()
webeval/scripts/verify_trajectories.py:345
↓ 1 callers
Function
parse_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 callers
Method
preprocess_fncall_messages
( self, messages: List[Message], functions: List[dict], lang: Literal["en", "z
src/fara/qwen_helpers/fncall_prompt.py:33
↓ 1 callers
Method
proc_coords
( self, coords: List[float] | None, im_w: int, im_h: int, og_im_w: int
src/fara/fara_agent.py:331
↓ 1 callers
Function
process_element_tag
Clean an HTML element string, keeping only salient_attributes.
webeval/src/webeval/benchmarks/om2w/impl/src/clean_html.py:24
↓ 1 callers
Function
remap_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 callers
Function
remove_articles
(text: str)
webeval/src/webeval/evaluators.py:72
↓ 1 callers
Function
remove_punc
(text: str)
webeval/src/webeval/evaluators.py:76
↓ 1 callers
Function
render_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 callers
Method
resize
Resize the image
src/fara/fara_types.py:57
↓ 1 callers
Function
resolve_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 callers
Function
run_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 callers
Function
run_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 callers
Function
run_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 callers
Function
run_fara_agent
( initial_task: str = None, endpoint_config: Dict[str, str] = None, start_page: str = "https://www
src/fara/run_fara.py:39
↓ 1 callers
Function
sanitize
(input)
src/fara/browser/page_script.js:451
↓ 1 callers
Function
select_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 callers
Method
set_download_handler
Set the download handler for the browser.
src/fara/browser/browser_bb.py:108
↓ 1 callers
Method
set_token_usage
(self, key: str, token_usage: RequestUsage | Dict[str, int])
webeval/src/webeval/trajectory.py:35
↓ 1 callers
Function
smart_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 callers
Method
steps
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 callers
Method
stop_xvfb
Stop the Xvfb process if it's running.
src/fara/browser/browser_bb.py:290
↓ 1 callers
Function
strip_url_query
(url)
src/fara/utils.py:1
↓ 1 callers
Function
sum_points_recursive
(items, breakdown_list)
webeval/src/webeval/rubric_agent/utils.py:100
↓ 1 callers
Method
to_base64
Convert PIL image to base64 string
src/fara/fara_types.py:51
↓ 1 callers
Method
to_dict
(self)
webeval/src/webeval/trajectory.py:46
↓ 1 callers
Method
to_dict
(self)
webeval/src/webeval/rubric_agent/data_point.py:29
↓ 1 callers
Method
to_json
(self)
webeval/src/webeval/eval_result.py:26
↓ 1 callers
Function
tools_to_action_definitions
(tools)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:714
↓ 1 callers
Method
total_usage
(self)
webeval/src/webeval/oai_clients/wrapper.py:202
↓ 1 callers
Function
traverseItem
(item, information)
src/fara/browser/page_script.js:470
↓ 1 callers
Function
truncate_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 callers
Method
verify
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 callers
Method
wait_for_captcha_resolution
Wait for captcha to be resolved if one is being solved.
src/fara/browser/browser_bb.py:297
↓ 1 callers
Method
wait_for_captcha_with_timeout
Wait for captcha to be solved with timeout
src/fara/fara_agent.py:161
↓ 1 callers
Function
white_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
← previous
next →
301–400 of 650, ranked by callers