Accept boolean sub-schemas in 2025-11-25 tool schema properties (#3354)

This commit is contained in:
Peter Alexander 2026-08-24 15:41:59 +01:00 • committed by GitHub
commit f1c40b062f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1358,7 +1358,7 @@ class InputSchema(WireModel):
extra="allow",
)
schema_: Annotated[str | None, Field(alias="$schema")] = None
properties: dict[str, dict[str, Any]] | None = None
properties: dict[str, dict[str, Any] | bool] | None = None
required: list[str] | None = None
type: Literal["object"]
@ -1376,7 +1376,7 @@ class OutputSchema(WireModel):
extra="allow",
)
schema_: Annotated[str | None, Field(alias="$schema")] = None
properties: dict[str, dict[str, Any]] | None = None
properties: dict[str, dict[str, Any] | bool] | None = None
required: list[str] | None = None
type: Literal["object"]