Skip to content

Commit 6538a80

Browse files
committed
feat(spec): A2A API Extensions
Add an optional "extensions" property to AgentCard. Refs: google#585
1 parent 44bdc09 commit 6538a80

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

specification/json/a2a.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
},
102102
"title": "Skills",
103103
"type": "array"
104+
},
105+
"extensions": {
106+
"items": {
107+
"$ref": "#/$defs/AgentExtension"
108+
},
109+
"title": "Extensions",
110+
"type": "array"
104111
}
105112
},
106113
"required": [
@@ -113,6 +120,44 @@
113120
"title": "AgentCard",
114121
"type": "object"
115122
},
123+
"AgentExtension": {
124+
"properties": {
125+
"id": {
126+
"title": "Id",
127+
"type": "string"
128+
},
129+
"name": {
130+
"title": "Name",
131+
"type": "string"
132+
},
133+
"description": {
134+
"default": "",
135+
"title": "Description",
136+
"type": "string"
137+
},
138+
"methods": {
139+
"default": [],
140+
"description": "The list of method names (without prefix) provided by the extension.",
141+
"items": {
142+
"type": "string"
143+
},
144+
"title": "Methods",
145+
"type": "array"
146+
},
147+
"prefix": {
148+
"default": "Prefix added in front of the method names. E.g. for prefix='extensions/taskHistory/' and method='clearRecent', the actual method will be served at 'extensions/taskHistory/clearRecent'",
149+
"title": "Prefix",
150+
"type": "string"
151+
}
152+
},
153+
"required": [
154+
"id",
155+
"name",
156+
"prefix"
157+
],
158+
"title": "AgentExtension",
159+
"type": "object"
160+
},
116161
"AgentProvider": {
117162
"properties": {
118163
"organization": {

0 commit comments

Comments
 (0)