MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / get_system_prompt

Function get_system_prompt

s16_team_protocols/code.py:171–178  ·  view source on GitHub ↗
(context: dict)

Source from the content-addressed store, hash-verified

169
170
171def get_system_prompt(context: dict) -> str:
172 global _last_context_key, _last_prompt
173 key = json.dumps(context, sort_keys=True, ensure_ascii=False, default=str)
174 if key == _last_context_key and _last_prompt:
175 return _last_prompt
176 _last_context_key = key
177 _last_prompt = assemble_system_prompt(context)
178 return _last_prompt
179
180
181# ── Tools ──

Callers 1

agent_loopFunction · 0.70

Calls 1

assemble_system_promptFunction · 0.70

Tested by

no test coverage detected