Merge pull request #936 from shaun0927/fix/diary-topic-sanitize

fix: sanitize topic parameter in tool_diary_write
This commit is contained in:
Igor Lins e Silva
2026-04-26 16:12:37 -03:00
committed by GitHub
+1
View File
@@ -939,6 +939,7 @@ def tool_diary_write(agent_name: str, entry: str, topic: str = "general", wing:
try:
agent_name = sanitize_name(agent_name, "agent_name")
entry = sanitize_content(entry)
topic = sanitize_name(topic, "topic")
except ValueError as e:
return {"success": False, "error": str(e)}