MCPcopy Index your code
hub / github.com/IBM/AssetOpsBench / _walk_dicts

Function _walk_dicts

src/agent/opencode_agent/runner.py:284–291  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

282
283
284def _walk_dicts(value: Any):
285 if isinstance(value, dict):
286 yield value
287 for child in value.values():
288 yield from _walk_dicts(child)
289 elif isinstance(value, list):
290 for child in value:
291 yield from _walk_dicts(child)
292
293
294def _token_count(value: Any) -> int:

Callers 1

_usage_from_eventsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected