@@ -106,7 +106,9 @@ class AgentSkill(BaseModel):
106
106
Description of the skill - will be used by the client or a human
107
107
as a hint to understand what the skill does.
108
108
"""
109
- examples : list [str ] | None = None
109
+ examples : list [str ] | None = Field (
110
+ default = None , examples = [['I need a recipe for bread' ]]
111
+ )
110
112
"""
111
113
The set of example scenarios that the skill can perform.
112
114
Will be used by the client as a hint to understand how the skill can be used.
@@ -129,7 +131,7 @@ class AgentSkill(BaseModel):
129
131
"""
130
132
Supported media types for output.
131
133
"""
132
- tags : list [str ]
134
+ tags : list [str ] = Field (..., examples = [[ 'cooking' , 'customer support' , 'billing' ]])
133
135
"""
134
136
Set of tagwords describing classes of capabilities for this specific skill.
135
137
"""
@@ -1038,7 +1040,7 @@ class GetTaskPushNotificationConfigRequest(BaseModel):
1038
1040
params : TaskIdParams | GetTaskPushNotificationConfigParams
1039
1041
"""
1040
1042
A Structured value that holds the parameter values to be used during the invocation of the method.
1041
- TaskIdParams type is deprecated for this method
1043
+ TaskIdParams type is deprecated for this method use `GetTaskPushNotificationConfigParams` instead.
1042
1044
"""
1043
1045
1044
1046
@@ -1493,7 +1495,7 @@ class TaskStatus(BaseModel):
1493
1495
Additional status updates for client
1494
1496
"""
1495
1497
state : TaskState
1496
- timestamp : str | None = None
1498
+ timestamp : str | None = Field ( default = None , examples = [ '2023-10-27T10:00:00Z' ])
1497
1499
"""
1498
1500
ISO 8601 datetime string when the status was recorded.
1499
1501
"""
@@ -1586,7 +1588,9 @@ class AgentCard(BaseModel):
1586
1588
"""
1587
1589
Supported media types for output.
1588
1590
"""
1589
- description : str
1591
+ description : str = Field (
1592
+ ..., examples = ['Agent that helps users with recipes and cooking.' ]
1593
+ )
1590
1594
"""
1591
1595
A human-readable description of the agent. Used to assist users and
1592
1596
other agents in understanding what the agent can do.
@@ -1599,7 +1603,7 @@ class AgentCard(BaseModel):
1599
1603
"""
1600
1604
A URL to an icon for the agent.
1601
1605
"""
1602
- name : str
1606
+ name : str = Field (..., examples = [ 'Recipe Agent' ])
1603
1607
"""
1604
1608
Human readable name of the agent.
1605
1609
"""
@@ -1633,7 +1637,7 @@ class AgentCard(BaseModel):
1633
1637
A URL to the address the agent is hosted at. This represents the
1634
1638
preferred endpoint as declared by the agent.
1635
1639
"""
1636
- version : str
1640
+ version : str = Field (..., examples = [ '1.0.0' ])
1637
1641
"""
1638
1642
The version of the agent - format is up to the provider.
1639
1643
"""
@@ -1770,6 +1774,8 @@ class JSONRPCResponse(
1770
1774
| CancelTaskSuccessResponse
1771
1775
| SetTaskPushNotificationConfigSuccessResponse
1772
1776
| GetTaskPushNotificationConfigSuccessResponse
1777
+ | ListTaskPushNotificationConfigSuccessResponse
1778
+ | DeleteTaskPushNotificationConfigSuccessResponse
1773
1779
]
1774
1780
):
1775
1781
root : (
@@ -1780,6 +1786,8 @@ class JSONRPCResponse(
1780
1786
| CancelTaskSuccessResponse
1781
1787
| SetTaskPushNotificationConfigSuccessResponse
1782
1788
| GetTaskPushNotificationConfigSuccessResponse
1789
+ | ListTaskPushNotificationConfigSuccessResponse
1790
+ | DeleteTaskPushNotificationConfigSuccessResponse
1783
1791
)
1784
1792
"""
1785
1793
Represents a JSON-RPC 2.0 Response object.
0 commit comments