types: allow single or multiple types tool property (#499)

This commit is contained in:
Parth Sareen
2025-04-08 15:05:54 -07:00
committed by GitHub
parent 1b3406887d
commit 8ac9f4da76
2 changed files with 2 additions and 2 deletions

View File

@@ -313,7 +313,7 @@ class Tool(SubscriptableBaseModel):
class Property(SubscriptableBaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)
type: Optional[str] = None
type: Optional[Union[str, Sequence[str]]] = None
description: Optional[str] = None
enum: Optional[Sequence] = None