agent0-sdk 0.2.2__py3-none-any.whl → 0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,7 +99,7 @@ IDENTITY_REGISTRY_ABI = [
99
99
  "type": "function"
100
100
  },
101
101
  {
102
- "inputs": [{"internalType": "string", "name": "tokenUri", "type": "string"}],
102
+ "inputs": [{"internalType": "string", "name": "agentURI", "type": "string"}],
103
103
  "name": "register",
104
104
  "outputs": [{"internalType": "uint256", "name": "agentId", "type": "uint256"}],
105
105
  "stateMutability": "nonpayable",
@@ -107,7 +107,7 @@ IDENTITY_REGISTRY_ABI = [
107
107
  },
108
108
  {
109
109
  "inputs": [
110
- {"internalType": "string", "name": "tokenUri", "type": "string"},
110
+ {"internalType": "string", "name": "agentURI", "type": "string"},
111
111
  {
112
112
  "components": [
113
113
  {"internalType": "string", "name": "key", "type": "string"},
@@ -147,9 +147,30 @@ IDENTITY_REGISTRY_ABI = [
147
147
  {
148
148
  "inputs": [
149
149
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
150
- {"internalType": "string", "name": "newUri", "type": "string"}
150
+ {"internalType": "string", "name": "newURI", "type": "string"}
151
151
  ],
152
- "name": "setAgentUri",
152
+ "name": "setAgentURI",
153
+ "outputs": [],
154
+ "stateMutability": "nonpayable",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [
159
+ {"internalType": "uint256", "name": "agentId", "type": "uint256"}
160
+ ],
161
+ "name": "getAgentWallet",
162
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
163
+ "stateMutability": "view",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {"internalType": "uint256", "name": "agentId", "type": "uint256"},
169
+ {"internalType": "address", "name": "newWallet", "type": "address"},
170
+ {"internalType": "uint256", "name": "deadline", "type": "uint256"},
171
+ {"internalType": "bytes", "name": "signature", "type": "bytes"}
172
+ ],
173
+ "name": "setAgentWallet",
153
174
  "outputs": [],
154
175
  "stateMutability": "nonpayable",
155
176
  "type": "function"
@@ -160,12 +181,22 @@ IDENTITY_REGISTRY_ABI = [
160
181
  "anonymous": False,
161
182
  "inputs": [
162
183
  {"indexed": True, "internalType": "uint256", "name": "agentId", "type": "uint256"},
163
- {"indexed": False, "internalType": "string", "name": "tokenURI", "type": "string"},
184
+ {"indexed": False, "internalType": "string", "name": "agentURI", "type": "string"},
164
185
  {"indexed": True, "internalType": "address", "name": "owner", "type": "address"}
165
186
  ],
166
187
  "name": "Registered",
167
188
  "type": "event"
168
189
  },
190
+ {
191
+ "anonymous": False,
192
+ "inputs": [
193
+ {"indexed": True, "internalType": "uint256", "name": "agentId", "type": "uint256"},
194
+ {"indexed": False, "internalType": "string", "name": "newURI", "type": "string"},
195
+ {"indexed": True, "internalType": "address", "name": "updatedBy", "type": "address"}
196
+ ],
197
+ "name": "URIUpdated",
198
+ "type": "event"
199
+ },
169
200
  {
170
201
  "anonymous": False,
171
202
  "inputs": [
@@ -192,11 +223,11 @@ REPUTATION_REGISTRY_ABI = [
192
223
  "inputs": [
193
224
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
194
225
  {"internalType": "uint8", "name": "score", "type": "uint8"},
195
- {"internalType": "bytes32", "name": "tag1", "type": "bytes32"},
196
- {"internalType": "bytes32", "name": "tag2", "type": "bytes32"},
197
- {"internalType": "string", "name": "feedbackUri", "type": "string"},
198
- {"internalType": "bytes32", "name": "feedbackHash", "type": "bytes32"},
199
- {"internalType": "bytes", "name": "feedbackAuth", "type": "bytes"}
226
+ {"internalType": "string", "name": "tag1", "type": "string"},
227
+ {"internalType": "string", "name": "tag2", "type": "string"},
228
+ {"internalType": "string", "name": "endpoint", "type": "string"},
229
+ {"internalType": "string", "name": "feedbackURI", "type": "string"},
230
+ {"internalType": "bytes32", "name": "feedbackHash", "type": "bytes32"}
200
231
  ],
201
232
  "name": "giveFeedback",
202
233
  "outputs": [],
@@ -218,7 +249,7 @@ REPUTATION_REGISTRY_ABI = [
218
249
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
219
250
  {"internalType": "address", "name": "clientAddress", "type": "address"},
220
251
  {"internalType": "uint64", "name": "feedbackIndex", "type": "uint64"},
221
- {"internalType": "string", "name": "responseUri", "type": "string"},
252
+ {"internalType": "string", "name": "responseURI", "type": "string"},
222
253
  {"internalType": "bytes32", "name": "responseHash", "type": "bytes32"}
223
254
  ],
224
255
  "name": "appendResponse",
@@ -240,13 +271,13 @@ REPUTATION_REGISTRY_ABI = [
240
271
  "inputs": [
241
272
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
242
273
  {"internalType": "address", "name": "clientAddress", "type": "address"},
243
- {"internalType": "uint64", "name": "index", "type": "uint64"}
274
+ {"internalType": "uint64", "name": "feedbackIndex", "type": "uint64"}
244
275
  ],
245
276
  "name": "readFeedback",
246
277
  "outputs": [
247
278
  {"internalType": "uint8", "name": "score", "type": "uint8"},
248
- {"internalType": "bytes32", "name": "tag1", "type": "bytes32"},
249
- {"internalType": "bytes32", "name": "tag2", "type": "bytes32"},
279
+ {"internalType": "string", "name": "tag1", "type": "string"},
280
+ {"internalType": "string", "name": "tag2", "type": "string"},
250
281
  {"internalType": "bool", "name": "isRevoked", "type": "bool"}
251
282
  ],
252
283
  "stateMutability": "view",
@@ -256,8 +287,8 @@ REPUTATION_REGISTRY_ABI = [
256
287
  "inputs": [
257
288
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
258
289
  {"internalType": "address[]", "name": "clientAddresses", "type": "address[]"},
259
- {"internalType": "bytes32", "name": "tag1", "type": "bytes32"},
260
- {"internalType": "bytes32", "name": "tag2", "type": "bytes32"}
290
+ {"internalType": "string", "name": "tag1", "type": "string"},
291
+ {"internalType": "string", "name": "tag2", "type": "string"}
261
292
  ],
262
293
  "name": "getSummary",
263
294
  "outputs": [
@@ -271,16 +302,17 @@ REPUTATION_REGISTRY_ABI = [
271
302
  "inputs": [
272
303
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
273
304
  {"internalType": "address[]", "name": "clientAddresses", "type": "address[]"},
274
- {"internalType": "bytes32", "name": "tag1", "type": "bytes32"},
275
- {"internalType": "bytes32", "name": "tag2", "type": "bytes32"},
305
+ {"internalType": "string", "name": "tag1", "type": "string"},
306
+ {"internalType": "string", "name": "tag2", "type": "string"},
276
307
  {"internalType": "bool", "name": "includeRevoked", "type": "bool"}
277
308
  ],
278
309
  "name": "readAllFeedback",
279
310
  "outputs": [
280
- {"internalType": "address[]", "name": "clients", "type": "address[]"},
311
+ {"internalType": "address[]", "name": "clientAddresses", "type": "address[]"},
312
+ {"internalType": "uint64[]", "name": "feedbackIndexes", "type": "uint64[]"},
281
313
  {"internalType": "uint8[]", "name": "scores", "type": "uint8[]"},
282
- {"internalType": "bytes32[]", "name": "tag1s", "type": "bytes32[]"},
283
- {"internalType": "bytes32[]", "name": "tag2s", "type": "bytes32[]"},
314
+ {"internalType": "string[]", "name": "tag1s", "type": "string[]"},
315
+ {"internalType": "string[]", "name": "tag2s", "type": "string[]"},
284
316
  {"internalType": "bool[]", "name": "revokedStatuses", "type": "bool[]"}
285
317
  ],
286
318
  "stateMutability": "view",
@@ -312,10 +344,12 @@ REPUTATION_REGISTRY_ABI = [
312
344
  "inputs": [
313
345
  {"indexed": True, "internalType": "uint256", "name": "agentId", "type": "uint256"},
314
346
  {"indexed": True, "internalType": "address", "name": "clientAddress", "type": "address"},
347
+ {"indexed": False, "internalType": "uint64", "name": "feedbackIndex", "type": "uint64"},
315
348
  {"indexed": False, "internalType": "uint8", "name": "score", "type": "uint8"},
316
- {"indexed": True, "internalType": "bytes32", "name": "tag1", "type": "bytes32"},
317
- {"indexed": False, "internalType": "bytes32", "name": "tag2", "type": "bytes32"},
318
- {"indexed": False, "internalType": "string", "name": "feedbackUri", "type": "string"},
349
+ {"indexed": True, "internalType": "string", "name": "tag1", "type": "string"},
350
+ {"indexed": False, "internalType": "string", "name": "tag2", "type": "string"},
351
+ {"indexed": False, "internalType": "string", "name": "endpoint", "type": "string"},
352
+ {"indexed": False, "internalType": "string", "name": "feedbackURI", "type": "string"},
319
353
  {"indexed": False, "internalType": "bytes32", "name": "feedbackHash", "type": "bytes32"}
320
354
  ],
321
355
  "name": "NewFeedback",
@@ -336,10 +370,9 @@ REPUTATION_REGISTRY_ABI = [
336
370
  "inputs": [
337
371
  {"indexed": True, "internalType": "uint256", "name": "agentId", "type": "uint256"},
338
372
  {"indexed": True, "internalType": "address", "name": "clientAddress", "type": "address"},
339
- {"indexed": False, "internalType": "uint64", "name": "feedbackIndex", "type": "uint64"},
373
+ {"indexed": True, "internalType": "uint64", "name": "feedbackIndex", "type": "uint64"},
340
374
  {"indexed": True, "internalType": "address", "name": "responder", "type": "address"},
341
- {"indexed": False, "internalType": "string", "name": "responseUri", "type": "string"},
342
- {"indexed": False, "internalType": "bytes32", "name": "responseHash", "type": "bytes32"}
375
+ {"indexed": False, "internalType": "string", "name": "responseURI", "type": "string"}
343
376
  ],
344
377
  "name": "ResponseAppended",
345
378
  "type": "event"
@@ -371,9 +404,9 @@ VALIDATION_REGISTRY_ABI = [
371
404
  "inputs": [
372
405
  {"internalType": "bytes32", "name": "requestHash", "type": "bytes32"},
373
406
  {"internalType": "uint8", "name": "response", "type": "uint8"},
374
- {"internalType": "string", "name": "responseUri", "type": "string"},
407
+ {"internalType": "string", "name": "responseURI", "type": "string"},
375
408
  {"internalType": "bytes32", "name": "responseHash", "type": "bytes32"},
376
- {"internalType": "bytes32", "name": "tag", "type": "bytes32"}
409
+ {"internalType": "string", "name": "tag", "type": "string"}
377
410
  ],
378
411
  "name": "validationResponse",
379
412
  "outputs": [],
@@ -387,8 +420,7 @@ VALIDATION_REGISTRY_ABI = [
387
420
  {"internalType": "address", "name": "validatorAddress", "type": "address"},
388
421
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
389
422
  {"internalType": "uint8", "name": "response", "type": "uint8"},
390
- {"internalType": "bytes32", "name": "responseHash", "type": "bytes32"},
391
- {"internalType": "bytes32", "name": "tag", "type": "bytes32"},
423
+ {"internalType": "string", "name": "tag", "type": "string"},
392
424
  {"internalType": "uint256", "name": "lastUpdate", "type": "uint256"}
393
425
  ],
394
426
  "stateMutability": "view",
@@ -398,12 +430,12 @@ VALIDATION_REGISTRY_ABI = [
398
430
  "inputs": [
399
431
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
400
432
  {"internalType": "address[]", "name": "validatorAddresses", "type": "address[]"},
401
- {"internalType": "bytes32", "name": "tag", "type": "bytes32"}
433
+ {"internalType": "string", "name": "tag", "type": "string"}
402
434
  ],
403
435
  "name": "getSummary",
404
436
  "outputs": [
405
437
  {"internalType": "uint64", "name": "count", "type": "uint64"},
406
- {"internalType": "uint8", "name": "avgResponse", "type": "uint8"}
438
+ {"internalType": "uint8", "name": "averageResponse", "type": "uint8"}
407
439
  ],
408
440
  "stateMutability": "view",
409
441
  "type": "function"
@@ -429,8 +461,7 @@ VALIDATION_REGISTRY_ABI = [
429
461
  {"internalType": "address", "name": "validatorAddress", "type": "address"},
430
462
  {"internalType": "uint256", "name": "agentId", "type": "uint256"},
431
463
  {"internalType": "uint8", "name": "response", "type": "uint8"},
432
- {"internalType": "bytes32", "name": "responseHash", "type": "bytes32"},
433
- {"internalType": "bytes32", "name": "tag", "type": "bytes32"},
464
+ {"internalType": "string", "name": "tag", "type": "string"},
434
465
  {"internalType": "uint256", "name": "lastUpdate", "type": "uint256"}
435
466
  ],
436
467
  "stateMutability": "view",
@@ -456,9 +487,9 @@ VALIDATION_REGISTRY_ABI = [
456
487
  {"indexed": True, "internalType": "uint256", "name": "agentId", "type": "uint256"},
457
488
  {"indexed": True, "internalType": "bytes32", "name": "requestHash", "type": "bytes32"},
458
489
  {"indexed": False, "internalType": "uint8", "name": "response", "type": "uint8"},
459
- {"indexed": False, "internalType": "string", "name": "responseUri", "type": "string"},
490
+ {"indexed": False, "internalType": "string", "name": "responseURI", "type": "string"},
460
491
  {"indexed": False, "internalType": "bytes32", "name": "responseHash", "type": "bytes32"},
461
- {"indexed": False, "internalType": "bytes32", "name": "tag", "type": "bytes32"}
492
+ {"indexed": False, "internalType": "string", "name": "tag", "type": "string"}
462
493
  ],
463
494
  "name": "ValidationResponse",
464
495
  "type": "event"
@@ -466,25 +497,36 @@ VALIDATION_REGISTRY_ABI = [
466
497
  ]
467
498
 
468
499
  # Contract registry for different chains
500
+ # Updated addresses from: https://github.com/erc-8004/erc-8004-contracts
469
501
  DEFAULT_REGISTRIES: Dict[int, Dict[str, str]] = {
470
502
  11155111: { # Ethereum Sepolia
471
- "IDENTITY": "0x8004a6090Cd10A7288092483047B097295Fb8847",
472
- "REPUTATION": "0x8004B8FD1A363aa02fDC07635C0c5F94f6Af5B7E",
473
- "VALIDATION": "0x8004CB39f29c09145F24Ad9dDe2A108C1A2cdfC5",
474
- },
475
- 84532: { # Base Sepolia
476
- "IDENTITY": "0x8004AA63c570c570eBF15376c0dB199918BFe9Fb",
477
- "REPUTATION": "0x8004bd8daB57f14Ed299135749a5CB5c42d341BF",
478
- "VALIDATION": "0x8004C269D0A5647E51E121FeB226200ECE932d55",
479
- },
480
- 59141: { # Linea Sepolia
481
- "IDENTITY": "0x8004aa7C931bCE1233973a0C6A667f73F66282e7",
482
- "REPUTATION": "0x8004bd8483b99310df121c46ED8858616b2Bba02",
483
- "VALIDATION": "0x8004c44d1EFdd699B2A26e781eF7F77c56A9a4EB",
484
- },
503
+ "IDENTITY": "0x8004A818BFB912233c491871b3d84c89A494BD9e",
504
+ "REPUTATION": "0x8004B663056A597Dffe9eCcC1965A193B7388713",
505
+ # "VALIDATION": "0x...", # To be deployed
506
+ },
507
+ # Other chains temporarily disabled - addresses to be deployed
508
+ # 84532: { # Base Sepolia
509
+ # "IDENTITY": "0x...", # To be deployed
510
+ # "REPUTATION": "0x...", # To be deployed
511
+ # "VALIDATION": "0x...", # To be deployed
512
+ # },
513
+ # 80002: { # Polygon Amoy
514
+ # "IDENTITY": "0x...", # To be deployed
515
+ # "REPUTATION": "0x...", # To be deployed
516
+ # "VALIDATION": "0x...", # To be deployed
517
+ # },
518
+ # 59141: { # Linea Sepolia
519
+ # "IDENTITY": "0x...", # To be deployed
520
+ # "REPUTATION": "0x...", # To be deployed
521
+ # "VALIDATION": "0x...", # To be deployed
522
+ # },
485
523
  }
486
524
 
487
525
  # Default subgraph URLs for different chains
526
+ # Note: Subgraph URLs may need to be updated when new contracts are deployed
488
527
  DEFAULT_SUBGRAPH_URLS: Dict[int, str] = {
489
528
  11155111: "https://gateway.thegraph.com/api/00a452ad3cd1900273ea62c1bf283f93/subgraphs/id/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT", # Ethereum Sepolia
529
+ # Other chains temporarily disabled - subgraphs to be updated
530
+ # 84532: "https://gateway.thegraph.com/api/...", # Base Sepolia - To be updated
531
+ # 80002: "https://gateway.thegraph.com/api/...", # Polygon Amoy - To be updated
490
532
  }