fix: add type ignore for func_tool assignment

This commit is contained in:
LIghtJUNction
2026-03-30 17:46:04 +08:00
parent 376161faa8
commit f084fba702

View File

@@ -335,7 +335,7 @@ async def _ensure_persona_and_skills(
if tool and tool.active:
persona_toolset.add_tool(tool) # type: ignore[arg-type]
if not req.func_tool:
req.func_tool = persona_toolset
req.func_tool = persona_toolset # type: ignore[assignment]
else:
req.func_tool.merge(persona_toolset)