Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ScaleML/AgentSPEX
/ functions
Functions
1,694 in github.com/ScaleML/AgentSPEX
⨍
Functions
1,694
◇
Types & classes
222
↳
Endpoints
21
↓ 7 callers
Function
apply_yaml_config_fallback
Apply YAML config as fallback for unset CLI arguments. Args: args: Parsed CLI arguments yaml_config: Config from YAML file
src/harness/run.py:108
↓ 7 callers
Function
bm25_index
Build a BM25 index over a list of documents and save it under the given collection name. Args: collection: Name for this index (e.g.
src/sandbox_vm/tools/retrieval/bm25_index.py:13
↓ 7 callers
Function
call_tool
(tool_name: str, **kwargs)
tests/tool_tests/test_file.py:15
↓ 7 callers
Method
close
Public method to clean up the client
src/mcp_client/client.py:121
↓ 7 callers
Function
convertNestedSteps
Convert nested FlowNodeData[] via recursive map, defaulting to [].
yaml-flow-editor/src/utils/workflowStepConverters.ts:67
↓ 7 callers
Function
copyDefined
Copy fields from src to dst only when explicitly defined (not undefined).
yaml-flow-editor/src/converters/graph-to-yaml.ts:30
↓ 7 callers
Method
get_config_with_defaults
Extract config section from task data with default values. This method extracts the 'config' section from a YAML task file,
src/harness/parsing/yaml_parser.py:98
↓ 7 callers
Function
get_tool_name
Extract the tool name from a tool definition. Handles various tool definition formats including: - OpenAI function format: {'function': {'nam
src/harness/types/serialization.py:12
↓ 7 callers
Function
load_submodule_tools_for_yaml
Load all submodule tools defined in a YAML file. Returns: Tuple of (tools list, registry dict mapping function name to spec)
src/harness/submodules/loader.py:159
↓ 7 callers
Function
parse_submodule_function_declaration
Parse a submodule's function declaration from its YAML data.
src/harness/submodules/loader.py:40
↓ 7 callers
Function
print_box
(lines: list[str], title: str = "", width: int = 80 - 4)
scripts/setup_discord.py:23
↓ 7 callers
Function
restore_workspace_from_manifest
Rebuild workspace state from a previously captured manifest. Returns True if restore was fully successful, False if partial/failed.
src/harness/checkpoints/workspace_manifest.py:315
↓ 7 callers
Function
useInnerStep
()
yaml-flow-editor/src/contexts/InnerStepContext.tsx:48
↓ 6 callers
Method
_next_replay_event
Get the next LLM replay event with alignment validation. Retrieves the next event from the replay queue and validates that it matches
src/harness/checkpoints/tracing.py:79
↓ 6 callers
Method
_syntax_or_text
(self, value: Any, *, language: str = "json")
src/mcp_client/logger.py:210
↓ 6 callers
Function
bm25_search
Search a BM25 collection by name and return the top-k results with scores. Args: collection: Name of the index to search. qu
src/sandbox_vm/tools/retrieval/bm25_search.py:12
↓ 6 callers
Function
ensure_runtime_dirs
Create the runtime directories and export env vars for subprocesses. Idempotent. Safe to call from any entry point before path-dependent work.
src/harness/paths.py:178
↓ 6 callers
Function
flowNodeDataToWorkflowStep
(stepData: FlowNodeData)
yaml-flow-editor/src/utils/workflowStepConverters.ts:271
↓ 6 callers
Method
from_dict
(d: dict)
verifier/AgentVerifier/WorkflowToLean.py:127
↓ 6 callers
Function
insertNestedItem
( currentData: any, pathParts: string[], targetIndex: number, newItem: FlowNodeData )
yaml-flow-editor/src/utils/flow-utils.ts:159
↓ 6 callers
Method
invoke
Route tool invocations through docker exec. Handles shell_run, fs_read, and fs_write tools.
src/benchmarks/swe_bench_verified/docker_exec_client.py:111
↓ 6 callers
Method
make_mcp_tool_function
( self, tool_name: str, param_names: list[str] )
src/mcp_client/client.py:313
↓ 6 callers
Function
print_box
(lines: list[str], title: str = "", width: int = 80 - 4)
scripts/setup_slack.py:18
↓ 6 callers
Function
print_info
(text: str)
scripts/setup_discord.py:42
↓ 5 callers
Function
_copy_file_if_exists
Copy a file if it exists. Args: src: Source file path dest: Destination file path Returns: True if file was copied,
src/harness/utils/reproducibility.py:135
↓ 5 callers
Function
_mark_substep_completed
Mark a sub-step as completed and persist its output. For ``input`` steps, an empty output means the user likely did not provide any input (e.
src/harness/execution/step_handlers/control.py:96
↓ 5 callers
Function
_skip_completed_substep
If *step_id* is already completed in the checkpoint, return its saved output (or "" if none was stored). Otherwise return ``None`` to signal
src/harness/execution/step_handlers/control.py:53
↓ 5 callers
Function
adjustTargetPath
(sourceBranch: string, sourceIndex: number, targetBranch: string)
yaml-flow-editor/src/utils/flow-utils.ts:128
↓ 5 callers
Function
append_jsonl
(path: Path, event: Dict[str, Any])
src/harness/checkpoints/durable_execution.py:11
↓ 5 callers
Function
boxesOverlap
(a: Box, b: Box, pad: number)
yaml-flow-editor/src/utils/layout.ts:125
↓ 5 callers
Function
calculateNestedStepsHeight
Recursively estimate pixel height for nested steps (used for container node sizing).
yaml-flow-editor/src/utils/layout.ts:12
↓ 5 callers
Function
createEdge
( ctx: ConversionContext, source: string, target: string, sourceHandle?: string, targetHandle?: stri
yaml-flow-editor/src/converters/yaml-to-graph.ts:61
↓ 5 callers
Function
detect_malformed_code_blocks
(text: str)
src/harness/parsing/inline_tools.py:41
↓ 5 callers
Function
getNestedItem
( currentData: any, pathParts: string[], targetIndex: number )
yaml-flow-editor/src/utils/flow-utils.ts:85
↓ 5 callers
Function
init_run_env
Populate ``AGENTSPEX_RUN_*`` env vars and return ``(run_id, host_run_dir)``. This is the single point where per-run paths are decided. All entry
src/harness/paths.py:129
↓ 5 callers
Method
list_tools
(self)
src/mcp_client/client.py:280
↓ 5 callers
Function
load_yaml_config
Load config section from YAML file. Args: workflow_file: Path to the YAML workflow file Returns: Dictionary with config
src/harness/run.py:93
↓ 5 callers
Method
next_llm_message
(self, *, step_id: str, iteration: int)
src/harness/checkpoints/durable_execution.py:62
↓ 5 callers
Function
parseModuleYaml
(content: string, defaultPath: string)
yaml-flow-editor/src/utils/parseModuleYaml.ts:39
↓ 5 callers
Function
parse_body_steps
(body_steps: list, body_prev: Optional[int])
verifier/AgentVerifier/WorkflowToLean.py:427
↓ 5 callers
Function
print_error
(text: str)
scripts/setup_discord.py:38
↓ 5 callers
Function
sseWrite
(res: ServerResponse, event: string, data: unknown)
yaml-flow-editor/vite.config.ts:55
↓ 4 callers
Function
_exec_script
(script_name: str, *args: str)
src/harness/ephemeral/repl.py:152
↓ 4 callers
Function
_exec_script
Replace the current process with a script from scripts/.
src/harness/ephemeral/cli.py:13
↓ 4 callers
Method
_expand_template
Expand template variables
src/harness/parsing/yaml_parser.py:255
↓ 4 callers
Function
_extract_condition_vars
Extract variable names from a condition string.
verifier/AgentVerifier/WorkflowToLean.py:378
↓ 4 callers
Function
_get_headers
()
src/sandbox_vm/tools/discord/messaging.py:16
↓ 4 callers
Function
_handle_request
( channel_id: str, message_id: str, user_id: str, message_text: str )
scripts/discord_listener.py:238
↓ 4 callers
Method
_inner_loop
The core while(True) tool-calling loop.
src/harness/agentic_loop/loop.py:902
↓ 4 callers
Function
_literal_or_source
(node: ast.AST, source: str)
src/harness/parsing/inline_tools.py:82
↓ 4 callers
Method
_load_replay
Load LLM response events from a trace file for replay. Reads all LLM response events from a trace file and stores them for sequential
src/harness/checkpoints/tracing.py:63
↓ 4 callers
Method
_make_llm_response
(self, content, tool_calls=None)
tests/tool_tests/test_inline_tool_calls.py:156
↓ 4 callers
Function
_normalize_line
Normalize a line for comparison (strip whitespace, lowercase).
src/sandbox_vm/tools/code/patch.py:156
↓ 4 callers
Method
_process_workflow_no_connect
Process a workflow without connecting from a previous node. Returns the first node ID.
src/harness/yaml_visualizer_mermaid.py:136
↓ 4 callers
Function
_run
(cmd: list[str])
demo/ai_scientists/web/app.py:369
↓ 4 callers
Function
_safe_resolve
(path: str)
scripts/dashboard.py:2754
↓ 4 callers
Function
_save_memory
Save memory to file atomically
src/sandbox_vm/tools/memory/episodic.py:33
↓ 4 callers
Function
_to_vpath
Convert a real path under `session_root` to a vpath. Raises PermissionError if `real_path` is outside `session_root`.
src/sandbox_vm/tools/utils.py:22
↓ 4 callers
Method
_trace
Write a trace event for durable execution. Thread-safe method that records events to the trace file when tracing is enabled.
src/harness/checkpoints/tracing.py:48
↓ 4 callers
Method
_update_session_id_from_transport
Best-effort: capture current MCP session id from transport.
src/mcp_client/client.py:85
↓ 4 callers
Function
apply
(dir: 'TB' | 'LR')
yaml-flow-editor/src/App.tsx:1017
↓ 4 callers
Function
build_submodule_tool
Build a tool definition from a submodule function spec.
src/harness/submodules/loader.py:126
↓ 4 callers
Function
call_tool
(tool_name: str, **kwargs)
tests/tool_tests/test_molecular_prediction.py:23
↓ 4 callers
Method
close
(self)
src/sandbox_vm/tools/session_management.py:91
↓ 4 callers
Method
close_sync
Close shell and clean up session directory.
src/sandbox_vm/tools/session_management.py:174
↓ 4 callers
Function
determine_write_type
Map a YAML step-type key to the Lean output BaseType. Current YAML workflow language (src/harness/execution/interpreter.py::_STEP_TYPE_KEYS)
verifier/AgentVerifier/WorkflowToLean.py:254
↓ 4 callers
Function
ensure_conversation_history
Initialize or retrieve conversation history from context. If conversation history doesn't exist, creates it with a system prompt. The system
src/harness/execution/conversation.py:14
↓ 4 callers
Method
execute_task_step
Execute a task as a fresh, stateless LLM call. Tasks send an instruction to the LLM and capture the response. They are stateless - ea
src/harness/execution/step_handlers/basic.py:111
↓ 4 callers
Function
getOutgoingEdges
(ctx: ConversionContext, nodeId: string)
yaml-flow-editor/src/converters/graph-to-yaml.ts:92
↓ 4 callers
Function
get_step_depth
(step_id: Union[int, str])
src/harness/utils/step_utils.py:86
↓ 4 callers
Function
handleDragOver
(e: React.DragEvent)
yaml-flow-editor/src/components/nodes/NestedStepRenderer.tsx:58
↓ 4 callers
Method
multi_step_tool_call_loop
Execute the multi-step tool calling loop. This is the core execution loop that: 1. Sends messages to the LLM 2. Parses tool c
src/harness/execution/llm_executor.py:377
↓ 4 callers
Function
parseYamlParams
(str: string)
yaml-flow-editor/src/components/NodeConfigPanel.tsx:34
↓ 4 callers
Function
print_success
(text: str)
scripts/setup_discord.py:34
↓ 4 callers
Method
redact
(self, s: str)
src/sandbox_vm/tools/session_management.py:243
↓ 4 callers
Function
resolveBranchSteps
* Resolve branch steps: prefer inline container steps over edge-connected legacy steps.
yaml-flow-editor/src/converters/graph-to-yaml.ts:99
↓ 4 callers
Method
send
(self, text: str)
src/sandbox_vm/tools/session_management.py:81
↓ 4 callers
Method
state
(self)
scripts/dashboard.py:465
↓ 4 callers
Function
toYamlString
(obj: unknown)
yaml-flow-editor/src/components/NodeConfigPanel.tsx:7
↓ 4 callers
Method
to_dict
(self)
verifier/AgentVerifier/WorkflowToLean.py:114
↓ 4 callers
Method
to_lean_typed
(self)
verifier/AgentVerifier/WorkflowToLean.py:65
↓ 4 callers
Function
truncate_to_first_code_block
If text contains multiple code blocks, truncate to keep only the first one. Returns the original text if there are 0 or 1 code blocks.
src/harness/parsing/inline_tools.py:65
↓ 4 callers
Function
yaml_key_to_step_type
Map a YAML step-type key to the Lean StepType constructor name. Historical note: Lean's `step` and `task` meanings were once reversed relativ
verifier/AgentVerifier/WorkflowToLean.py:274
↓ 3 callers
Method
_append_line
( self, line: str, *, log_path: str | None = None, host_path: Path | N
src/mcp_client/logger.py:844
↓ 3 callers
Function
_collect_logs
(root: Optional[Path])
scripts/dashboard.py:2793
↓ 3 callers
Method
_default_path
(self)
scripts/dashboard.py:545
↓ 3 callers
Function
_extract_from_text
(text: str)
src/harness/submodules/specs.py:28
↓ 3 callers
Function
_extract_title_from_bibtex
(bibtex_str)
src/sandbox_vm/tools/refiner/citation_searcher.py:274
↓ 3 callers
Function
_get_indentation
Extract the leading whitespace from a line.
src/sandbox_vm/tools/code/patch.py:161
↓ 3 callers
Method
_get_or_create
(self, path: Path)
scripts/dashboard.py:553
↓ 3 callers
Function
_get_slack_client
Get a configured Slack WebClient.
src/sandbox_vm/tools/slack/messaging.py:14
↓ 3 callers
Method
_get_step
(self, step_id: str)
scripts/dashboard.py:154
↓ 3 callers
Function
_handle_response
(response: requests.Response)
src/sandbox_vm/tools/discord/messaging.py:26
↓ 3 callers
Method
_inject_shell_defaults
Inject default cwd and conda_env for shell_run tool calls. Automatically adds working directory and conda environment settings from c
src/harness/execution/shell_utils.py:21
↓ 3 callers
Method
_is_submit_command
Check if command contains the task completion token. When ``require_submodule_submit`` is set in *context*, direct submission is bloc
src/harness/execution/shell_utils.py:60
↓ 3 callers
Function
_is_vm_running
()
src/harness/ephemeral/repl.py:143
↓ 3 callers
Method
_make_client
(self)
tests/test_llm_client.py:11
↓ 3 callers
Function
_plain_tool_msg
Tool message with no som_elements (e.g. a non-browser tool).
tests/tool_tests/test_vision_pipeline.py:201
↓ 3 callers
Method
_process_step
Process a single step and return its node ID
src/harness/yaml_visualizer_mermaid.py:151
↓ 3 callers
Method
_process_workflow
Process a workflow and return the last node ID
src/harness/yaml_visualizer_mermaid.py:129
← previous
next →
101–200 of 1,694, ranked by callers