-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-card.schema.json
More file actions
192 lines (192 loc) · 6.14 KB
/
agent-card.schema.json
File metadata and controls
192 lines (192 loc) · 6.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://agenium.net/schemas/agent-card/1.0.0/agent-card.schema.json",
"title": "Agenium Agent Card",
"description": "Machine-readable identity and capability document for an Agenium agent. Served at /.well-known/agent.json per RFC 8615.",
"type": "object",
"required": ["agent", "capabilities", "endpoints"],
"additionalProperties": true,
"properties": {
"agent": {
"type": "object",
"description": "Core identity of the agent.",
"required": ["name", "uri", "version"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Human-readable display name matching the Agenium DNS registration.",
"pattern": "^[a-z][a-z0-9-]{0,61}[a-z0-9]$",
"minLength": 2,
"maxLength": 63
},
"uri": {
"type": "string",
"description": "Canonical agent:// URI.",
"pattern": "^agent://[a-z][a-z0-9.-]{0,251}[a-z0-9]$"
},
"version": {
"type": "string",
"description": "Agent software version (Semantic Versioning 2.0.0).",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
},
"description": {
"type": "string",
"description": "Brief human-readable description of the agent's purpose.",
"maxLength": 500
},
"homepage": {
"type": "string",
"description": "URL to the agent's homepage or documentation.",
"format": "uri",
"pattern": "^https://"
},
"icon": {
"type": "string",
"description": "URL to a square icon image (PNG or SVG, recommended 256x256).",
"format": "uri",
"pattern": "^https://"
}
}
},
"capabilities": {
"type": "object",
"description": "Supported protocols, transports, auth methods, and formats.",
"required": ["protocols", "transport", "authentication"],
"additionalProperties": false,
"properties": {
"protocols": {
"type": "array",
"description": "Supported A2A protocol versions.",
"items": {
"type": "string",
"pattern": "^a2a/\\d+\\.\\d+$"
},
"minItems": 1,
"maxItems": 100
},
"transport": {
"type": "array",
"description": "Supported transport mechanisms.",
"items": {
"type": "string",
"enum": ["http2", "websocket"]
},
"minItems": 1,
"maxItems": 10,
"contains": {
"const": "http2"
}
},
"authentication": {
"type": "array",
"description": "Supported authentication methods.",
"items": {
"type": "string",
"enum": ["mtls", "bearer", "hmac", "ed25519"]
},
"minItems": 1,
"maxItems": 10
},
"formats": {
"type": "array",
"description": "Supported message serialization formats.",
"items": {
"type": "string",
"enum": ["json", "jsonl", "cbor", "msgpack"]
},
"default": ["json"],
"maxItems": 10
}
}
},
"endpoints": {
"type": "object",
"description": "URL paths for agent operations, relative to the base endpoint.",
"required": ["message"],
"additionalProperties": true,
"properties": {
"message": {
"type": "string",
"description": "Path for sending single messages.",
"pattern": "^/",
"default": "/a2a/message"
},
"session": {
"type": "string",
"description": "Path for session lifecycle management.",
"pattern": "^/",
"default": "/a2a/session"
},
"health": {
"type": "string",
"description": "Path for health checks.",
"pattern": "^/",
"default": "/health"
},
"metrics": {
"type": "string",
"description": "Path for Prometheus-compatible metrics.",
"pattern": "^/",
"default": "/metrics"
},
"websocket": {
"type": "string",
"description": "WebSocket upgrade path.",
"pattern": "^/",
"default": "/a2a/ws"
}
}
},
"contact": {
"type": "object",
"description": "Human contact information for the agent's operators.",
"additionalProperties": false,
"properties": {
"email": {
"type": "string",
"description": "Contact email address.",
"format": "email"
},
"support_url": {
"type": "string",
"description": "URL to a support page or issue tracker.",
"format": "uri",
"pattern": "^https://"
}
}
},
"policies": {
"type": "object",
"description": "Operational constraints and limits.",
"additionalProperties": true,
"properties": {
"rate_limit": {
"type": "string",
"description": "Maximum request rate. Format: {count}/{window} where window is s, min, or h.",
"pattern": "^\\d+/(s|min|h)$"
},
"max_message_size": {
"type": "string",
"description": "Maximum message payload size. Format: {number}{unit} where unit is B, KB, or MB.",
"pattern": "^\\d+(B|KB|MB)$"
},
"session_ttl": {
"type": "string",
"description": "Session idle timeout in seconds. Format: {number}s.",
"pattern": "^\\d+s$"
},
"max_sessions": {
"type": "integer",
"description": "Maximum concurrent sessions per remote agent.",
"minimum": 1
},
"retry_after": {
"type": "string",
"description": "Suggested retry delay when rate-limited. Format: {number}s.",
"pattern": "^\\d+s$"
}
}
}
}
}