MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / _sub

Function _sub

src/agent/plan_execute/executor.py:341–343  ·  view source on GitHub ↗
(m: re.Match)

Source from the content-addressed store, hash-verified

339 if isinstance(val, str):
340
341 def _sub(m: re.Match) -> str:
342 n = int(m.group(1))
343 return context[n].response if n in context else m.group(0)
344
345 resolved[key] = _PLACEHOLDER_RE.sub(_sub, val)
346 else:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected