uagents-core 0.1.0__tar.gz → 0.1.2__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.
- {uagents_core-0.1.0 → uagents_core-0.1.2}/PKG-INFO +2 -2
- {uagents_core-0.1.0 → uagents_core-0.1.2}/pyproject.toml +1 -1
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/utils/communication.py +2 -2
- {uagents_core-0.1.0 → uagents_core-0.1.2}/README.md +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/__init__.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/communication.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/config.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/crypto.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/envelope.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/logger.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/models.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/registration.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/types.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/utils/__init__.py +0 -0
- {uagents_core-0.1.0 → uagents_core-0.1.2}/uagents_core/utils/registration.py +0 -0
@@ -55,10 +55,10 @@ def lookup_endpoint_for_agent(
|
|
55
55
|
endpoints = r.json().get("endpoints", [])
|
56
56
|
|
57
57
|
if len(endpoints) > 0:
|
58
|
-
|
58
|
+
urls = [val.get("url") for val in endpoints]
|
59
59
|
weights = [val.get("weight") for val in endpoints]
|
60
60
|
return weighted_random_sample(
|
61
|
-
|
61
|
+
urls,
|
62
62
|
weights=weights,
|
63
63
|
k=min(max_endpoints, len(endpoints)),
|
64
64
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|