@@ -172,6 +172,26 @@ class AgentSkill(A2ABaseModel):
172
172
"""
173
173
174
174
175
+ class AuthenticatedExtendedCardNotConfiguredError (A2ABaseModel ):
176
+ """
177
+ An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured
178
+ """
179
+
180
+ code : Literal [- 32007 ] = - 32007
181
+ """
182
+ The error code for when an authenticated extended card is not configured.
183
+ """
184
+ data : Any | None = None
185
+ """
186
+ A primitive or structured value containing additional information about the error.
187
+ This may be omitted.
188
+ """
189
+ message : str | None = 'Authenticated Extended Card is not configured'
190
+ """
191
+ The error message.
192
+ """
193
+
194
+
175
195
class AuthorizationCodeOAuthFlow (A2ABaseModel ):
176
196
"""
177
197
Defines configuration details for the OAuth 2.0 Authorization Code flow.
@@ -375,6 +395,27 @@ class FileWithUri(A2ABaseModel):
375
395
"""
376
396
377
397
398
+ class GetAuthenticatedExtendedCardRequest (A2ABaseModel ):
399
+ """
400
+ Represents a JSON-RPC request for the `agent/getAuthenticatedExtendedCard` method.
401
+ """
402
+
403
+ id : str | int
404
+ """
405
+ The identifier for this request.
406
+ """
407
+ jsonrpc : Literal ['2.0' ] = '2.0'
408
+ """
409
+ The version of the JSON-RPC protocol. MUST be exactly "2.0".
410
+ """
411
+ method : Literal ['agent/getAuthenticatedExtendedCard' ] = (
412
+ 'agent/getAuthenticatedExtendedCard'
413
+ )
414
+ """
415
+ The method name. Must be 'agent/getAuthenticatedExtendedCard'.
416
+ """
417
+
418
+
378
419
class GetTaskPushNotificationConfigParams (A2ABaseModel ):
379
420
"""
380
421
Defines parameters for fetching a specific push notification configuration for a task.
@@ -999,6 +1040,7 @@ class A2AError(
999
1040
| UnsupportedOperationError
1000
1041
| ContentTypeNotSupportedError
1001
1042
| InvalidAgentResponseError
1043
+ | AuthenticatedExtendedCardNotConfiguredError
1002
1044
]
1003
1045
):
1004
1046
root : (
@@ -1013,6 +1055,7 @@ class A2AError(
1013
1055
| UnsupportedOperationError
1014
1056
| ContentTypeNotSupportedError
1015
1057
| InvalidAgentResponseError
1058
+ | AuthenticatedExtendedCardNotConfiguredError
1016
1059
)
1017
1060
"""
1018
1061
A discriminated union of all standard JSON-RPC and A2A-specific error types.
@@ -1170,6 +1213,7 @@ class JSONRPCErrorResponse(A2ABaseModel):
1170
1213
| UnsupportedOperationError
1171
1214
| ContentTypeNotSupportedError
1172
1215
| InvalidAgentResponseError
1216
+ | AuthenticatedExtendedCardNotConfiguredError
1173
1217
)
1174
1218
"""
1175
1219
An object describing the error that occurred.
@@ -1625,6 +1669,7 @@ class A2ARequest(
1625
1669
| TaskResubscriptionRequest
1626
1670
| ListTaskPushNotificationConfigRequest
1627
1671
| DeleteTaskPushNotificationConfigRequest
1672
+ | GetAuthenticatedExtendedCardRequest
1628
1673
]
1629
1674
):
1630
1675
root : (
@@ -1637,6 +1682,7 @@ class A2ARequest(
1637
1682
| TaskResubscriptionRequest
1638
1683
| ListTaskPushNotificationConfigRequest
1639
1684
| DeleteTaskPushNotificationConfigRequest
1685
+ | GetAuthenticatedExtendedCardRequest
1640
1686
)
1641
1687
"""
1642
1688
A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification.
@@ -1750,6 +1796,25 @@ class AgentCard(A2ABaseModel):
1750
1796
"""
1751
1797
1752
1798
1799
+ class GetAuthenticatedExtendedCardSuccessResponse (A2ABaseModel ):
1800
+ """
1801
+ Represents a successful JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method.
1802
+ """
1803
+
1804
+ id : str | int | None = None
1805
+ """
1806
+ The identifier established by the client.
1807
+ """
1808
+ jsonrpc : Literal ['2.0' ] = '2.0'
1809
+ """
1810
+ The version of the JSON-RPC protocol. MUST be exactly "2.0".
1811
+ """
1812
+ result : AgentCard
1813
+ """
1814
+ The result is an Agent Card object.
1815
+ """
1816
+
1817
+
1753
1818
class Task (A2ABaseModel ):
1754
1819
"""
1755
1820
Represents a single, stateful operation or conversation between a client and an agent.
@@ -1769,7 +1834,7 @@ class Task(A2ABaseModel):
1769
1834
"""
1770
1835
id : str
1771
1836
"""
1772
- A unique identifier for the task, generated by the client for a new task or provided by the agent .
1837
+ A unique identifier for the task, generated by the server for a new task.
1773
1838
"""
1774
1839
kind : Literal ['task' ] = 'task'
1775
1840
"""
@@ -1804,6 +1869,17 @@ class CancelTaskSuccessResponse(A2ABaseModel):
1804
1869
"""
1805
1870
1806
1871
1872
+ class GetAuthenticatedExtendedCardResponse (
1873
+ RootModel [
1874
+ JSONRPCErrorResponse | GetAuthenticatedExtendedCardSuccessResponse
1875
+ ]
1876
+ ):
1877
+ root : JSONRPCErrorResponse | GetAuthenticatedExtendedCardSuccessResponse
1878
+ """
1879
+ Represents a JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method.
1880
+ """
1881
+
1882
+
1807
1883
class GetTaskSuccessResponse (A2ABaseModel ):
1808
1884
"""
1809
1885
Represents a successful JSON-RPC response for the `tasks/get` method.
@@ -1889,6 +1965,7 @@ class JSONRPCResponse(
1889
1965
| GetTaskPushNotificationConfigSuccessResponse
1890
1966
| ListTaskPushNotificationConfigSuccessResponse
1891
1967
| DeleteTaskPushNotificationConfigSuccessResponse
1968
+ | GetAuthenticatedExtendedCardSuccessResponse
1892
1969
]
1893
1970
):
1894
1971
root : (
@@ -1901,6 +1978,7 @@ class JSONRPCResponse(
1901
1978
| GetTaskPushNotificationConfigSuccessResponse
1902
1979
| ListTaskPushNotificationConfigSuccessResponse
1903
1980
| DeleteTaskPushNotificationConfigSuccessResponse
1981
+ | GetAuthenticatedExtendedCardSuccessResponse
1904
1982
)
1905
1983
"""
1906
1984
A discriminated union representing all possible JSON-RPC 2.0 responses
0 commit comments