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

Method expand_template_variables

src/harness/agent.py:175–177  ·  view source on GitHub ↗

Expand template variables in text using context values.

(text: str, context: Dict[str, Any])

Source from the content-addressed store, hash-verified

173 # Utility methods for template expansion and condition evaluation
174 @staticmethod
175 def expand_template_variables(text: str, context: Dict[str, Any]) -> str:
176 """Expand template variables in text using context values."""
177 return _expand_template_variables(text, context)
178
179 @staticmethod
180 def evaluate_condition(condition: str, context: Dict[str, Any]) -> bool:

Calls

no outgoing calls