perf: preserve conversation prefixes across agent turns

This commit is contained in:
chenmingxuan committed 2026-10-17 17:25:15 +08:00
1 parent 1440a1f508
commit f1bb5d02aa
19 files changed
+552 -205

No files matched your search

+3
View File
@@ -267,6 +267,9 @@ class ArtemisContext(BaseModel):
operator's transcript prompt path (``agent.memory.transcript.enabled``).
Lives beside ``step_memory``; the State never carries message payloads."""
prompt_prefix_tracker: Any | None = None
"""Task-local, hash-only prefix diagnostics shared by bound LLM wrappers."""
async def __aenter__(self) -> ArtemisContext:
return self