agent0-sdk 0.31__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 +52 -0
- agent0_sdk/core/agent.py +992 -0
- agent0_sdk/core/contracts.py +497 -0
- agent0_sdk/core/endpoint_crawler.py +330 -0
- agent0_sdk/core/feedback_manager.py +1023 -0
- agent0_sdk/core/indexer.py +1754 -0
- agent0_sdk/core/ipfs_client.py +355 -0
- agent0_sdk/core/models.py +313 -0
- agent0_sdk/core/oasf_validator.py +98 -0
- agent0_sdk/core/sdk.py +1045 -0
- agent0_sdk/core/subgraph_client.py +833 -0
- agent0_sdk/core/web3_client.py +192 -0
- agent0_sdk/taxonomies/all_domains.json +1565 -0
- agent0_sdk/taxonomies/all_skills.json +1030 -0
- agent0_sdk-0.31.dist-info/METADATA +367 -0
- agent0_sdk-0.31.dist-info/RECORD +33 -0
- agent0_sdk-0.31.dist-info/WHEEL +5 -0
- agent0_sdk-0.31.dist-info/licenses/LICENSE +22 -0
- agent0_sdk-0.31.dist-info/top_level.txt +2 -0
- tests/__init__.py +1 -0
- tests/config.py +46 -0
- tests/conftest.py +22 -0
- tests/discover_test_data.py +445 -0
- tests/test_feedback.py +417 -0
- tests/test_models.py +224 -0
- tests/test_multi_chain.py +588 -0
- tests/test_oasf_management.py +404 -0
- tests/test_real_public_servers.py +103 -0
- tests/test_registration.py +267 -0
- tests/test_registrationIpfs.py +227 -0
- tests/test_sdk.py +240 -0
- tests/test_search.py +415 -0
- tests/test_transfer.py +255 -0
agent0_sdk/__init__.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Agent0 SDK - Python SDK for agent portability, discovery and trust based on ERC-8004.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .core.models import (
|
|
6
|
+
AgentId,
|
|
7
|
+
ChainId,
|
|
8
|
+
Address,
|
|
9
|
+
URI,
|
|
10
|
+
CID,
|
|
11
|
+
Timestamp,
|
|
12
|
+
IdemKey,
|
|
13
|
+
EndpointType,
|
|
14
|
+
TrustModel,
|
|
15
|
+
Endpoint,
|
|
16
|
+
RegistrationFile,
|
|
17
|
+
AgentSummary,
|
|
18
|
+
Feedback,
|
|
19
|
+
SearchParams,
|
|
20
|
+
SearchFeedbackParams,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
# Try to import SDK and Agent (may fail if web3 is not installed)
|
|
24
|
+
try:
|
|
25
|
+
from .core.sdk import SDK
|
|
26
|
+
from .core.agent import Agent
|
|
27
|
+
_sdk_available = True
|
|
28
|
+
except ImportError:
|
|
29
|
+
SDK = None
|
|
30
|
+
Agent = None
|
|
31
|
+
_sdk_available = False
|
|
32
|
+
|
|
33
|
+
__version__ = "0.31"
|
|
34
|
+
__all__ = [
|
|
35
|
+
"SDK",
|
|
36
|
+
"Agent",
|
|
37
|
+
"AgentId",
|
|
38
|
+
"ChainId",
|
|
39
|
+
"Address",
|
|
40
|
+
"URI",
|
|
41
|
+
"CID",
|
|
42
|
+
"Timestamp",
|
|
43
|
+
"IdemKey",
|
|
44
|
+
"EndpointType",
|
|
45
|
+
"TrustModel",
|
|
46
|
+
"Endpoint",
|
|
47
|
+
"RegistrationFile",
|
|
48
|
+
"AgentSummary",
|
|
49
|
+
"Feedback",
|
|
50
|
+
"SearchParams",
|
|
51
|
+
"SearchFeedbackParams",
|
|
52
|
+
]
|