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

Function get_system_prompt

s13_background_tasks/code.py:165–172  ·  view source on GitHub ↗
(context: dict)

Source from the content-addressed store, hash-verified

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

Callers 1

agent_loopFunction · 0.70

Calls 1

assemble_system_promptFunction · 0.70

Tested by

no test coverage detected