pycityagent 2.0.0a16__py3-none-any.whl → 2.0.0a18__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.
- pycityagent/economy/econ_client.py +9 -0
- pycityagent/simulation/simulation.py +6 -5
- {pycityagent-2.0.0a16.dist-info → pycityagent-2.0.0a18.dist-info}/METADATA +2 -2
- {pycityagent-2.0.0a16.dist-info → pycityagent-2.0.0a18.dist-info}/RECORD +5 -5
- {pycityagent-2.0.0a16.dist-info → pycityagent-2.0.0a18.dist-info}/WHEEL +0 -0
@@ -307,3 +307,12 @@ class EconomyClient:
|
|
307
307
|
)
|
308
308
|
# current agent ids and org ids
|
309
309
|
return (list(response.agent_ids), list(response.org_ids))
|
310
|
+
|
311
|
+
async def get_org_entity_ids(self, org_type: economyv2.OrgType)->list[int]:
|
312
|
+
request = org_service.GetOrgEntityIdsRequest(
|
313
|
+
type=org_type,
|
314
|
+
)
|
315
|
+
response: org_service.GetOrgEntityIdsResponse = (
|
316
|
+
await self._aio_stub.GetOrgEntityIds(request)
|
317
|
+
)
|
318
|
+
return list(response.org_ids)
|
@@ -488,12 +488,13 @@ class AgentSimulation:
|
|
488
488
|
monitor_task = asyncio.create_task(self._monitor_exp_status(stop_event))
|
489
489
|
|
490
490
|
try:
|
491
|
-
|
492
|
-
|
493
|
-
|
491
|
+
for _ in range(day):
|
492
|
+
tasks = []
|
493
|
+
for group in self._groups.values():
|
494
|
+
tasks.append(group.run.remote())
|
494
495
|
|
495
|
-
|
496
|
-
|
496
|
+
# 等待所有group运行完成
|
497
|
+
await asyncio.gather(*tasks)
|
497
498
|
|
498
499
|
finally:
|
499
500
|
# 设置停止事件
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pycityagent
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.0a18
|
4
4
|
Summary: LLM-based城市环境agent构建库
|
5
5
|
License: MIT
|
6
6
|
Author: Yuwei Yan
|
@@ -34,7 +34,7 @@ Requires-Dist: pandavro (>=1.8.0,<2.0.0)
|
|
34
34
|
Requires-Dist: poetry (>=1.2.2)
|
35
35
|
Requires-Dist: protobuf (<=4.24.0)
|
36
36
|
Requires-Dist: pycitydata (==1.0.0)
|
37
|
-
Requires-Dist: pycityproto (>=2.1.
|
37
|
+
Requires-Dist: pycityproto (>=2.1.4,<3.0.0)
|
38
38
|
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
39
39
|
Requires-Dist: ray (>=2.40.0,<3.0.0)
|
40
40
|
Requires-Dist: sidecar (==0.7.0)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
pycityagent/__init__.py,sha256=EDxt3Su3lH1IMh9suNw7GeGL7UrXeWiZTw5KWNznDzc,637
|
2
2
|
pycityagent/agent.py,sha256=t9W9sKxtQ0EkMxL78kAjAu-rXigEK6gyLY0IEA4DbnQ,23143
|
3
3
|
pycityagent/economy/__init__.py,sha256=aonY4WHnx-6EGJ4WKrx4S-2jAkYNLtqUA04jp6q8B7w,75
|
4
|
-
pycityagent/economy/econ_client.py,sha256=
|
4
|
+
pycityagent/economy/econ_client.py,sha256=DE11Ng_NO_foW65A-LxFW0VED-HLrnn4GwUf_Xn-Tlg,11189
|
5
5
|
pycityagent/environment/__init__.py,sha256=awHxlOud-btWbk0FCS4RmGJ13W84oVCkbGfcrhKqihA,240
|
6
6
|
pycityagent/environment/interact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
pycityagent/environment/interact/interact.py,sha256=ifxPPzuHeqLHIZ_6zvfXMoBOnBsXNIP4bYp7OJ7pnEQ,6588
|
@@ -47,7 +47,7 @@ pycityagent/message/__init__.py,sha256=TCjazxqb5DVwbTu1fF0sNvaH_EPXVuj2XQ0p6W-QC
|
|
47
47
|
pycityagent/message/messager.py,sha256=W_OVlNGcreHSBf6v-DrEnfNCXExB78ySr0w26MSncfU,2541
|
48
48
|
pycityagent/simulation/__init__.py,sha256=jYaqaNpzM5M_e_ykISS_M-mIyYdzJXJWhgpfBpA6l5k,111
|
49
49
|
pycityagent/simulation/agentgroup.py,sha256=M19XWJRWyjMAYS0_RIOBQ2C7I1MuVYIaX3DgehGZL2Y,12541
|
50
|
-
pycityagent/simulation/simulation.py,sha256=
|
50
|
+
pycityagent/simulation/simulation.py,sha256=9VH-VaRufUcQcVhqXcQJTMtrquns8pbDpRTfK6736Io,19318
|
51
51
|
pycityagent/survey/__init__.py,sha256=rxwou8U9KeFSP7rMzXtmtp2fVFZxK4Trzi-psx9LPIs,153
|
52
52
|
pycityagent/survey/manager.py,sha256=S5IkwTdelsdtZETChRcfCEczzwSrry_Fly9MY4s3rbk,1681
|
53
53
|
pycityagent/survey/models.py,sha256=YE50UUt5qJ0O_lIUsSY6XFCGUTkJVNu_L1gAhaCJ2fs,3546
|
@@ -64,6 +64,6 @@ pycityagent/workflow/block.py,sha256=6EmiRMLdOZC1wMlmLMIjfrp9TuiI7Gw4s3nnXVMbrnw
|
|
64
64
|
pycityagent/workflow/prompt.py,sha256=tY69nDO8fgYfF_dOA-iceR8pAhkYmCqoox8uRPqEuGY,2956
|
65
65
|
pycityagent/workflow/tool.py,sha256=_bCluIX8HTC8ZW6a-wrMB3Uhx2yzD8sM8XFDI3vd0MM,6642
|
66
66
|
pycityagent/workflow/trigger.py,sha256=t5X_i0WtL32bipZSsq_E3UUyYYudYLxQUpvxbgClp2s,5683
|
67
|
-
pycityagent-2.0.
|
68
|
-
pycityagent-2.0.
|
69
|
-
pycityagent-2.0.
|
67
|
+
pycityagent-2.0.0a18.dist-info/METADATA,sha256=iajlG1hMfjQA2qBuTYITWemGBg4TEPU8hHpSU1l0MDs,7760
|
68
|
+
pycityagent-2.0.0a18.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
69
|
+
pycityagent-2.0.0a18.dist-info/RECORD,,
|
File without changes
|