MCPcopy Create free account

hub / github.com/Ericbai06/SkillDAG / functions

Functions270 in github.com/Ericbai06/SkillDAG

↓ 1 callersMethod_initialize_graph
Build initial graph structure. Args: skills_dir: path to skills directory to discover nodes from build_edges: if True
src/skilldag/graph.py:184
↓ 1 callersFunction_is_mutation_command
Return True if ``skilldag graph edit-edge ...`` is being invoked.
benchmarks/alfworld/skilldag_runtime.py:403
↓ 1 callersFunction_iter_trial_dirs
(job_dir: Path)
analysis/backfill_trial_logs.py:129
↓ 1 callersFunction_load_embeddings_cache
Load embeddings cache file, failing loudly when a path is specified.
src/skilldag/initialize.py:662
↓ 1 callersMethod_node_embed_text
Compose the e_self text for a node (matches initialize.py).
src/skilldag/graph.py:531
↓ 1 callersFunction_parse_skill_frontmatter
(skill_md: Path)
src/skilldag/graph.py:100
↓ 1 callersFunction_rank_candidates
For each row, pick neighbors: adaptive threshold (mean+1σ clipped) with top-K cap. Floor: each skill gets at least TOP_K_MIN neighbors even if th
src/skilldag/initialize.py:358
↓ 1 callersFunction_rank_needs_candidates
Asymmetric cosine: cos(anchor.e_needs, other.e_self). For each anchor i with non-None e_needs, score every other skill j by cos(e_needs[i], e
src/skilldag/initialize.py:385
↓ 1 callersFunction_resolve_args_from_upstream
Map the upstream alfworld_run.py argparse Namespace to the fields the SkillDAG runner expects. Upstream-defined skilldag flags (prefixed with
benchmarks/alfworld/skilldag_runtime.py:899
↓ 1 callersFunction_reward_from_skillsbench_result
(result: dict[str, Any])
benchmarks/skill_use_metrics.py:304
↓ 1 callersFunction_skilldag_task_header
(task_id: str, runtime: "SkillDAGRuntime")
benchmarks/alfworld/skilldag_runtime.py:351
↓ 1 callersMethod_sync_nodes_from_skills_dir
(self)
src/skilldag/graph.py:233
↓ 1 callersMethod_text_hash
(text: str)
src/skilldag/graph.py:540
↓ 1 callersMethod_vector_score
Cosine similarity vs every node's e_self embedding.
src/skilldag/graph.py:632
↓ 1 callersMethod_walkable_neighbors
Return ``[(neighbor_id, edge_type)]`` reachable from ``skill_id`` via walkable edges, both directions, excluding ``conflicts_with``.
src/skilldag/graph.py:651
↓ 1 callersFunctionadd_anthropic_caching
Inline copy of terminus_2's anthropic_caching.add_anthropic_caching. Marks the last 2 messages' content as ``ephemeral`` cache breakpoints for
benchmarks/alfworld/skilldag_runtime.py:72
↓ 1 callersFunctionaggregate_rows
(rows: list[SkillUseRow])
benchmarks/skill_use_metrics.py:387
↓ 1 callersFunctionalfworld_traj_path
(alfworld_data: Path, episode_name: str)
benchmarks/skill_use_metrics.py:198
↓ 1 callersFunctionanalyze
(job_dir: Path, total: int | None, gold_root: Path | None)
analysis/analyze_skilldag_run.py:261
↓ 1 callersFunctionattach_alfworld_skill_use_metric
( result: dict[str, Any], *, alfworld_data: Path | None = None, include_navigation: bool = Tru
benchmarks/skill_use_metrics.py:247
↓ 1 callersFunctionbase_task_name
(trial_dir: Path)
analysis/score_skillsbench_gos.py:145
↓ 1 callersFunctionbuild_docker_block
(_variant: str)
benchmarks/skillsbench/graphskills_benchmark.py:61
↓ 1 callersFunctionbuild_manifest
Scan a completed run directory and produce a query manifest. The manifest maps task_id -> list of (query_string, gold_skill_ids).
scripts/replay_queries.py:143
↓ 1 callersFunctionbuild_skilldag_docker_block
Canonical Dockerfile snippet injected between GRAPH_MARKER_START/END. The generated docker-compose file bind-mounts: * the SkillDAG package
benchmarks/skillsbench/skilldag_benchmark.py:68
↓ 1 callersFunctionbuild_summary
(job_dir: Path, expected_total: int | None)
analysis/score_skillsbench_gos.py:261
↓ 1 callersFunctionbuild_task_list
(tasks_root: Path, selected_tasks: list[str])
benchmarks/skillsbench/graphskills_benchmark.py:105
↓ 1 callersFunctioncache_path_for
(graph_path: Path)
scripts/validate_graph_inputs.py:41
↓ 1 callersFunctioncanonical_task_source
Prefer the stable canonical task under the bundled data tree.
benchmarks/skillsbench/graphskills_benchmark.py:97
↓ 1 callersFunctioncollect_gold_skill_ids
Return curated SkillsBench skill ids before generated variants strip them.
benchmarks/skillsbench/skilldag_benchmark.py:181
↓ 1 callersFunctioncollect_skillsbench_trial_dirs
(paths: Iterable[Path])
benchmarks/skill_use_metrics.py:365
↓ 1 callersFunctioncollect_trials
(job_dir: Path)
analysis/score_skillsbench_gos.py:253
↓ 1 callersFunctioncommand_texts
(items: list[dict[str, Any]])
analysis/analyze_skilldag_run.py:161
↓ 1 callersFunctioncopy_task_tree
(source_task_dir: Path, destination_task_dir: Path)
benchmarks/skillsbench/graphskills_benchmark.py:91
↓ 1 callersFunctioncross_scale
Rerun queries on each scale graph and compute Ret@K / MRR.
scripts/replay_queries.py:209
↓ 1 callersFunctionedit_effect
Compare cold vs edited graph on the same query set.
scripts/replay_queries.py:256
↓ 1 callersFunctionensure_graph
Ensure skillgraph.json exists at graph_path; bootstrap if missing.
benchmarks/alfworld/skilldag_runtime.py:872
↓ 1 callersFunctionexception_info
(result: dict[str, Any] | None)
analysis/score_skillsbench_gos.py:105
↓ 1 callersFunctionexception_kind
(exc_type: str | None, message: str | None)
analysis/score_skillsbench_gos.py:119
↓ 1 callersFunctionexpected_trial_count
(job_dir: Path, override: int | None)
analysis/score_skillsbench_gos.py:180
↓ 1 callersFunctionextract_chat_completion_content
(message: dict)
benchmarks/alfworld/skilldag_runtime.py:170
↓ 1 callersFunctionextract_search_queries
Extract search query strings from a SkillsBench trial directory. Parses trajectory.json or agent/prompt.txt files to find the queries the age
scripts/replay_queries.py:65
↓ 1 callersFunctionextract_used_skills_from_trial_dir
(trial_dir: Path)
benchmarks/skill_use_metrics.py:158
↓ 1 callersFunctionfirst_search_top5
(items: list[dict[str, Any]])
analysis/analyze_skilldag_run.py:170
↓ 1 callersFunctionfull_protocol
Concatenate every shared section in canonical order. Used directly by SkillsBench's ``inject_skilldag_instruction_protocol`` to inline the same
benchmarks/shared/skilldag_prompt.py:222
↓ 1 callersMethodget_skill
(self, skill_id: str)
src/skilldag/graph.py:755
↓ 1 callersFunctiongold_alfworld_skills
( traj_path: Path, *, include_navigation: bool = True, )
benchmarks/skill_use_metrics.py:208
↓ 1 callersFunctiongold_for
(gold_root: Path, task: str)
analysis/analyze_skilldag_run.py:193
↓ 1 callersFunctiongold_skillsbench_skills
(task_dir: Path)
benchmarks/skill_use_metrics.py:286
↓ 1 callersFunctionhit_metrics
(rows: list[dict[str, Any]])
analysis/analyze_skilldag_run.py:201
↓ 1 callersFunctioninject_skilldag_instruction_protocol
Append a universal online SkillDAG protocol to generated task instructions. This is the only agent-agnostic prompt channel we can rely on across
benchmarks/skillsbench/skilldag_benchmark.py:136
↓ 1 callersFunctionis_infra_failure
(exc_type: str | None, message: str | None)
analysis/score_skillsbench_gos.py:138
↓ 1 callersFunctioniter_alfworld_rows
( result_dirs: Iterable[Path], *, alfworld_data: Path, include_navigation: bool = True, )
benchmarks/skill_use_metrics.py:264
↓ 1 callersFunctioniter_skillsbench_rows
( trial_dirs: Iterable[Path], *, gold_tasks_dir: Path, )
benchmarks/skill_use_metrics.py:325
↓ 1 callersFunctionjson_objects
(text: str)
analysis/analyze_skilldag_run.py:139
↓ 1 callersFunctionlatency_metrics
(job_dir: Path)
analysis/analyze_skilldag_run.py:95
↓ 1 callersFunctionlink_or_copy_tree
(source: Path, destination: Path)
benchmarks/skillsbench/graphskills_benchmark.py:40
↓ 1 callersFunctionllm_call
litellm completion with anthropic ephemeral caching. Wrapped with retry Backoff schedule: 5s → 10s → 20s → 40s → 80s plus jitter, 5 tries tota
benchmarks/alfworld/skilldag_runtime.py:500
↓ 1 callersFunctionload_gold_skills
Load ground-truth skill IDs for a trial from the task's gold_skills.json. Args: trial_dir: directory of a single trial run. gold_
scripts/replay_queries.py:110
↓ 1 callersFunctionload_score_module
()
analysis/analyze_skilldag_run.py:18
↓ 1 callersFunctionmain
()
analysis/analyze_skilldag_run.py:273
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
analysis/score_skillsbench_gos.py:333
↓ 1 callersFunctionmain
()
analysis/backfill_trial_logs.py:137
↓ 1 callersFunctionmain
()
scripts/replay_queries.py:292
↓ 1 callersFunctionmain
()
scripts/validate_graph_inputs.py:45
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
benchmarks/skill_use_metrics.py:499
↓ 1 callersFunctionmain
()
benchmarks/skillsbench/skilldag_benchmark.py:351
↓ 1 callersFunctionmain
()
benchmarks/alfworld/run_alfworld.py:26
↓ 1 callersFunctionnormalize_openrouter_usage
Normalize OpenRouter usage to local token buckets. OpenRouter reports prompt caching under ``prompt_tokens_details``. We store uncached promp
benchmarks/alfworld/skilldag_runtime.py:137
↓ 1 callersFunctionopenrouter_payload_model
Map local OpenRouter aliases to the model id sent to OpenRouter.
benchmarks/alfworld/skilldag_runtime.py:121
↓ 1 callersFunctionparse_args
()
benchmarks/skillsbench/skilldag_benchmark.py:331
↓ 1 callersFunctionparse_args
()
benchmarks/alfworld/run_alfworld.py:8
↓ 1 callersFunctionparse_turn_payload
Parse one structured agent turn. Expected format: {"thought": "...", "action": "..."} or {"thought": "...", "command": "..."}
benchmarks/alfworld/skilldag_runtime.py:271
↓ 1 callersFunctionpatch_skilldag_dockerfile
Inject the skilldag block between GRAPH_MARKER_START/END. Order matters: 1. Strip any upstream `COPY skills …` lines from the *original* Do
benchmarks/skillsbench/skilldag_benchmark.py:110
↓ 1 callersFunctionpatch_task_toml_docker_image
Set `docker_image = "<image_tag>"` in task.toml's [environment] block. Idempotent: if the field already exists it is overwritten; if missing it
benchmarks/skillsbench/skilldag_benchmark.py:292
↓ 1 callersFunctionprepare_skilldag_task
Copy canonical task, overlay _skilldag_template files, drop workspace.
benchmarks/skillsbench/skilldag_benchmark.py:218
↓ 1 callersFunctionprint_summary
(payload: dict[str, Any])
benchmarks/skill_use_metrics.py:433
↓ 1 callersFunctionprint_text
(summary: dict[str, Any])
analysis/score_skillsbench_gos.py:306
↓ 1 callersFunctionprocess_ob
(ob: str)
benchmarks/alfworld/skilldag_runtime.py:219
↓ 1 callersFunctionrender_compose_for_skilldag
Rewrite relative mount paths in _skilldag_template/docker-compose.yaml to be resolvable from the rendered env dir.
benchmarks/skillsbench/skilldag_benchmark.py:193
↓ 1 callersMethodrepair_set
(self, skill_ids: list[str])
src/skilldag/graph.py:884
↓ 1 callersFunctionreplace_task_skills
(task_dir: Path, replacement_dir: Path)
benchmarks/skillsbench/graphskills_benchmark.py:54
↓ 1 callersFunctionresolve_job_dir
(path: Path, job_name: str | None = None)
analysis/score_skillsbench_gos.py:161
↓ 1 callersFunctionresult_for
(trial_dir: Path)
analysis/analyze_skilldag_run.py:85
↓ 1 callersFunctionretrieval_metrics
(job_dir: Path, gold_root: Path)
analysis/analyze_skilldag_run.py:210
↓ 1 callersFunctionreward_from_files
(trial_dir: Path)
analysis/score_skillsbench_gos.py:90
↓ 1 callersFunctionreward_from_result
(result: dict[str, Any] | None)
analysis/score_skillsbench_gos.py:80
↓ 1 callersMethodrollback
Revert committed edit(s). Without ``task_id`` reverts the most recent ``steps`` reversible entries (LIFO); with ``task_id`` reverts ev
src/skilldag/graph.py:1188
↓ 1 callersFunctionrun_shell_command
Execute one shell command. Return (stdout, return_code). stdout/stderr is truncated to ``COMMAND_OUTPUT_MAX_CHARS`` so a noisy command can't
benchmarks/alfworld/skilldag_runtime.py:428
↓ 1 callersFunctionrun_skilldag
Dispatched from alfworld_run.py when ``--mode skilldag``.
benchmarks/alfworld/skilldag_runtime.py:949
↓ 1 callersFunctionrun_task
( env, task_ob: str, task_name: str, args, runtime: SkillDAGRuntime | None, )
benchmarks/alfworld/skilldag_runtime.py:676
↓ 1 callersFunctionsanitize_response
Trim common reasoning leakage before structured parsing.
benchmarks/alfworld/skilldag_runtime.py:225
↓ 1 callersFunctionscore_trial
(trial_dir: Path)
analysis/score_skillsbench_gos.py:213
↓ 1 callersMethodsearch_batch
Run search() over N queries with ONE embedding API call. Returns a list aligned with input ``queries``; each element is the same ``{m
src/skilldag/graph.py:476
↓ 1 callersFunctionskill_ids
(skills_dir: Path)
scripts/validate_graph_inputs.py:29
↓ 1 callersMethodto_dict
(self)
src/skilldag/graph.py:90
↓ 1 callersFunctiontrajectory
(trial: Path)
analysis/analyze_skilldag_run.py:150
↓ 1 callersMethodvalidate
(self)
src/skilldag/graph.py:272
↓ 1 callersFunctionwrite_json
(path: Path, data: Any)
analysis/analyze_skilldag_run.py:35
↓ 1 callersFunctionwrite_skillsbench_skill_use_metrics
( trial_roots: Iterable[Path], *, output: Path | None = None, gold_tasks_dir: Path | None = No
benchmarks/skill_use_metrics.py:483
Method__init__
(self, code: str, message: str)
src/skilldag/graph.py:85
← previousnext →101–200 of 270, ranked by callers