agent0-sdk 1.0.1__py3-none-any.whl → 1.2.0__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.
- agent0_sdk/__init__.py +1 -1
- agent0_sdk/core/agent.py +10 -9
- agent0_sdk/core/contracts.py +23 -8
- agent0_sdk/core/feedback_manager.py +181 -124
- agent0_sdk/core/indexer.py +16 -15
- agent0_sdk/core/ipfs_client.py +8 -6
- agent0_sdk/core/models.py +5 -3
- agent0_sdk/core/sdk.py +64 -147
- agent0_sdk/core/subgraph_client.py +22 -27
- agent0_sdk/core/value_encoding.py +91 -0
- {agent0_sdk-1.0.1.dist-info → agent0_sdk-1.2.0.dist-info}/METADATA +29 -17
- agent0_sdk-1.2.0.dist-info/RECORD +20 -0
- agent0_sdk-1.0.1.dist-info/RECORD +0 -19
- {agent0_sdk-1.0.1.dist-info → agent0_sdk-1.2.0.dist-info}/WHEEL +0 -0
- {agent0_sdk-1.0.1.dist-info → agent0_sdk-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {agent0_sdk-1.0.1.dist-info → agent0_sdk-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agent0-sdk
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Python SDK for agent portability, discovery and trust based on ERC-8004
|
|
5
|
-
Author-email:
|
|
5
|
+
Author-email: Agent0 Team <team@ag0.xyz>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
8
|
Copyright (c) 2025 Marco De Rossi
|
|
@@ -86,7 +86,7 @@ Agent0 SDK enables you to:
|
|
|
86
86
|
- **Cross-chain registration** - One-line registration with IPFS nodes, Pinata, Filecoin, or HTTP URIs
|
|
87
87
|
- **Public indexing** - Subgraph indexing both on-chain and IPFS data for fast search and retrieval
|
|
88
88
|
|
|
89
|
-
**Bug reports & feedback:** GitHub: [Report issues](https://github.com/agent0lab/agent0-py/issues) | Telegram: [
|
|
89
|
+
**Bug reports & feedback:** GitHub: [Report issues](https://github.com/agent0lab/agent0-py/issues) | Telegram: [Agent0 channel](https://t.me/agent0kitchen) | Email: team@ag0.xyz
|
|
90
90
|
|
|
91
91
|
## Installation
|
|
92
92
|
|
|
@@ -213,31 +213,43 @@ agent_summary = sdk.getAgent("11155111:123")
|
|
|
213
213
|
### 5. Give and Retrieve Feedback
|
|
214
214
|
|
|
215
215
|
```python
|
|
216
|
-
#
|
|
217
|
-
|
|
216
|
+
# On-chain-only feedback (no off-chain upload, even if IPFS is configured)
|
|
217
|
+
feedback = sdk.giveFeedback(
|
|
218
218
|
agentId="11155111:123",
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
name="code_generation", # Optional: MCP tool name
|
|
224
|
-
skill="python" # Optional: A2A skill
|
|
219
|
+
value=85, # number|string
|
|
220
|
+
tag1="data_analyst", # Optional: tags are strings
|
|
221
|
+
tag2="finance",
|
|
222
|
+
endpoint="https://example.com/endpoint", # Optional: saved on-chain
|
|
225
223
|
)
|
|
226
224
|
|
|
227
|
-
#
|
|
228
|
-
|
|
225
|
+
# Rich feedback (optional off-chain file + on-chain fields)
|
|
226
|
+
feedback_file = sdk.prepareFeedbackFile({
|
|
227
|
+
"capability": "tools", # Optional: MCP capability
|
|
228
|
+
"name": "code_generation", # Optional: MCP tool name
|
|
229
|
+
"skill": "python", # Optional: A2A skill
|
|
230
|
+
"text": "Great agent!", # Optional
|
|
231
|
+
})
|
|
232
|
+
|
|
233
|
+
feedback = sdk.giveFeedback(
|
|
234
|
+
agentId="11155111:123",
|
|
235
|
+
value=85,
|
|
236
|
+
tag1="data_analyst",
|
|
237
|
+
tag2="finance",
|
|
238
|
+
endpoint="https://example.com/endpoint",
|
|
239
|
+
feedbackFile=feedback_file, # If provided, requires IPFS configured
|
|
240
|
+
)
|
|
229
241
|
|
|
230
242
|
# Search feedback
|
|
231
243
|
results = sdk.searchFeedback(
|
|
232
244
|
agentId="11155111:123",
|
|
233
245
|
capabilities=["tools"],
|
|
234
|
-
|
|
235
|
-
|
|
246
|
+
minValue=80,
|
|
247
|
+
maxValue=100
|
|
236
248
|
)
|
|
237
249
|
|
|
238
250
|
# Get reputation summary
|
|
239
251
|
summary = sdk.getReputationSummary("11155111:123")
|
|
240
|
-
print(f"Average
|
|
252
|
+
print(f"Average value: {summary['averageValue']}")
|
|
241
253
|
```
|
|
242
254
|
|
|
243
255
|
## IPFS Configuration Options
|
|
@@ -305,7 +317,7 @@ OASF skills and domains appear in your agent's registration file:
|
|
|
305
317
|
{
|
|
306
318
|
"name": "OASF",
|
|
307
319
|
"endpoint": "https://github.com/agntcy/oasf/",
|
|
308
|
-
"version": "
|
|
320
|
+
"version": "0.8",
|
|
309
321
|
"skills": [
|
|
310
322
|
"advanced_reasoning_planning/strategic_planning",
|
|
311
323
|
"data_engineering/data_transformation_pipeline"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
agent0_sdk/__init__.py,sha256=whhlT0msNtRmUKzXq97m38li8tjT9LOsJh6qYArYIqY,919
|
|
2
|
+
agent0_sdk/core/agent.py,sha256=NJo0pjigXznP0zDIrpryrL7pMj5bVvZIhfv4abKtUKk,45157
|
|
3
|
+
agent0_sdk/core/contracts.py,sha256=AVho-sfIv1dBY3iF34OVXg-kORoTWpFYlcreR9PUuAo,22398
|
|
4
|
+
agent0_sdk/core/endpoint_crawler.py,sha256=QBkFc3tBSQqHj6PtSTZ5D3_HVB00KJZJdxE3uYpI9po,13611
|
|
5
|
+
agent0_sdk/core/feedback_manager.py,sha256=NmPHGvTdenANGgM4LQHW0kQUoeCN9UtNr7qGfQIQQsw,41115
|
|
6
|
+
agent0_sdk/core/indexer.py,sha256=VJ5_vvmiwkgcj8xbGoyxS0KM_4Nmfofr1IxitZ3A4EQ,70548
|
|
7
|
+
agent0_sdk/core/ipfs_client.py,sha256=17XXMpJgLWhcNUSkmduAZt409c8oJXlj9C_eTGVk-Io,14185
|
|
8
|
+
agent0_sdk/core/models.py,sha256=lZ2VDDEYIdTJccySObaGJ39b1ocQyr5oOAQfhvp6xME,12160
|
|
9
|
+
agent0_sdk/core/oasf_validator.py,sha256=ZOtYYzQd7cJj3eJegi7Ch5ydoapJEjaJSxMvwzKSp5o,2980
|
|
10
|
+
agent0_sdk/core/sdk.py,sha256=8b4bMA57TczbFn2fGeDmW3W8zT6X73c1rV8tDUnNzBs,38241
|
|
11
|
+
agent0_sdk/core/subgraph_client.py,sha256=vnxDtKC40TGVX_L6X_F-0k8S5reQtGj9zUqNocVC66U,29407
|
|
12
|
+
agent0_sdk/core/value_encoding.py,sha256=ahcglBCIsWGQPjFsxFPieOFJ18kCgIU4oGe9UJajiyg,3272
|
|
13
|
+
agent0_sdk/core/web3_client.py,sha256=h7s-Al3E1xfbb3QNcPvmQBotKJRg23Jm9xot4emr-hU,12283
|
|
14
|
+
agent0_sdk/taxonomies/all_domains.json,sha256=buM8_6mpY8_AMbBIPzM-gtu14Tl30QDmhuQxxrlJU4c,74625
|
|
15
|
+
agent0_sdk/taxonomies/all_skills.json,sha256=WVsutw3fqoj1jfDPru3CyWTr1kc1a5-EhBOWPfXnEi8,47483
|
|
16
|
+
agent0_sdk-1.2.0.dist-info/licenses/LICENSE,sha256=rhZZbZm_Ovz4Oa9LNQ-ms8a1tA36wWh90ZkC0OR7WMw,1072
|
|
17
|
+
agent0_sdk-1.2.0.dist-info/METADATA,sha256=S1yRxTmHYHqQpF1XEFnbRU7kfruzFFsT6ViEo3BERxE,14561
|
|
18
|
+
agent0_sdk-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
agent0_sdk-1.2.0.dist-info/top_level.txt,sha256=p4520WUKNfhU0lVWJgkrB_jdeUfvHSY3K18k4oYLNfI,11
|
|
20
|
+
agent0_sdk-1.2.0.dist-info/RECORD,,
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
agent0_sdk/__init__.py,sha256=Rtb9_6FYcrqQw0sV7gmox6nj3W3IawaY4LLZriMbb20,919
|
|
2
|
-
agent0_sdk/core/agent.py,sha256=L8pDTXUWZ5ZmFgGjBwdheKTvMcGu9SlUP9MQD9TQ0MU,45061
|
|
3
|
-
agent0_sdk/core/contracts.py,sha256=euFfjnmpYHNfzzQFvYTvSI-xJGgzFTo2CNny6YaUKTg,21618
|
|
4
|
-
agent0_sdk/core/endpoint_crawler.py,sha256=QBkFc3tBSQqHj6PtSTZ5D3_HVB00KJZJdxE3uYpI9po,13611
|
|
5
|
-
agent0_sdk/core/feedback_manager.py,sha256=ndGROPISrQvfKjwrWiB_xJ9QIh0cLs4oHh666Ru-A_8,37650
|
|
6
|
-
agent0_sdk/core/indexer.py,sha256=BUL4QbbL9sN8eZ1osUdIn_Kgj-MF0SET8RtjbBERQm0,70326
|
|
7
|
-
agent0_sdk/core/ipfs_client.py,sha256=fml1ai1BdBkgb95xAkf-ft8QsahV1HL30hBYRz7rQwI,13929
|
|
8
|
-
agent0_sdk/core/models.py,sha256=1BSAX2LVbw0kL_qHK7DxBrIFx8PF3wQvzkzblcQTMUg,12042
|
|
9
|
-
agent0_sdk/core/oasf_validator.py,sha256=ZOtYYzQd7cJj3eJegi7Ch5ydoapJEjaJSxMvwzKSp5o,2980
|
|
10
|
-
agent0_sdk/core/sdk.py,sha256=c9vSKTer50aJr8VcJ6huj6N1pTRwCUtbCxl5G_5oXhk,40955
|
|
11
|
-
agent0_sdk/core/subgraph_client.py,sha256=VSK9gCB5uYc2OqAVQ659IgeF0N-tXwxPUbv7NK8Kz0U,29575
|
|
12
|
-
agent0_sdk/core/web3_client.py,sha256=h7s-Al3E1xfbb3QNcPvmQBotKJRg23Jm9xot4emr-hU,12283
|
|
13
|
-
agent0_sdk/taxonomies/all_domains.json,sha256=buM8_6mpY8_AMbBIPzM-gtu14Tl30QDmhuQxxrlJU4c,74625
|
|
14
|
-
agent0_sdk/taxonomies/all_skills.json,sha256=WVsutw3fqoj1jfDPru3CyWTr1kc1a5-EhBOWPfXnEi8,47483
|
|
15
|
-
agent0_sdk-1.0.1.dist-info/licenses/LICENSE,sha256=rhZZbZm_Ovz4Oa9LNQ-ms8a1tA36wWh90ZkC0OR7WMw,1072
|
|
16
|
-
agent0_sdk-1.0.1.dist-info/METADATA,sha256=WkgYGLtZzuaE57yJqmVS0pyNPcb0ByNfaWNBHfR0qI0,14268
|
|
17
|
-
agent0_sdk-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
-
agent0_sdk-1.0.1.dist-info/top_level.txt,sha256=p4520WUKNfhU0lVWJgkrB_jdeUfvHSY3K18k4oYLNfI,11
|
|
19
|
-
agent0_sdk-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|