feat: organize tools and enable qwen realtime calls

This commit is contained in:
Xin Wang
2026-08-14 00:15:00 +08:00
parent eb111a3890
commit 5be21f5ccc
71 changed files with 5771 additions and 2026 deletions
+7
View File
@@ -181,6 +181,13 @@ class DynamicVariableStore:
}
return deepcopy(value)
def value(self, name: str) -> Primitive:
"""Read one session value for an explicit ToolBinding source."""
if name.startswith("secret__"):
raise DynamicVariableError("ToolBinding 不能读取密钥变量")
return self._resolve(name, allow_secrets=False)
def record(self, role: str, content: str, *, completed_agent_turn: bool = False) -> None:
if content:
self.history.append({"role": role, "message": content})