@@ -139,7 +139,7 @@ describe('DefaultAgentCardResolver', () => {
139139 } ) ;
140140
141141 const expectedAgentCard : AgentCard = {
142- protocolVersion : '1.0 .0' ,
142+ protocolVersion : '0.3 .0' ,
143143 name : 'Unified Agent' ,
144144 description : '' ,
145145 documentationUrl : undefined ,
@@ -163,13 +163,13 @@ describe('DefaultAgentCardResolver', () => {
163163 skills : [ ] ,
164164 } ;
165165
166- const v03AgentCard : AgentCard = {
167- // A v0.3 json-schema shape is essentially identical to the internal format
166+ const JsonSchemaAgentCard : AgentCard = {
167+ // A JSON Schema shape is essentially identical to the internal format
168168 ...expectedAgentCard ,
169169 } ;
170170
171- const v1ProtoAgentCard : PBAgentCard = {
172- protocolVersion : '1.0 .0' ,
171+ const ProtoAgentCard : PBAgentCard = {
172+ protocolVersion : '0.3 .0' ,
173173 name : 'Unified Agent' ,
174174 description : '' ,
175175 documentationUrl : '' ,
@@ -222,8 +222,8 @@ describe('DefaultAgentCardResolver', () => {
222222 ] ,
223223 } ;
224224
225- const v1ProtoAgentCardWithSkill : PBAgentCard = {
226- ...v1ProtoAgentCard ,
225+ const ProtoAgentCardWithSkill : PBAgentCard = {
226+ ...ProtoAgentCard ,
227227 security : [ ] ,
228228 securitySchemes : { } ,
229229 skills : [
@@ -247,11 +247,11 @@ describe('DefaultAgentCardResolver', () => {
247247 } ;
248248
249249 it . each ( [
250- [ 'v0.3 JSON schema' , v03AgentCard , expectedAgentCard ] ,
251- [ 'v1.0 protobuf mapping ' , PBAgentCard . toJSON ( v1ProtoAgentCard ) , expectedAgentCard ] ,
250+ [ 'JSON schema' , JsonSchemaAgentCard , expectedAgentCard ] ,
251+ [ 'protobuf' , PBAgentCard . toJSON ( ProtoAgentCard ) , expectedAgentCard ] ,
252252 [
253- 'v1.0 protobuf mapping (skills only)' ,
254- PBAgentCard . toJSON ( v1ProtoAgentCardWithSkill ) ,
253+ 'protobuf (skills only)' ,
254+ PBAgentCard . toJSON ( ProtoAgentCardWithSkill ) ,
255255 expectedAgentCardWithSkill ,
256256 ] ,
257257 ] ) ( 'should parse and normalize %s agent card correctly' , async ( _ , payload , expectedResult ) => {
0 commit comments