MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _snapshot_variables

Function _snapshot_variables

src/harness/execution/interpreter.py:50–58  ·  view source on GitHub ↗

Extract user-defined variables from context for dashboard display.

(context: Dict[str, Any])

Source from the content-addressed store, hash-verified

48
49
50def _snapshot_variables(context: Dict[str, Any]) -> Dict[str, str]:
51 """Extract user-defined variables from context for dashboard display."""
52 out = {}
53 for k, v in (context or {}).items():
54 if k.startswith("_") or k in _INTERNAL_KEYS:
55 continue
56 s = str(v)
57 out[k] = s
58 return out
59
60
61from .llm_executor import LLMExecutor

Callers 1

execute_workflow_stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected