agent0-sdk 1.4.2__tar.gz → 1.5.0b1__tar.gz

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.
Files changed (28) hide show
  1. {agent0_sdk-1.4.2/agent0_sdk.egg-info → agent0_sdk-1.5.0b1}/PKG-INFO +16 -6
  2. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/README.md +15 -5
  3. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/__init__.py +7 -3
  4. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/contracts.py +1 -0
  5. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/indexer.py +772 -116
  6. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/models.py +93 -12
  7. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/sdk.py +27 -306
  8. agent0_sdk-1.5.0b1/agent0_sdk/core/semantic_search_client.py +66 -0
  9. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/subgraph_client.py +182 -239
  10. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1/agent0_sdk.egg-info}/PKG-INFO +16 -6
  11. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk.egg-info/SOURCES.txt +1 -0
  12. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk.egg-info/top_level.txt +0 -1
  13. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/pyproject.toml +1 -1
  14. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/LICENSE +0 -0
  15. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/MANIFEST.in +0 -0
  16. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/agent.py +0 -0
  17. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/endpoint_crawler.py +0 -0
  18. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/feedback_manager.py +0 -0
  19. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/ipfs_client.py +0 -0
  20. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/oasf_validator.py +0 -0
  21. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/transaction_handle.py +0 -0
  22. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/value_encoding.py +0 -0
  23. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/core/web3_client.py +0 -0
  24. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/taxonomies/all_domains.json +0 -0
  25. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk/taxonomies/all_skills.json +0 -0
  26. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk.egg-info/dependency_links.txt +0 -0
  27. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/agent0_sdk.egg-info/requires.txt +0 -0
  28. {agent0_sdk-1.4.2 → agent0_sdk-1.5.0b1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent0-sdk
3
- Version: 1.4.2
3
+ Version: 1.5.0b1
4
4
  Summary: Python SDK for agent portability, discovery and trust based on ERC-8004
5
5
  Author-email: Agent0 Team <team@ag0.xyz>
6
6
  License: MIT License
@@ -104,6 +104,12 @@ Agent0 SDK enables you to:
104
104
  pip install agent0-sdk
105
105
  ```
106
106
 
107
+ To install the **1.5.0 pre-release** explicitly:
108
+
109
+ ```bash
110
+ pip install --pre agent0-sdk==1.5.0b1
111
+ ```
112
+
107
113
  ### Install from Source
108
114
 
109
115
  ```bash
@@ -198,11 +204,15 @@ print(f"Updated: {update.agentURI}")
198
204
  ```python
199
205
  # Search by name, capabilities, or attributes
200
206
  results = sdk.searchAgents(
201
- name="AI", # Substring search
202
- mcpTools=["code_generation"], # Specific MCP tools
203
- a2aSkills=["python"], # Specific A2A skills
204
- active=True, # Only active agents
205
- x402support=True # Payment support
207
+ filters={
208
+ "name": "AI", # substring
209
+ "mcpTools": ["code_generation"],
210
+ "a2aSkills": ["python"],
211
+ "active": True,
212
+ "x402support": True,
213
+ "feedback": {"minValue": 80, "tag": "enterprise", "includeRevoked": False},
214
+ },
215
+ options={"pageSize": 20, "sort": ["updatedAt:desc"]},
206
216
  )
207
217
 
208
218
  for agent in results['items']:
@@ -34,6 +34,12 @@ Agent0 SDK enables you to:
34
34
  pip install agent0-sdk
35
35
  ```
36
36
 
37
+ To install the **1.5.0 pre-release** explicitly:
38
+
39
+ ```bash
40
+ pip install --pre agent0-sdk==1.5.0b1
41
+ ```
42
+
37
43
  ### Install from Source
38
44
 
39
45
  ```bash
@@ -128,11 +134,15 @@ print(f"Updated: {update.agentURI}")
128
134
  ```python
129
135
  # Search by name, capabilities, or attributes
130
136
  results = sdk.searchAgents(
131
- name="AI", # Substring search
132
- mcpTools=["code_generation"], # Specific MCP tools
133
- a2aSkills=["python"], # Specific A2A skills
134
- active=True, # Only active agents
135
- x402support=True # Payment support
137
+ filters={
138
+ "name": "AI", # substring
139
+ "mcpTools": ["code_generation"],
140
+ "a2aSkills": ["python"],
141
+ "active": True,
142
+ "x402support": True,
143
+ "feedback": {"minValue": 80, "tag": "enterprise", "includeRevoked": False},
144
+ },
145
+ options={"pageSize": 20, "sort": ["updatedAt:desc"]},
136
146
  )
137
147
 
138
148
  for agent in results['items']:
@@ -16,7 +16,9 @@ from .core.models import (
16
16
  RegistrationFile,
17
17
  AgentSummary,
18
18
  Feedback,
19
- SearchParams,
19
+ SearchFilters,
20
+ SearchOptions,
21
+ FeedbackFilters,
20
22
  SearchFeedbackParams,
21
23
  )
22
24
 
@@ -33,7 +35,7 @@ except ImportError:
33
35
  TransactionMined = None
34
36
  _sdk_available = False
35
37
 
36
- __version__ = "1.4.2"
38
+ __version__ = "1.5.0b1"
37
39
  __all__ = [
38
40
  "SDK",
39
41
  "Agent",
@@ -52,6 +54,8 @@ __all__ = [
52
54
  "RegistrationFile",
53
55
  "AgentSummary",
54
56
  "Feedback",
55
- "SearchParams",
57
+ "SearchFilters",
58
+ "SearchOptions",
59
+ "FeedbackFilters",
56
60
  "SearchFeedbackParams",
57
61
  ]
@@ -547,6 +547,7 @@ DEFAULT_REGISTRIES: Dict[int, Dict[str, str]] = {
547
547
  DEFAULT_SUBGRAPH_URLS: Dict[int, str] = {
548
548
  1: "https://gateway.thegraph.com/api/7fd2e7d89ce3ef24cd0d4590298f0b2c/subgraphs/id/FV6RR6y13rsnCxBAicKuQEwDp8ioEGiNaWaZUmvr1F8k", # Ethereum Mainnet
549
549
  11155111: "https://gateway.thegraph.com/api/00a452ad3cd1900273ea62c1bf283f93/subgraphs/id/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT", # Ethereum Sepolia
550
+ 137: "https://gateway.thegraph.com/api/782d61ed390e625b8867995389699b4c/subgraphs/id/9q16PZv1JudvtnCAf44cBoxg82yK9SSsFvrjCY9xnneF", # Polygon Mainnet
550
551
  # Other chains temporarily disabled - subgraphs to be updated
551
552
  # 84532: "https://gateway.thegraph.com/api/...", # Base Sepolia - To be updated
552
553
  # 80002: "https://gateway.thegraph.com/api/...", # Polygon Amoy - To be updated