Skip to content

Commit 633e185

Browse files
committed
cr fix
1 parent 0301614 commit 633e185

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

holmes/core/openai_formatting.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ def type_to_open_ai_schema(param_attributes: Any, strict_mode: bool) -> dict[str
5353
if match.group("inner_type"):
5454
inner_type = match.group("inner_type")
5555
if inner_type == "object":
56-
items_obj: dict[str, Any] = {"type": "object"}
57-
if strict_mode:
58-
items_obj["additionalProperties"] = False
59-
type_obj = {"type": "array", "items": items_obj}
56+
raise ValueError(
57+
"object inner type must have schema. Use ToolParameter.items"
58+
)
6059
else:
6160
type_obj = {"type": "array", "items": {"type": inner_type}}
6261
else:

0 commit comments

Comments
 (0)