MCPcopy Create free account

hub / github.com/Claw-AI-Lab/Claw-AI-Lab / functions

Functions3,044 in github.com/Claw-AI-Lab/Claw-AI-Lab

↓ 8 callersMethod_agent
(self)
backend/agent/tests/test_decision_agent.py:73
↓ 8 callersFunction_get_by_path
(data: dict[str, Any], dotted_key: str)
backend/agent/researchclaw/config.py:47
↓ 8 callersMethod_html_to_markdown
Best-effort HTML → Markdown conversion via regex.
backend/agent/researchclaw/web/crawler.py:218
↓ 8 callersFunction_make_client
( *, base_url: str = "https://api.example.com/v1", api_key: str = "test-key", primary_model: s
backend/agent/tests/test_rc_preflight.py:10
↓ 8 callersFunctionanalyze_convergence
Analyze convergence data for multiple methods. Parameters ---------- convergence_data : dict Maps method name to list of {"h": ..
backend/agent/researchclaw/experiment/evaluators/convergence.py:97
↓ 8 callersMethodclose
(self)
backend/agent/tests/test_rc_executor.py:191
↓ 8 callersFunctioncompute_template_ratio
Estimate what fraction of the text is template/placeholder content. Returns 0.0 (fully original) to 1.0 (fully template). Simple heuristic: c
backend/agent/researchclaw/quality.py:118
↓ 8 callersMethodend
Return headers that signal session completion. Call this when the pipeline run finishes to trigger MetaClaw's post-session processing
backend/agent/researchclaw/metaclaw_bridge/session.py:40
↓ 8 callersMethodfrom_rc_config
(cls, rc_config: Any)
backend/agent/researchclaw/llm/client.py:96
↓ 8 callersFunctionget_cached
Return cached results or None if miss/expired. If *ttl* is not provided, uses source-specific TTL from ``_SOURCE_TTL``, falling back to the g
backend/agent/researchclaw/literature/cache.py:44
↓ 8 callersFunctionis_ml_domain
Check if a domain profile represents an ML/AI domain.
backend/agent/researchclaw/domains/detector.py:478
↓ 8 callersFunctionparse_bibtex_entries
Parse BibTeX text into a list of field dicts. Each dict contains at least ``key`` and ``type``, plus any parsed fields (``title``, ``author``
backend/agent/researchclaw/literature/verify.py:131
↓ 8 callersFunctionparse_metrics
(stdout: str)
backend/agent/researchclaw/experiment/sandbox.py:75
↓ 8 callersMethodstep
Increment step counter. Call this once per experiment step.
assets/showcase/flowedit-wan21-t2v/codes/experiment_harness.py:105
↓ 8 callersMethodto_bibtex
Generate a BibTeX entry string. If ``_bibtex_override`` was populated (e.g. from CrossRef), return that directly. Otherwise construc
backend/agent/researchclaw/literature/models.py:78
↓ 7 callersFunction_assess_novelty
Compute overall novelty score and assessment. Returns (score, assessment) where score is 0-1 (higher = more novel) and assessment is 'high' |
backend/agent/researchclaw/literature/novelty.py:359
↓ 7 callersFunction_build_snippet
Extract the best available snippet from an Exa result. Cascades through highlights -> summary -> text, returning the first non-empty value fo
backend/agent/researchclaw/web/exa_search.py:222
↓ 7 callersFunction_collect_content_metrics
Collect content authenticity metrics from stage outputs.
backend/agent/researchclaw/pipeline/runner.py:142
↓ 7 callersFunction_ensure_dir
(path: Path)
backend/agent/researchclaw/experiment/visualize.py:88
↓ 7 callersFunction_escape_latex
Escape LaTeX special characters in plain text (titles, headings). Does NOT escape inside math delimiters or \\commands.
backend/agent/researchclaw/templates/converter.py:1591
↓ 7 callersFunction_jaccard_keywords
Jaccard similarity between two keyword lists.
backend/agent/researchclaw/literature/novelty.py:150
↓ 7 callersMethod_log_git_failure
( operation: str, result: subprocess.CompletedProcess[str] | None )
backend/agent/researchclaw/experiment/git_manager.py:146
↓ 7 callersFunction_parse_metrics_from_stdout
Parse ``name: value`` metric lines from experiment stdout. Handles formats like ``UCB (Stochastic) cumulative_regret: 361.9233`` and simple `
backend/agent/researchclaw/pipeline/executor.py:1403
↓ 7 callersMethod_rate_limit
(self)
backend/agent/researchclaw/web/scholar.py:193
↓ 7 callersFunction_setup_academic_style
Apply academic styling via rcParams.
backend/agent/researchclaw/experiment/visualize.py:93
↓ 7 callersFunction_utcnow_iso
()
backend/agent/researchclaw/pipeline/runner.py:27
↓ 7 callersMethodadd_artifact
(self, name: str)
backend/agent/researchclaw/pipeline/claw_engine/session.py:56
↓ 7 callersMethodchat
(self, messages: list[dict], **kwargs: Any)
backend/agent/tests/test_code_agent.py:36
↓ 7 callersMethodcheck_docker_available
Return True if the Docker daemon is reachable.
backend/agent/researchclaw/experiment/docker_sandbox.py:195
↓ 7 callersFunctioncompute_convergence_order
Compute convergence order via log-log linear regression. Parameters ---------- h_values : list[float] Grid sizes / timesteps (mus
backend/agent/researchclaw/experiment/evaluators/convergence.py:39
↓ 7 callersMethodencode_frame
(self, frame: np.ndarray)
assets/showcase/quantifying-hallucination/main.py:409
↓ 7 callersFunctionextract_imports
Return top-level module names imported by *code*. Returns an empty set if the code can't be parsed.
backend/agent/researchclaw/experiment/validator.py:287
↓ 7 callersMethodget_code_generation_blocks
(self, ctx)
backend/agent/tests/test_prompt_adapter.py:260
↓ 7 callersFunctionread_checkpoint
Read checkpoint and return the NEXT stage to execute, or None if no checkpoint.
backend/agent/researchclaw/pipeline/runner.py:114
↓ 7 callersFunctionsafe_tensor
(x: torch.Tensor)
assets/showcase/flowedit-wan21-t2v/codes/main.py:353
↓ 7 callersMethodsystem
Return the raw system prompt template for *stage*.
backend/agent/researchclaw/prompts.py:170
↓ 7 callersMethodto_dict
Serialise to a plain dict for JSON/JSONL output.
backend/agent/researchclaw/literature/models.py:158
↓ 7 callersFunctionuseLocale
()
frontend/src/i18n/index.ts:34
↓ 7 callersFunctionvalidate_security
Scan *code* AST for dangerous calls and imports.
backend/agent/researchclaw/experiment/validator.py:330
↓ 6 callersFunction_build_context_preamble
( config: RCConfig, run_dir: Path, *, include_goal: bool = False, include_hypotheses: bool
backend/agent/researchclaw/pipeline/executor.py:1050
↓ 6 callersFunction_build_novelty_queries
Build targeted search queries from topic and hypotheses.
backend/agent/researchclaw/literature/novelty.py:338
↓ 6 callersMethod_build_run_command
Build the ``docker run`` command list. The container uses ``entrypoint.sh`` which handles: Phase 0: pip install requirements.txt
backend/agent/researchclaw/experiment/docker_sandbox.py:352
↓ 6 callersFunction_capture_raw_call
( monkeypatch: pytest.MonkeyPatch, *, model: str, response_data: Mapping[str, Any] )
backend/agent/tests/test_rc_llm.py:44
↓ 6 callersMethod_chat
Send a chat message and return the content string.
backend/agent/researchclaw/agents/base.py:81
↓ 6 callersFunction_classify_error
Classify an error into a LessonCategory based on keywords.
backend/agent/researchclaw/evolution.py:106
↓ 6 callersFunction_compute_similarity
Combined similarity score between hypotheses keywords and a paper.
backend/agent/researchclaw/literature/novelty.py:164
↓ 6 callersFunction_deduplicate
Remove duplicates. Priority: DOI > arXiv ID > fuzzy title. When a duplicate is found, the entry with higher citation_count wins (i.e. Semant
backend/agent/researchclaw/literature/search.py:304
↓ 6 callersFunction_detect_nvidia
Detect NVIDIA GPU via nvidia-smi.
backend/agent/researchclaw/hardware.py:81
↓ 6 callersMethod_extract_files
Extract multi-file code blocks from LLM output.
backend/agent/researchclaw/pipeline/code_agent.py:1328
↓ 6 callersFunction_heuristic_extract
Extract patterns using regex heuristics (no LLM needed).
backend/agent/researchclaw/agents/code_searcher/pattern_extractor.py:183
↓ 6 callersFunction_heuristic_generate
Generate queries without LLM using keyword extraction.
backend/agent/researchclaw/agents/code_searcher/query_gen.py:77
↓ 6 callersFunction_is_blank
(value: Any)
backend/agent/researchclaw/config.py:56
↓ 6 callersFunction_make_client
( *, api_key: str = "test-key", primary_model: str = "gpt-5.2", fallback_models: list[str] | N
backend/agent/tests/test_rc_llm.py:27
↓ 6 callersMethod_match_domains
Return domain IDs whose keywords appear in the topic.
backend/agent/researchclaw/agents/benchmark_agent/surveyor.py:127
↓ 6 callersMethod_prepare_refine_inputs
(self, run_dir: Path)
backend/agent/tests/test_rc_executor.py:706
↓ 6 callersFunction_record
(key: str, val: float, *, accumulate: bool = False)
backend/agent/researchclaw/experiment/sandbox.py:82
↓ 6 callersFunction_reset_circuit_breaker
Reset circuit breaker state (for tests).
backend/agent/researchclaw/literature/arxiv_client.py:54
↓ 6 callersFunction_sanitize_fabricated_data
Replace unverified numerical data in markdown tables with '---'. Loads experiment_summary.json as ground truth, extracts all verified metric
backend/agent/researchclaw/pipeline/executor.py:8260
↓ 6 callersMethod_save_artifact
Save intermediate artifact to stage directory.
backend/agent/researchclaw/agents/figure_agent/orchestrator.py:178
↓ 6 callersFunction_skip_discussion_proceed_s8
Skip discussion and proceed directly to S8 for a single agent.
backend/services/agent_bridge.py:2421
↓ 6 callersFunction_time_weight
Compute exponential decay weight for a lesson based on age. Uses 30-day half-life: weight = exp(-age_days * ln(2) / 30). Returns 0.0 for less
backend/agent/researchclaw/evolution.py:326
↓ 6 callersMethod_topic_hash
(topic: str)
backend/agent/researchclaw/agents/code_searcher/cache.py:121
↓ 6 callersMethodensure_image
Return True if *image* exists locally (does NOT pull).
backend/agent/researchclaw/experiment/docker_sandbox.py:237
↓ 6 callersFunctionensure_torch_available
Check if PyTorch is importable; attempt install if not. Returns True if torch is available after this call.
backend/agent/researchclaw/hardware.py:209
↓ 6 callersMethodextract_motion_magnitude
(self, frames: np.ndarray)
assets/showcase/quantifying-hallucination/main.py:188
↓ 6 callersFunctionfrom_legacy_exp_plan
Convert a legacy exp_plan.yaml (baselines/proposed/ablations) to the universal format. This allows existing ML experiment plans to work with
backend/agent/researchclaw/domains/experiment_schema.py:179
↓ 6 callersMethodget_blueprint_context
Extra context injected into the blueprint generation prompt. Includes domain-specific file structure guidance, library hints, etc.
backend/agent/researchclaw/domains/prompt_adapter.py:67
↓ 6 callersFunctionload_all_profiles
Load all YAML profiles from the profiles directory.
backend/agent/researchclaw/domains/detector.py:154
↓ 6 callersFunctionpick
(arr: T[])
frontend/src/mock.ts:6
↓ 6 callersMethodsave
(self)
backend/services/agent_bridge.py:613
↓ 6 callersFunctionschedule_idle_agents
Assign pending tasks to idle agents (FIFO pull).
backend/services/agent_bridge.py:2748
↓ 6 callersMethodshould_gate
Check if PRM gating is configured for this stage.
backend/agent/researchclaw/metaclaw_bridge/prm_gate.py:212
↓ 6 callersFunctiontool_spec
(name: str, description: str, properties: dict[str, Any], required: list[str])
backend/agent/researchclaw/pipeline/claw_engine/tools/definitions.py:13
↓ 6 callersFunctionvalidate_code
Run all validations and return a combined :class:`CodeValidation`. 1. Syntax check (always) 2. Security scan (unless *skip_security*) 3.
backend/agent/researchclaw/experiment/validator.py:370
↓ 6 callersFunctionvalidate_entry_point_resolved
Validate that *entry_point* resolves inside *staging*. Returns an error message if invalid, ``None`` if valid. Call this **after** copying fi
backend/agent/researchclaw/experiment/sandbox.py:37
↓ 6 callersFunctionvalidate_imports
Check that all imported modules are available. *available* defaults to ``SAFE_STDLIB | COMMON_SCIENCE`` plus any modules already in ``sys.mod
backend/agent/researchclaw/experiment/validator.py:344
↓ 6 callersFunctionverify_by_title_search
Search for a paper by title and verify its existence. Uses the unified ``search_papers`` function from our literature module. Returns *None*
backend/agent/researchclaw/literature/verify.py:574
↓ 6 callersFunctionwrite_kb_entry
Write a single KB entry to the appropriate category directory. Returns the path to the written file.
backend/agent/researchclaw/knowledge/base.py:86
↓ 6 callersFunctionwrite_stage_to_kb
Write stage results to the knowledge base. Reads the primary output artifact and creates a KB entry in the appropriate category directory.
backend/agent/researchclaw/knowledge/base.py:146
↓ 5 callersMethod_abs_cwd
(self)
backend/agent/researchclaw/llm/acp_client.py:190
↓ 5 callersFunction_build_body
Convert all non-title/abstract sections to LaTeX body text. When a paper has its title as an H1 heading (``# My Paper Title``), that heading
backend/agent/researchclaw/templates/converter.py:728
↓ 5 callersFunction_build_draft
Build a paper draft with default prose sections.
backend/agent/tests/test_rc_executor.py:3256
↓ 5 callersMethod_build_prompt
Build a Gemini prompt for academic figure generation.
backend/agent/researchclaw/agents/figure_agent/nano_banana.py:234
↓ 5 callersFunction_build_ssh_base
Build the base ssh command with common options. *extra_opts* are inserted **before** the hostname so that SSH interprets them as SSH options,
backend/agent/researchclaw/experiment/ssh_sandbox.py:424
↓ 5 callersMethod_chat_json
Send a chat message expecting JSON output. Falls back to regex extraction.
backend/agent/researchclaw/agents/base.py:102
↓ 5 callersMethod_collect_files
Collect generated Python files, requirements.txt, and setup.py. Only collects files that are **new or modified** relative to the code
backend/agent/researchclaw/pipeline/opencode_bridge.py:625
↓ 5 callersMethod_crawl_with_urllib
Lightweight fallback: fetch HTML and strip tags.
backend/agent/researchclaw/web/crawler.py:192
↓ 5 callersMethod_detect_pip_packages
Scan Python files for import statements and return pip package names.
backend/agent/researchclaw/experiment/docker_sandbox.py:517
↓ 5 callersMethod_enforce_bounds
Enforce min/max figure counts and required categories.
backend/agent/researchclaw/agents/figure_agent/decision.py:372
↓ 5 callersMethod_execute_in_docker
Execute script inside an isolated Docker container. Security measures: - ``--network none``: No network access (prevents data exfiltr
backend/agent/researchclaw/agents/figure_agent/renderer.py:284
↓ 5 callersMethod_filter_benchmarks
Filter benchmarks by tier, size, and network policy.
backend/agent/researchclaw/agents/benchmark_agent/selector.py:53
↓ 5 callersMethod_get
Make a GET request to the GitHub API.
backend/agent/researchclaw/agents/code_searcher/github_client.py:93
↓ 5 callersMethod_heuristic_decide
Generate figure decisions without LLM (rule-based fallback).
backend/agent/researchclaw/agents/figure_agent/decision.py:287
↓ 5 callersFunction_http_response
(status_code: int, body: bytes, content_type: str = "text/plain", extra_headers: di
backend/services/agent_bridge.py:3310
↓ 5 callersMethod_invoke_aider
Run a single aider invocation in the workspace.
backend/agent/researchclaw/pipeline/openhands_bridge.py:609
↓ 5 callersFunction_make_exa_response
(results: list[SimpleNamespace] | None = None)
backend/agent/tests/test_exa_search.py:46
↓ 5 callersFunction_make_experiment_config
(**overrides)
backend/agent/tests/test_ssh_and_colab_sandbox.py:39
↓ 5 callersMethod_parse_pub
Parse a scholarly publication object into ScholarPaper.
backend/agent/researchclaw/web/scholar.py:201
↓ 5 callersFunction_parse_skills_response
Parse the LLM response into a list of skill dicts.
backend/agent/researchclaw/metaclaw_bridge/lesson_to_skill.py:82
↓ 5 callersMethod_prepare_workspace
Create a temporary workspace directory with context files.
backend/agent/researchclaw/pipeline/opencode_bridge.py:317
← previousnext →101–200 of 3,044, ranked by callers