pycityagent 2.0.0a3__py3-none-any.whl → 2.0.0a4__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.
@@ -331,18 +331,18 @@ class AgentSimulation:
331
331
  """
332
332
  try:
333
333
  # 获取开始时间
334
- start_time = self.simulator.GetTime()
334
+ start_time = await self.simulator.GetTime()
335
335
  # 计算结束时间(秒)
336
336
  end_time = start_time + day * 24 * 3600 # 将天数转换为秒
337
337
 
338
338
  while True:
339
- current_time = self.simulator.GetTime()
339
+ current_time = await self.simulator.GetTime()
340
340
  if current_time >= end_time:
341
341
  break
342
342
 
343
343
  tasks = []
344
344
  for agent in self._agents.values():
345
- if agent.name not in self._blocked_agents:
345
+ if agent._name not in self._blocked_agents:
346
346
  tasks.append(agent.forward())
347
347
 
348
348
  await asyncio.gather(*tasks)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycityagent
3
- Version: 2.0.0a3
3
+ Version: 2.0.0a4
4
4
  Summary: LLM-based城市环境agent构建库
5
5
  License: MIT
6
6
  Author: Yuwei Yan
@@ -47,7 +47,7 @@ pycityagent/memory/utils.py,sha256=97lkenn-36wgt7uWb3Z39BXdJ5zlEQTQnQBFpoND1gg,8
47
47
  pycityagent/message/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  pycityagent/simulation/__init__.py,sha256=SZQzjcGR-zkTDrE81bQuEdKn7yjk4BcZ9m7o1wTc7EE,111
49
49
  pycityagent/simulation/interview.py,sha256=mY4Vpz0vgJo4rrMy3TZnwwM-iVDL6J0LgjOxbEuV27E,1173
50
- pycityagent/simulation/simulation.py,sha256=-vm0Yhl_k4_CbGYScg-V4dD2KEyLiarN27u0ccaX8ao,12680
50
+ pycityagent/simulation/simulation.py,sha256=kw_jubzqAG3_5oAaiGp1kj-YPa5WkNomNlzWJLVv3zE,12693
51
51
  pycityagent/simulation/survey/__init__.py,sha256=hFJ0Q1yo4jwKAIXP17sznBSWwm2Lyh3F3W3Lly40wr8,172
52
52
  pycityagent/simulation/survey/manager.py,sha256=DkNrb12Ay7TiGURoyJTFFeUdV1zh6TgRpTmpZOblADw,2158
53
53
  pycityagent/simulation/survey/models.py,sha256=-3EKe-qvkUJ2TH24ow0A_Lc4teGet7pueN2T5mOR_Qc,1308
@@ -64,6 +64,6 @@ pycityagent/workflow/block.py,sha256=IXfarqIax6yVP_DniU6ZsPTT8QA4aIDnvZbwP_MtRaw
64
64
  pycityagent/workflow/prompt.py,sha256=cmzKEmlzjdwg50uwfnTnN_6xNJA8OVjo5fdmcsaTbdU,2886
65
65
  pycityagent/workflow/tool.py,sha256=4sYbH-OVNffXbK3m58f8ap6WrS_uMzhK1c_Rl2er1B0,8981
66
66
  pycityagent/workflow/trigger.py,sha256=u2aPBOzTWvdYKb45nUsQfA_uRunsmbLzB7ztSU2mlrQ,5736
67
- pycityagent-2.0.0a3.dist-info/METADATA,sha256=C5Mcssb-bkqMJEBYu3MsqGTqfjgH__gFo_3w9wItFAA,7537
68
- pycityagent-2.0.0a3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
69
- pycityagent-2.0.0a3.dist-info/RECORD,,
67
+ pycityagent-2.0.0a4.dist-info/METADATA,sha256=IuG2kyKohMKeLuQm-HpYiynakmYCmr4la1ZFRdmH76I,7537
68
+ pycityagent-2.0.0a4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
69
+ pycityagent-2.0.0a4.dist-info/RECORD,,