MCPcopy Create free account

hub / github.com/ScaleML/AgentSPEX / functions

Functions1,694 in github.com/ScaleML/AgentSPEX

↓ 1,212 callersMethodget
(self, session_id: str)
src/sandbox_vm/tools/session_management.py:259
↓ 115 callersFunctionevaluate_condition
Evaluate a condition expression, optionally with ``and`` / ``or`` connectives. Supports: - Single comparisons: ``"score >= 0.5"`` -
src/harness/parsing/conditions.py:215
↓ 110 callersFunction_err
(msg: str, **k)
src/sandbox_vm/tools/utils.py:11
↓ 78 callersMethodresolve
(self, handle_uri: str, need: Perm)
src/sandbox_vm/tools/session_management.py:220
↓ 76 callersFunctionupdateStep
(patch: Partial<FlowNodeData>)
yaml-flow-editor/src/components/SubmoduleStepConfigPanel.tsx:33
↓ 70 callersFunctionexpand_template_variables
Expand template variables in text using context
src/harness/parsing/templates.py:7
↓ 57 callersMethodwrite
(self, event: Dict[str, Any])
src/harness/checkpoints/durable_execution.py:156
↓ 44 callersMethodrun
Run the YAML agent with a YAML workflow file. This is the main entry point for executing a workflow. It handles: - Loading and parsin
src/harness/agent.py:190
↓ 43 callersFunctionmemory
Unified long-term memory tool for persistent information storage and retrieval. This tool provides episodic memory capabilities that persist
src/sandbox_vm/tools/memory/episodic.py:60
↓ 40 callersMethodparse
Parse an LLM message and extract all tool calls. Args: message: The message object from LLM response. Expect
src/harness/execution/response_parser.py:95
↓ 39 callersFunction_ok
(**k)
src/sandbox_vm/tools/utils.py:7
↓ 39 callersMethodlog_event
(self, logger, event_type: str, data: Dict[str, Any])
src/mcp_client/logger.py:933
↓ 35 callersMethodevent
Log a structured event for machine parsing.
src/mcp_client/logger.py:905
↓ 35 callersFunctionrenderField
( label: string, field: string, type: 'text' | 'textarea' | 'number' = 'text', placeholder?: s
yaml-flow-editor/src/components/NodeConfigPanel.tsx:133
↓ 34 callersMethodcompute
Compute effective tool configuration for a step. Applies filtering rules to determine which tools and submodules are available for th
src/harness/tools/filtering.py:44
↓ 31 callersFunction_log
(msg: str)
src/harness/checkpoints/workspace_manifest.py:115
↓ 29 callersMethodload_task
Load and parse a YAML task file
src/harness/parsing/yaml_parser.py:22
↓ 28 callersFunctionresolve_dotted_path
Resolve a dotted path like 'A.B.C' through nested dicts in context. Walks each segment of the dot-separated path, descending into nested dict
src/harness/parsing/conditions.py:50
↓ 26 callersFunctionalloc_id
()
verifier/AgentVerifier/WorkflowToLean.py:410
↓ 26 callersMethodrun
Run a single task through the agentic loop. Args: task: The user's task description. plan_mode: If True, runs structu
src/harness/agentic_loop/loop.py:158
↓ 25 callersFunction_log
(msg: str)
src/harness/checkpoints/workspace.py:46
↓ 22 callersMethodstart
(self, timeout: float = 15.0)
src/sandbox_vm/tools/app_control/browser.py:394
↓ 21 callersFunctionresolve_operand
Resolve an operand to its actual value. Args: operand: Operand string (variable name, number, or quoted string) context: Con
src/harness/parsing/conditions.py:84
↓ 20 callersMethodsubmit
(self, coro)
src/sandbox_vm/tools/app_control/browser.py:452
↓ 20 callersMethodwith_yaml_config
Create a NEW EffectiveArgs with YAML config overrides (immutable pattern). This method does not modify the current instance. Instead
src/harness/types/config.py:82
↓ 19 callersMethod_get_next_node_id
Generate next node ID
src/harness/yaml_visualizer_mermaid.py:564
↓ 19 callersFunction_image_msg
(label="screenshot")
tests/tool_tests/test_vision_pipeline.py:27
↓ 19 callersFunctionbuild_reads
(vs: list[str])
verifier/AgentVerifier/WorkflowToLean.py:419
↓ 19 callersMethodtouch
(self)
src/sandbox_vm/tools/app_control/browser.py:391
↓ 18 callersFunction_som_tool_msg
Tool message whose content JSON contains som_elements.
tests/tool_tests/test_vision_pipeline.py:182
↓ 18 callersMethodexecute_basic_step
Execute a step with persistent conversation history. Steps maintain conversation history across iterations, enabling multi-turn inter
src/harness/execution/step_handlers/basic.py:34
↓ 18 callersFunctionwriteJson
(res: ServerResponse, status: number, payload: unknown)
yaml-flow-editor/vite.config.ts:49
↓ 17 callersFunction_sid
(ctx: Context)
src/sandbox_vm/tools/utils.py:15
↓ 17 callersFunctioncreateNode
( ctx: ConversionContext, type: string, data: FlowNodeData, position: { x: number; y: number } )
yaml-flow-editor/src/converters/yaml-to-graph.ts:49
↓ 17 callersMethodexecute
Execute a single tool and return the result. Args: tool_name: Name of the tool to execute. tool_args: Arguments for t
src/harness/tools/executor.py:81
↓ 17 callersMethodinvoke
( self, name: str, arguments: Dict[str, Any], is_catch_exception=True )
src/mcp_client/client.py:217
↓ 17 callersFunctionparse_computer_use_action
Extract a computer-use action from LLM response text. Args: text: Full LLM response (may include thought text before the action line).
src/harness/parsing/computer_use_parser.py:14
↓ 17 callersFunctionworkflowStepsToFlowNodeData
(steps: WorkflowStep[])
yaml-flow-editor/src/utils/workflowStepConverters.ts:260
↓ 16 callersMethod_clean_text
Clean text for Mermaid (remove problematic chars, NO HTML escaping here)
src/harness/yaml_visualizer_mermaid.py:570
↓ 16 callersFunctioncapture_workspace_manifest
Scan *workspace_dir* and return a lightweight manifest dict. Files that are text and smaller than *max_file_size* are stored inline. Larger o
src/harness/checkpoints/workspace_manifest.py:99
↓ 16 callersFunctionfilename_to_path
(p: str)
src/sandbox_vm/mcp/utils.py:17
↓ 16 callersMethodfrom_args
Create EffectiveArgs from an argparse namespace or similar object. Args: args: The original args object (typically from
src/harness/types/config.py:59
↓ 16 callersFunctionhandleChange
(field: string, value: unknown)
yaml-flow-editor/src/components/NodeConfigPanel.tsx:129
↓ 16 callersFunctionnormalizeValue
(value: T | null | undefined, defaultValue: T)
yaml-flow-editor/src/utils/workflowStepConverters.ts:34
↓ 15 callersFunctionadd_seq
(f: Optional[int], t: int)
verifier/AgentVerifier/WorkflowToLean.py:422
↓ 15 callersMethodcompletion
Make a chat completion request with automatic retry.
src/harness/llms/client.py:92
↓ 14 callersFunction_sanitize_text
Sanitize text fields returned by upstream APIs. In particular, strip NUL bytes ('\\x00') which can cause JSON files to be treated as bina
src/sandbox_vm/tools/research/paper_search.py:11
↓ 14 callersFunctionextract_submodule_result_value
(value: Any)
src/harness/submodules/specs.py:27
↓ 14 callersFunctionisStepSelected
(branch: string, index: number)
yaml-flow-editor/src/components/nodes/IfContainerNode.tsx:266
↓ 13 callersFunction_elem
( left, top, right, bottom, label="btn", tag="button", in_viewport=True, occlu
tests/tool_tests/test_som_annotator.py:57
↓ 13 callersMethod_is_shell_block
Check if a code block language indicates shell/bash content. Args: lang: The language specifier from the code block (e.g., "bash"
src/harness/execution/response_parser.py:176
↓ 13 callersFunctionget_model_context_limit
Return context window size in tokens for a model. Tries LiteLLM's model registry first, then falls back to a local dict for models not covered
src/harness/llms/tokens.py:76
↓ 13 callersMethodset_metadata
(self, key: str, value: Any)
src/harness/checkpoints/checkpoint_manager.py:133
↓ 12 callersFunction_try_parse_dict
Try to parse a string as a dict (JSON or Python literal). Handles LLM output that wraps JSON in markdown code blocks, e.g.:: ```json
src/harness/parsing/conditions.py:13
↓ 12 callersFunctioncount_message_tokens
Count tokens in a message list for the given model. Uses litellm.token_counter when available — routes to the correct tokenizer per provider
src/harness/llms/tokens.py:110
↓ 11 callersMethod_truncate
(self, s: str, limit: int | None = None)
src/mcp_client/logger.py:200
↓ 11 callersMethodadd_user_message
Add user message to history.
src/harness/agentic_loop/session.py:40
↓ 11 callersFunctionextract_template_vars
Extract {{var}} or {{var.field}} references from a string.
verifier/AgentVerifier/WorkflowToLean.py:247
↓ 11 callersFunctionlink_to
(new_id: int)
verifier/AgentVerifier/WorkflowToLean.py:431
↓ 11 callersFunctionoutputs_root
Root directory for all run outputs.
src/harness/paths.py:43
↓ 11 callersFunctionprint_info
Print info message.
scripts/setup_slack.py:39
↓ 11 callersMethodstart
(self)
scripts/dashboard.py:455
↓ 11 callersFunctionupdateNestedStructure
( currentData: any, pathParts: string[], targetIndex: number, newValue: any )
yaml-flow-editor/src/utils/flow-utils.ts:5
↓ 10 callersFunction_color
Deterministic RGBA color seeded by sequential element ID.
src/sandbox_vm/tools/app_control/som_annotator.py:21
↓ 10 callersMethod_looks_like_tool_call
Check if content looks like a function/tool call. Args: content: The code block content to check. Returns: T
src/harness/execution/response_parser.py:187
↓ 10 callersFunctionannotate_som
Draw numbered bounding boxes on a screenshot using the two-phase approach. Args: screenshot_path: Path to the input PNG screenshot.
src/sandbox_vm/tools/app_control/som_annotator.py:29
↓ 10 callersMethodevaluate_condition
Evaluate a condition string against context values.
src/harness/agent.py:180
↓ 10 callersFunctiongetNextNode
(ctx: ConversionContext, nodeId: string)
yaml-flow-editor/src/converters/graph-to-yaml.ts:77
↓ 10 callersFunctionprint_error
Print error message.
scripts/setup_slack.py:34
↓ 10 callersMethodupdate_task
Update task fields and persist. Accepts any Task field as kwarg.
src/harness/agentic_loop/task_board.py:79
↓ 9 callersFunction_load_memory
Load memory from file, return empty dict if file doesn't exist
src/sandbox_vm/tools/memory/episodic.py:14
↓ 9 callersFunction_make_screenshot
Create a temporary PNG screenshot and return its path.
tests/tool_tests/test_som_annotator.py:49
↓ 9 callersFunction_trim_som_elements
Strip som_elements from tool results beyond the last `max_keep` browser calls. Element IDs are regenerated on each browser_navigate, so old AC tr
src/harness/execution/llm_executor.py:79
↓ 9 callersFunction_trim_vision_history
Keep only the last `max_images` screenshot messages as actual images. Older screenshot messages have their image_url block stripped, leaving
src/harness/execution/llm_executor.py:49
↓ 9 callersFunctionaddOptional
Add fields to a record only if they have a defined value.
yaml-flow-editor/src/utils/workflowStepConverters.ts:60
↓ 9 callersFunctionappendLog
(run: RunInfo, stream: 'stdout' | 'stderr', chunk: string)
yaml-flow-editor/vite.config.ts:225
↓ 9 callersMethodexecute_set_variable_step
Set a context variable from a value or expression. Args: step_data: Contains 'set_variable' key with: - name: Var
src/harness/execution/step_handlers/variables.py:65
↓ 9 callersFunctionextract_token_usage
(usage)
src/harness/llms/tokens.py:11
↓ 9 callersMethodget_metadata
(self, key: str, default: Any = None)
src/harness/checkpoints/checkpoint_manager.py:138
↓ 9 callersMethodis_completed
Check if a step ID is marked as completed.
src/harness/checkpoints/checkpoint_manager.py:71
↓ 9 callersFunctioniter_jsonl
(path: Path)
src/harness/checkpoints/durable_execution.py:19
↓ 9 callersFunctionnormalize_submodule_declarations
Normalize submodule declarations from YAML data to a standard format.
src/harness/submodules/loader.py:9
↓ 8 callersMethod_check_steps
Recursively check all steps in a workflow or nested block.
src/harness/agentic_loop/verifier.py:155
↓ 8 callersFunction_run
()
src/sandbox_vm/tools/app_control/browser.py:799
↓ 8 callersFunction_run_git
Run a git command, return stdout or None on failure.
src/harness/checkpoints/workspace_manifest.py:58
↓ 8 callersMethodexecute_workflow_step
Execute a single workflow step based on its type. This is the main entry point for step execution. It logs step start/end events and
src/harness/execution/interpreter.py:132
↓ 8 callersFunctiongetLayoutedElements
( nodes: FlowNode[], edges: FlowEdge[], direction: 'TB' | 'LR' = 'TB', options: LayoutOptions = {} )
yaml-flow-editor/src/utils/layout.ts:569
↓ 8 callersFunctionget_yaml_system_prompt
Get system prompt for YAML agent.
src/harness/prompts/yaml_prompts.py:34
↓ 8 callersFunctionhandleDrop
(e: React.DragEvent)
yaml-flow-editor/src/components/nodes/NestedStepRenderer.tsx:80
↓ 8 callersMethodmark_completed
Mark a step as completed and optionally update the checkpoint file. Args: step_id: The step ID to mark completed.
src/harness/checkpoints/checkpoint_manager.py:76
↓ 8 callersFunctionnext
()
yaml-flow-editor/src/App.tsx:1183
↓ 8 callersFunctionparse_inline_tool_calls
(text: str)
src/harness/parsing/inline_tools.py:271
↓ 8 callersFunctionprint_success
Print success message.
scripts/setup_slack.py:29
↓ 8 callersFunctionuseLayoutDirection
()
yaml-flow-editor/src/contexts/LayoutDirectionContext.tsx:21
↓ 7 callersMethod_get_iteration
(self, step_id: str, iteration_number: int)
scripts/dashboard.py:168
↓ 7 callersMethod_parse_steps_list
Parse list of steps
src/harness/parsing/yaml_parser.py:243
↓ 7 callersMethod_parse_steps_list
Parse list of steps
verifier/AgentVerifier/yaml_parser.py:240
↓ 7 callersMethod_save_full_text_if_truncated
Save full text only if it differs from display label (i.e., was truncated)
src/harness/yaml_visualizer_mermaid.py:194
↓ 7 callersMethod_truncate_text
Truncate text to maximum length
src/harness/yaml_visualizer_mermaid.py:584
↓ 7 callersMethod_write_to_disk
Write self.data to disk atomically.
src/harness/checkpoints/checkpoint_manager.py:120
next →1–100 of 1,694, ranked by callers