MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / _format_code_context

Function _format_code_context

nanoresearch/agents/code_editor.py:127–132  ·  view source on GitHub ↗

Format code files into a single context string.

(files: list[dict[str, str]])

Source from the content-addressed store, hash-verified

125
126
127def _format_code_context(files: list[dict[str, str]]) -> str:
128 """Format code files into a single context string."""
129 parts: list[str] = []
130 for f in files:
131 parts.append(f"=== {f['path']} ===\n{f['content']}")
132 return "\n\n".join(parts)
133
134
135# ---------------------------------------------------------------------------

Callers 2

preview_instructionMethod · 0.85
apply_instructionMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected