pycityagent 2.0.0a57__cp39-cp39-macosx_11_0_arm64.whl → 2.0.0a58__cp39-cp39-macosx_11_0_arm64.whl
Sign up to get free protection for your applications and to get access to all the features.
- pycityagent/environment/simulator.py +2 -3
- pycityagent/simulation/simulation.py +3 -0
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/METADATA +1 -1
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/RECORD +8 -8
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/LICENSE +0 -0
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/WHEEL +0 -0
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/entry_points.txt +0 -0
- {pycityagent-2.0.0a57.dist-info → pycityagent-2.0.0a58.dist-info}/top_level.txt +0 -0
@@ -65,6 +65,7 @@ class Simulator:
|
|
65
65
|
sim_addr=config["simulator"].get("server", None),
|
66
66
|
)
|
67
67
|
self.server_addr = sim_env.sim_addr
|
68
|
+
config["simulator"]["server"] = self.server_addr
|
68
69
|
# using local client
|
69
70
|
self._client = CityClient(sim_env.sim_addr, secure=False)
|
70
71
|
"""
|
@@ -72,10 +73,8 @@ class Simulator:
|
|
72
73
|
- grpc client of simulator
|
73
74
|
"""
|
74
75
|
else:
|
75
|
-
raise ValueError(
|
76
|
-
f"Passing Traffic Simulation address is not supported!"
|
77
|
-
)
|
78
76
|
self._client = CityClient(config["simulator"]["server"], secure=False)
|
77
|
+
self.server_addr = config["simulator"]["server"]
|
79
78
|
else:
|
80
79
|
self.server_addr = None
|
81
80
|
logger.warning(
|
@@ -83,6 +83,9 @@ class AgentSimulation:
|
|
83
83
|
self.config = config
|
84
84
|
self.exp_name = exp_name
|
85
85
|
self._simulator = Simulator(config["simulator_request"])
|
86
|
+
_simulator_config = config["simulator_request"].get("simulator", {})
|
87
|
+
if "server" in _simulator_config:
|
88
|
+
raise ValueError(f"Passing Traffic Simulation address is not supported!")
|
86
89
|
if enable_economy:
|
87
90
|
self._economy_addr = economy_addr = self._simulator.server_addr
|
88
91
|
if economy_addr is None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pycityagent
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.0a58
|
4
4
|
Summary: LLM-based city environment agent building library
|
5
5
|
Author-email: Yuwei Yan <pinkgranite86@gmail.com>, Junbo Yan <yanjb20thu@gmali.com>, Jun Zhang <zhangjun990222@gmali.com>
|
6
6
|
License: MIT License
|
@@ -1,3 +1,9 @@
|
|
1
|
+
pycityagent-2.0.0a58.dist-info/RECORD,,
|
2
|
+
pycityagent-2.0.0a58.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
|
3
|
+
pycityagent-2.0.0a58.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
|
4
|
+
pycityagent-2.0.0a58.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
|
5
|
+
pycityagent-2.0.0a58.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
|
6
|
+
pycityagent-2.0.0a58.dist-info/METADATA,sha256=AUgPOiWxGpZ5A9LMIruA_h9B0S41Zu_Z_eCY1_Z23iE,9110
|
1
7
|
pycityagent/pycityagent-sim,sha256=1Nu-QYC0AuZyVWciGNa2XkYsUntbwAS15Bo7l-y6eok,35449490
|
2
8
|
pycityagent/__init__.py,sha256=PUKWTXc-xdMG7px8oTNclodsILUgypANj2Z647sY63k,808
|
3
9
|
pycityagent/pycityagent-ui,sha256=cHZjqtrQ4Fh4qtRahFNCNbT2DNHLmUexiDAa-72Z3RQ,40333378
|
@@ -22,7 +28,7 @@ pycityagent/memory/utils.py,sha256=oJWLdPeJy_jcdKcDTo9JAH9kDZhqjoQhhv_zT9qWC0w,8
|
|
22
28
|
pycityagent/memory/const.py,sha256=6zpJPJXWoH9-yf4RARYYff586agCoud9BRn7sPERB1g,932
|
23
29
|
pycityagent/memory/faiss_query.py,sha256=V3rIw6d1_xcpNqZBbAYz3qfjVNE7NfJ7xOS5SibPtVU,13180
|
24
30
|
pycityagent/memory/state.py,sha256=TYItiyDtehMEQaSBN7PpNrnNxdDM5jGppr9R9Ufv3kA,5134
|
25
|
-
pycityagent/simulation/simulation.py,sha256=
|
31
|
+
pycityagent/simulation/simulation.py,sha256=RZvDC6QBHjbm4d4WVdBJICG-X7TOSiQ04elZQBJWbeo,33646
|
26
32
|
pycityagent/simulation/__init__.py,sha256=P5czbcg2d8S0nbbnsQXFIhwzO4CennAhZM8OmKvAeYw,194
|
27
33
|
pycityagent/simulation/agentgroup.py,sha256=UnWUQ3Ev4qDQCOasb-EN08aUQi4SWHmM6aNSdBc850Q,31693
|
28
34
|
pycityagent/simulation/storage/pg.py,sha256=xRshSOGttW-p0re0fNBOjOpb-nQ5msIE2LsdT79_E_Y,8425
|
@@ -47,7 +53,7 @@ pycityagent/workflow/prompt.py,sha256=6jI0Rq54JLv3-IXqZLYug62vse10wTI83xvf4ZX42n
|
|
47
53
|
pycityagent/workflow/block.py,sha256=4QufS8XnyP6SYp8g1gDODW-H0nAHA7lvivrPGUq1p-w,9922
|
48
54
|
pycityagent/workflow/trigger.py,sha256=Df-MOBEDWBbM-v0dFLQLXteLsipymT4n8vqexmK2GiQ,5643
|
49
55
|
pycityagent/environment/__init__.py,sha256=MyZBwsweDIHOKSX2iSZs748foNtaiyEcyg6sc747T2g,263
|
50
|
-
pycityagent/environment/simulator.py,sha256=
|
56
|
+
pycityagent/environment/simulator.py,sha256=8imXFHhNxVhritO7YEZqM59x4VkKS8rc0Dwu6SHaREo,12439
|
51
57
|
pycityagent/environment/message/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
58
|
pycityagent/environment/utils/port.py,sha256=3OM6kSUt3PxvDUOlgyiendBtETaWU8Mzk_8H0TzTmYg,295
|
53
59
|
pycityagent/environment/utils/grpc.py,sha256=6EJwKXXktIWb1NcUiJzIRmfrY0S03QAXXGcCDHqAT00,1998
|
@@ -97,9 +103,3 @@ pycityagent/cityagent/blocks/mobility_block.py,sha256=xWbARMfJ3-6fddrW3VOUKJrXfM
|
|
97
103
|
pycityagent/survey/models.py,sha256=YE50UUt5qJ0O_lIUsSY6XFCGUTkJVNu_L1gAhaCJ2fs,3546
|
98
104
|
pycityagent/survey/__init__.py,sha256=rxwou8U9KeFSP7rMzXtmtp2fVFZxK4Trzi-psx9LPIs,153
|
99
105
|
pycityagent/survey/manager.py,sha256=S5IkwTdelsdtZETChRcfCEczzwSrry_Fly9MY4s3rbk,1681
|
100
|
-
pycityagent-2.0.0a57.dist-info/RECORD,,
|
101
|
-
pycityagent-2.0.0a57.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
|
102
|
-
pycityagent-2.0.0a57.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
|
103
|
-
pycityagent-2.0.0a57.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
|
104
|
-
pycityagent-2.0.0a57.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
|
105
|
-
pycityagent-2.0.0a57.dist-info/METADATA,sha256=yn1syqalcmvcSdrXMOmcXa7Cj3-IHDE4AIL20UvDaEs,9110
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|