Skip to content

Commit cda49c3

Browse files
authored
fix: remove additionalProperties from tool schema properties (#5253)
fixes: #5217
1 parent 4be1027 commit cda49c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

astrbot/core/agent/tool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ def convert_schema(schema: dict) -> dict:
285285
prop_value = convert_schema(value)
286286
if "default" in prop_value:
287287
del prop_value["default"]
288+
# see #5217
289+
if "additionalProperties" in prop_value:
290+
del prop_value["additionalProperties"]
288291
properties[key] = prop_value
289292

290293
if properties:

0 commit comments

Comments
 (0)