mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-04 00:35:58 +00:00
style(agent): remove inline comment in runtime-context history filter
This commit is contained in:
parent
45ae410f05
commit
286e67ddef
@ -472,8 +472,6 @@ class AgentLoop:
|
|||||||
and isinstance(entry.get("content"), str)
|
and isinstance(entry.get("content"), str)
|
||||||
and entry["content"].startswith(ContextBuilder._RUNTIME_CONTEXT_TAG)
|
and entry["content"].startswith(ContextBuilder._RUNTIME_CONTEXT_TAG)
|
||||||
):
|
):
|
||||||
# Runtime metadata is injected per-turn for model context only; do not persist it
|
|
||||||
# into long-lived session history to avoid semantic drift and repetitive replies.
|
|
||||||
continue
|
continue
|
||||||
if entry.get("role") == "user" and isinstance(entry.get("content"), list):
|
if entry.get("role") == "user" and isinstance(entry.get("content"), list):
|
||||||
entry["content"] = [
|
entry["content"] = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user