pycityagent 2.0.0a24__py3-none-any.whl → 2.0.0a25__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.
@@ -3,7 +3,6 @@
3
3
  import asyncio
4
4
  import logging
5
5
  import os
6
- from collections.abc import Sequence
7
6
  from datetime import datetime, timedelta
8
7
  from typing import Any, Optional, Union, cast
9
8
 
@@ -22,13 +21,14 @@ from .utils.const import *
22
21
 
23
22
  logger = logging.getLogger("pycityagent")
24
23
 
24
+
25
25
  class Simulator:
26
26
  """
27
27
  - 模拟器主类
28
28
  - Simulator Class
29
29
  """
30
30
 
31
- def __init__(self, config:dict, secure: bool = False) -> None:
31
+ def __init__(self, config: dict, secure: bool = False) -> None:
32
32
  self.config = config
33
33
  """
34
34
  - 模拟器配置
@@ -193,7 +193,7 @@ class Simulator:
193
193
  else:
194
194
  # BUG: 返回的time是float类型
195
195
  return t_sec["t"]
196
-
196
+
197
197
  async def get_simulator_day(self) -> int:
198
198
  """
199
199
  获取模拟器到第几日
@@ -202,7 +202,7 @@ class Simulator:
202
202
  t_sec = cast(dict[str, int], t_sec)
203
203
  day = t_sec["t"] // 86400
204
204
  return day
205
-
205
+
206
206
  async def get_simulator_second_from_start_of_day(self) -> int:
207
207
  """
208
208
  获取模拟器从00:00:00到当前的秒数
@@ -316,7 +316,7 @@ class Simulator:
316
316
  radius: float,
317
317
  poi_type: Union[str, list[str]],
318
318
  ):
319
- if not isinstance(poi_type, Sequence):
319
+ if isinstance(poi_type, str):
320
320
  poi_type = [poi_type]
321
321
  transformed_poi_type = []
322
322
  for t in poi_type:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycityagent
3
- Version: 2.0.0a24
3
+ Version: 2.0.0a25
4
4
  Summary: LLM-based城市环境agent构建库
5
5
  License: MIT
6
6
  Author: Yuwei Yan
@@ -21,7 +21,7 @@ pycityagent/environment/sim/person_service.py,sha256=5r1F2Itn7dKJ2U4hSLovrk5p4qy
21
21
  pycityagent/environment/sim/road_service.py,sha256=bKyn3_me0sGmaJVyF6eNeFbdU-9C1yWsa9L7pieDJzg,1285
22
22
  pycityagent/environment/sim/sim_env.py,sha256=HI1LcS_FotDKQ6vBnx0e49prXSABOfA20aU9KM-ZkCY,4625
23
23
  pycityagent/environment/sim/social_service.py,sha256=9EFJAwVdUuUQkNkFRn9qZRDfD1brh2fqkvasnXUEBhQ,2014
24
- pycityagent/environment/simulator.py,sha256=XjcxbyBIbB3Ht9z087z_oWIPAN6pP5Eq1lyf4W5atb8,12502
24
+ pycityagent/environment/simulator.py,sha256=Vm8Rvczv20ETpAWhCYyxbnN25uoRyAv6DX7WoavjEVU,12446
25
25
  pycityagent/environment/utils/__init__.py,sha256=1m4Q1EfGvNpUsa1bgQzzCyWhfkpElnskNImjjFD3Znc,237
26
26
  pycityagent/environment/utils/base64.py,sha256=hoREzQo3FXMN79pqQLO2jgsDEvudciomyKii7MWljAM,374
27
27
  pycityagent/environment/utils/const.py,sha256=3RMNy7_bE7-23K90j9DFW_tWEzu8s7hSTgKbV-3BFl4,5327
@@ -70,6 +70,6 @@ pycityagent/workflow/block.py,sha256=l-z9iJo9_USZQRyj4TLMfihK0-tnNDG0a6jVk9WhG0o
70
70
  pycityagent/workflow/prompt.py,sha256=6jI0Rq54JLv3-IXqZLYug62vse10wTI83xvf4ZX42nk,2929
71
71
  pycityagent/workflow/tool.py,sha256=xADxhNgVsjNiMxlhdwn3xGUstFOkLEG8P67ez8VmwSI,8555
72
72
  pycityagent/workflow/trigger.py,sha256=Df-MOBEDWBbM-v0dFLQLXteLsipymT4n8vqexmK2GiQ,5643
73
- pycityagent-2.0.0a24.dist-info/METADATA,sha256=cHowSJH9VJmum92fAEfRvQYtWmbCJRnVgOmI2JZDlqw,8033
74
- pycityagent-2.0.0a24.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
75
- pycityagent-2.0.0a24.dist-info/RECORD,,
73
+ pycityagent-2.0.0a25.dist-info/METADATA,sha256=lB0qL357khfixTBH-M-cX2-FxCGhsD3IuUyPqVY07uI,8033
74
+ pycityagent-2.0.0a25.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
75
+ pycityagent-2.0.0a25.dist-info/RECORD,,