MCPcopy Create free account

hub / github.com/microsoft/fara / functions

Functions650 in github.com/microsoft/fara

↓ 466 callersMethodget
(self, key, default=None)
src/fara/qwen_helpers/schema.py:43
↓ 124 callersMethodjoin
(self)
webeval/src/webeval/core.py:683
↓ 47 callersMethoditems
Iterates over types as ``(name, dict)`` pairs for template use.
webeval/src/webeval/rubric_agent/_cp_schema.py:104
↓ 32 callersMethodsleep
(self, page: Page, duration: Union[int, float])
src/fara/browser/playwright_controller.py:288
↓ 18 callersFunctioncall_llm
Call an LLM client and return the text content. Wrapper-agnostic: handles both webeval-native ``CreateResult`` (whose ``.content`` is already
webeval/src/webeval/rubric_agent/formatting.py:152
↓ 17 callersMethodlog_metric
(self, key, value, run_id = None)
webeval/scripts/mlflow_rate_limiter.py:26
↓ 15 callersMethodkeys
Returns the set of type names.
webeval/src/webeval/rubric_agent/_cp_schema.py:115
↓ 14 callersMethodcreate
( self, messages: Sequence[LLMMessage], tools: Sequence[ToolSchema] = (), json
webeval/src/webeval/oai_clients/wrapper.py:269
↓ 14 callersMethodnext_client
(self, no_increment: bool = False)
webeval/src/webeval/oai_clients/graceful_client.py:164
↓ 12 callersFunctionencode_image_b64
Encode *image* as a base64-encoded JPEG string. ``quality`` defaults to 95 (near-lossless). ``subsampling=0`` is pinned so chroma is not subs
webeval/src/webeval/rubric_agent/formatting.py:182
↓ 12 callersMethodload
(cls, path: os.PathLike)
webeval/src/webeval/rubric_agent/data_point.py:41
↓ 11 callersMethodfrom_path
( path: os.PathLike, logger: logging.Logger, eval_model: Union[str, List[str]] = "gpt-
webeval/src/webeval/oai_clients/graceful_client.py:114
↓ 11 callersMethodrun
( self, run_context: RunContext, input: Any = None )
webeval/src/webeval/rubric_agent/task_classification.py:154
↓ 11 callersFunctionsafe_mean
(lst)
webeval/src/webeval/evaluators.py:454
↓ 10 callersMethod_ensure_page_ready
(self, page: Page)
src/fara/browser/playwright_controller.py:310
↓ 10 callersMethod_should_include_model
Return True if ``model_name`` matches ``model_name_filter``. ``model_name_filter`` may be a single string or list. ``"*"`` matches ev
webeval/src/webeval/oai_clients/graceful_client.py:79
↓ 10 callersFunctionencode_image
Convert a PIL image to base64 string.
webeval/src/webeval/benchmarks/om2w/impl/src/utils.py:13
↓ 10 callersMethodload
(path: os.PathLike)
webeval/src/webeval/trajectory.py:60
↓ 10 callersMethodmodel_dump
(self, **kwargs)
src/fara/qwen_helpers/schema.py:33
↓ 9 callersMethodwait_for_load_state
Wait for the page to reach a specific load state.
src/fara/browser/playwright_controller.py:571
↓ 7 callersFunctioncreate_client_from_config
Alias for :func:`create_completion_client_from_env` taking a dict.
webeval/src/webeval/oai_clients/create_utils.py:115
↓ 7 callersMethodfrom_folder
(path, gpt_solver = False, skip_web_surfer_log = False)
webeval/src/webeval/trajectory.py:183
↓ 7 callersMethodrun
(self, model_ref, system, benchmark, out_url, subsample = 1.0, redo_eval = False, run_id = '0', split = None,
webeval/scripts/eval_exp.py:172
↓ 6 callersFunction_load_raw_md
Read the taxonomy markdown file.
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:26
↓ 6 callersFunction_resolve_token_provider
Coerce an ``azure_ad_token_provider`` config value into a callable. Accepts ``None`` (default → DefaultAzureCredential), ``"DEFAULT"`` (same)
webeval/src/webeval/oai_clients/wrapper.py:65
↓ 6 callersFunctioncreate_datapoint
Convert *task_data* + *candidate* Trajectory into a :class:`DataPoint`. Parameters ---------- task_data : dict Must contain ``"qu
webeval/src/webeval/benchmarks/webtailbench/shared_data_adapter.py:83
↓ 6 callersFunctionget_observations
Return observations of a specific type from an event stream.
webeval/src/webeval/rubric_agent/data_point.py:206
↓ 6 callersMethodmount
(self)
webeval/scripts/analyze_eval_results/artifacts.py:38
↓ 6 callersMethodon_new_page
(self, page: Page)
src/fara/browser/playwright_controller.py:292
↓ 6 callersMethodstart
(self)
src/fara/vllm/vllm_facade.py:72
↓ 6 callersMethodvisit_page
(self, page: Page, url: str)
src/fara/browser/playwright_controller.py:339
↓ 5 callersFunction_split_into_categories
Split the markdown into a dict mapping category number → full text. Each value includes the ``## N. …`` heading through to (but not including
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:39
↓ 5 callersMethodagenerate
(self, messages, **kwargs)
webeval/src/webeval/benchmarks/om2w/om2w.py:64
↓ 5 callersFunctionbuild_all_screenshot_evidence_text
( rubric: dict, evidence_by_criterion: Dict[int, List[Dict[str, Any]]], total_screenshots: int, )
webeval/src/webeval/rubric_agent/formatting.py:123
↓ 5 callersFunctionbuild_scored_rubric_summary
(rubric: dict)
webeval/src/webeval/rubric_agent/formatting.py:92
↓ 5 callersFunctionescape_for_template
Escape ``$`` → ``$$`` so *text* is safe inside a ``string.Template``.
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:31
↓ 5 callersMethodfrom_pil
(cls, image: Image.Image)
webeval/src/webeval/oai_clients/messages.py:43
↓ 5 callersFunctionisVisible
(element)
src/fara/browser/page_script.js:30
↓ 5 callersMethodlog_metrics
(self, metrics, run_id = None)
webeval/scripts/mlflow_rate_limiter.py:35
↓ 5 callersFunctionverify_generated_rubric
(d: dict)
webeval/src/webeval/rubric_agent/utils.py:61
↓ 4 callersFunction_extract_model_name
Extract model name from URL for consistent naming.
src/fara/vllm/az_vllm.py:75
↓ 4 callersMethod_local_tsv
(self, filename: str)
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:107
↓ 4 callersMethod_parse_first_step_number
Parse the minimum step number from a ``step_numbers`` string. Handles formats: ``"5"``, ``"5-7"``, ``"5,8,12"``, ``"8,5"``, ``"3-7,12"``.
webeval/src/webeval/rubric_agent/verifier_agent.py:606
↓ 4 callersFunction_to_oai_messages
(messages: Sequence[LLMMessage])
webeval/src/webeval/oai_clients/wrapper.py:226
↓ 4 callersMethodcreate
(self, *args, **kwargs)
webeval/tests/test_oai_clients.py:157
↓ 4 callersMethodeval_hash
Returns a string hash of the benchmark evaluation configuration suitable to be a path. This is used to route results with different p
webeval/src/webeval/benchmark.py:138
↓ 4 callersFunctionextract_subcategory
Return ``(name, definition)`` for a single subcategory code like ``'6.3'``. Parses the ``- **N.M Name** — Definition...`` bullet from the taxonom
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:317
↓ 4 callersMethodflush
(self, force = False)
webeval/scripts/mlflow_rate_limiter.py:55
↓ 4 callersMethodget_screenshot
Capture a screenshot of the current page. Args: page (Page): The Playwright page object. path (str, optional
src/fara/browser/playwright_controller.py:315
↓ 4 callersMethodget_step_summaries
Extract structured per-step data for the current agent format. Current agents (GPT54Agent, ComputerAgent) log content as ``{"action":
webeval/src/webeval/rubric_agent/data_point.py:417
↓ 4 callersFunctionload_system_class
Dynamically load a system class based on the system name.
webeval/src/webeval/basesystem.py:44
↓ 4 callersFunctionmessage_to_openai_format
Convert an :class:`LLMMessage` to an OpenAI chat-completion dict.
webeval/src/webeval/oai_clients/messages.py:112
↓ 4 callersMethodrun
Run the agent with a user message.
src/fara/fara_agent.py:352
↓ 4 callersMethodtype
(self)
src/fara/qwen_helpers/schema.py:116
↓ 3 callersMethod__init__
(self, **kwargs)
webeval/src/webeval/oai_clients/wrapper.py:256
↓ 3 callersFunction_coerce_str_list
(value: Any, field_name: str)
webeval/src/webeval/rubric_agent/critical_point_classifier.py:76
↓ 3 callersMethod_extract_input_from_datapoint
Convert a DataPoint into the dict expected by _generate_reply.
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1079
↓ 3 callersMethod_generate_reply
Full rubric verification pipeline. This is the direct port of the original _generate_reply() from rubric_agent_v3_mm.py, adapted to w
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:3167
↓ 3 callersFunction_log_and_nudge
(err: str)
webeval/src/webeval/rubric_agent/llm_helpers.py:56
↓ 3 callersMethod_validate_evidence_analysis
(analysis: dict, is_conditional: bool)
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1979
↓ 3 callersMethod_wrap_result
Wrap the raw rubric dict into two VerificationResult objects.
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:1154
↓ 3 callersFunctionaddValue
(information, name, value)
src/fara/browser/page_script.js:455
↓ 3 callersFunctioncalculate_stats_for_group
Helper function to calculate statistics for a group of trajectories.
webeval/src/webeval/post_eval_analysis.py:726
↓ 3 callersFunctionclassify_critical_point_for_rubric
Classify a task into a critical-point type for rubric shaping. See module docstring for context.
webeval/src/webeval/rubric_agent/critical_point_classifier.py:158
↓ 3 callersFunctionclassify_task
Unified task verification classification across ambiguity and validity.
webeval/src/webeval/rubric_agent/task_classification.py:190
↓ 3 callersMethodclose
(self)
webeval/src/webeval/oai_clients/wrapper.py:266
↓ 3 callersFunctionextract_apps
Extract the application name(s) from environment_config.apps.
webeval/src/webeval/rubric_agent/task_classification.py:69
↓ 3 callersFunctionextract_initial_url
Extract the starting URL, preferring task config over solver log events.
webeval/src/webeval/rubric_agent/task_classification.py:57
↓ 3 callersFunctionfilter_no_answer
Returns scores where the answer is not empty, None, or <no_answer> and score is not None.
webeval/src/webeval/evaluators.py:396
↓ 3 callersFunctionfilter_no_error
Returns scores where reasoning does not contain any error string and score is not None.
webeval/src/webeval/evaluators.py:419
↓ 3 callersMethodfrom_config
(config: Dict[str, Any])
webeval/src/webeval/oai_clients/wrapper.py:569
↓ 3 callersMethodfrom_dict
(cls, data: Dict[str, Any])
webeval/src/webeval/rubric_agent/data_point.py:33
↓ 3 callersFunctionget_eval_args
(benchmark_arg_func)
webeval/scripts/arg_parsing.py:80
↓ 3 callersFunctionget_foundry_endpoint_configs
(endpoint_config_path: str)
webeval/scripts/eval_exp.py:60
↓ 3 callersFunctionget_harness_code_info
Return metadata for a harness analysis code (9.1 or 9.2). Used exclusively by ``_detect_fine_grained_grounding_errors``. Raises ``KeyError``
webeval/src/webeval/rubric_agent/error_taxonomy_loader.py:396
↓ 3 callersMethodget_split_examples
(self, split: str)
webeval/src/webeval/benchmarks/om2w/om2w.py:149
↓ 3 callersMethodget_split_examples
(self, split: Optional[str])
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:244
↓ 3 callersMethodgradual_cursor_animation
( self, page: Page, start_x: float, start_y: float, end_x: float, end_y: float )
src/fara/browser/playwright_controller.py:394
↓ 3 callersMethodinitialize
(self)
src/fara/fara_agent.py:118
↓ 3 callersMethodload_answer_from_disk
Helper to load an answer from disk if it exists.
webeval/src/webeval/basesystem.py:25
↓ 3 callersMethodload_dataset
Parse the TSV(s) into :attr:`examples`. Reads the ``precomputed_rubric`` column when present (the ``WebTailBench-v1-rubrics.tsv`` fil
webeval/src/webeval/benchmarks/webtailbench/webtailbench.py:155
↓ 3 callersMethodsave
(self, path: os.PathLike)
webeval/src/webeval/trajectory.py:53
↓ 3 callersMethodsave
(self, path: os.PathLike)
webeval/src/webeval/rubric_agent/data_point.py:36
↓ 3 callersMethodstart_run
(self)
webeval/scripts/eval_exp.py:327
↓ 3 callersMethodstop
(self)
src/fara/vllm/vllm_facade.py:108
↓ 3 callersMethodto_base64
(self)
webeval/src/webeval/oai_clients/messages.py:50
↓ 3 callersMethodunmount
(self)
webeval/scripts/analyze_eval_results/artifacts.py:42
↓ 2 callersMethod__init__
( self, role: str, content: Union[str, List[ContentItem]], reasoning_content:
src/fara/qwen_helpers/schema.py:134
↓ 2 callersFunction_build_client_from_endpoint_config
Turn an endpoint-config dict, dict-list, file path, or directory into a :class:`webeval.oai_clients.ChatCompletionClient`. Plain dicts are ha
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:718
↓ 2 callersMethod_compute_final_scores
( rubric: dict, earned_points_field: str = "post_image_earned_points" )
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:2951
↓ 2 callersFunction_content_to_native
(content)
webeval/src/webeval/benchmarks/om2w/om2w.py:34
↓ 2 callersMethod_create_grounding_images
Create annotated wide-view and zoom-in images for grounding checks. Returns: (wide_view, zoom_marked, zoom_unmarked) —
webeval/src/webeval/rubric_agent/verifier_agent.py:1537
↓ 2 callersMethod_crop_around
Extract a crop centred on (*x*, *y*), clamped to image bounds.
webeval/src/webeval/rubric_agent/verifier_agent.py:1474
↓ 2 callersMethod_draw_concentric_circles
Draw concentric circles on a copy of *image* at (*x*, *y*). Returns a new image; the original is not modified.
webeval/src/webeval/rubric_agent/verifier_agent.py:1507
↓ 2 callersMethod_ensure_clients
Build LLM clients from their *_client_config if absent. Called from ``__init__`` and from :meth:`initialize` so that retry workflows
webeval/src/webeval/rubric_agent/mm_rubric_agent.py:934
↓ 2 callersMethod_get_config_class
(cls)
webeval/src/webeval/rubric_agent/base.py:43
↓ 2 callersMethod_get_scaled_screenshot
Get current screenshot and scale it for the model.
src/fara/fara_agent.py:277
↓ 2 callersMethod_get_system_message
( self, screenshot: ImageObj | Image.Image )
src/fara/fara_agent.py:284
↓ 2 callersFunction_image_token_cost
Approximate image token cost (OpenAI high-detail vision pricing).
webeval/src/webeval/oai_clients/wrapper.py:93
↓ 2 callersFunction_is_azure_blob_url
(model_path: str)
src/fara/vllm/az_vllm.py:36
next →1–100 of 650, ranked by callers