feat: organize tools and enable qwen realtime calls
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user