Extract user-defined variables from context for dashboard display.
(context: Dict[str, Any])
| 48 | |
| 49 | |
| 50 | def _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 | |
| 61 | from .llm_executor import LLMExecutor |
no outgoing calls
no test coverage detected