Skip to content

Commit 451a039

Browse files
committed
fix(types): check min_length for parts in Artifact
1 parent 957e92b commit 451a039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/a2a/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ class Artifact(A2ABaseModel):
13941394
"""
13951395
An optional, human-readable name for the artifact.
13961396
"""
1397-
parts: list[Part]
1397+
parts: list[Part] = Field(min_length=1)
13981398
"""
13991399
An array of content parts that make up the artifact.
14001400
"""

0 commit comments

Comments
 (0)