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

Function get_system_prompt

s12_task_system/code.py:166–173  ·  view source on GitHub ↗
(context: dict)

Source from the content-addressed store, hash-verified

164
165
166def get_system_prompt(context: dict) -> str:
167 global _last_context_key, _last_prompt
168 key = json.dumps(context, sort_keys=True, ensure_ascii=False, default=str)
169 if key == _last_context_key and _last_prompt:
170 return _last_prompt
171 _last_context_key = key
172 _last_prompt = assemble_system_prompt(context)
173 return _last_prompt
174
175
176# ── Tools ──

Callers 1

agent_loopFunction · 0.70

Calls 1

assemble_system_promptFunction · 0.70

Tested by

no test coverage detected