uagents-core 0.1.0__py3-none-any.whl → 0.1.2__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.
@@ -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
- endpoints = [val.get("url") for val in endpoints]
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
- endpoints,
61
+ urls,
62
62
  weights=weights,
63
63
  k=min(max_endpoints, len(endpoints)),
64
64
  )
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: uagents-core
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Core components for agent based systems
5
5
  License: Apache 2.0
6
6
  Author: Ed FitzGerald
@@ -8,8 +8,8 @@ uagents_core/models.py,sha256=DhDQQQJ34QMHhLCO7nAJl5td7IdaIK8pAaoLhXU3VhA,1002
8
8
  uagents_core/registration.py,sha256=42xyyEzgW3hPx197KyOTYDrhFNu9uGOcRpo34EXmcA0,2134
9
9
  uagents_core/types.py,sha256=2tV23954ADupIp0SggLSO4PG8kTRXw9uHzfqMgbcdJk,236
10
10
  uagents_core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- uagents_core/utils/communication.py,sha256=9mw4lc5y_fUtRUfAl0Dkk10HcEJAefWaXl-BXbs7n74,4010
11
+ uagents_core/utils/communication.py,sha256=LjWDfEecu1t3WTAJdJp0kjPgeYA2gWzkh3Rk5QmElRo,4000
12
12
  uagents_core/utils/registration.py,sha256=1NPvpm20f3LE9LYJb2HP-SyEPlPa7ADM2HXmvHhx0fQ,7165
13
- uagents_core-0.1.0.dist-info/METADATA,sha256=RuVO-mne7GsExdPVhx4tflWAOFJHVqwJcXT71iLXfU0,1025
14
- uagents_core-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
- uagents_core-0.1.0.dist-info/RECORD,,
13
+ uagents_core-0.1.2.dist-info/METADATA,sha256=tFbhSlkONyw3DkC5Ay2p7SMEZMHqJds2cg16BgszEVM,1025
14
+ uagents_core-0.1.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
15
+ uagents_core-0.1.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any