pycityagent 2.0.0a94__cp311-cp311-macosx_11_0_arm64.whl → 2.0.0a95__cp311-cp311-macosx_11_0_arm64.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/agent/agent.py +5 -5
- pycityagent/agent/agent_base.py +1 -2
- pycityagent/cityagent/__init__.py +6 -5
- pycityagent/cityagent/bankagent.py +2 -2
- pycityagent/cityagent/blocks/__init__.py +4 -4
- pycityagent/cityagent/blocks/cognition_block.py +7 -4
- pycityagent/cityagent/blocks/economy_block.py +227 -135
- pycityagent/cityagent/blocks/mobility_block.py +70 -27
- pycityagent/cityagent/blocks/needs_block.py +11 -12
- pycityagent/cityagent/blocks/other_block.py +2 -2
- pycityagent/cityagent/blocks/plan_block.py +22 -24
- pycityagent/cityagent/blocks/social_block.py +15 -17
- pycityagent/cityagent/blocks/utils.py +3 -2
- pycityagent/cityagent/firmagent.py +1 -1
- pycityagent/cityagent/governmentagent.py +1 -1
- pycityagent/cityagent/initial.py +1 -1
- pycityagent/cityagent/memory_config.py +0 -1
- pycityagent/cityagent/message_intercept.py +7 -8
- pycityagent/cityagent/nbsagent.py +1 -1
- pycityagent/cityagent/societyagent.py +1 -2
- pycityagent/configs/__init__.py +18 -0
- pycityagent/configs/exp_config.py +202 -0
- pycityagent/configs/sim_config.py +251 -0
- pycityagent/configs/utils.py +17 -0
- pycityagent/environment/__init__.py +2 -0
- pycityagent/{economy → environment/economy}/econ_client.py +14 -32
- pycityagent/environment/sim/sim_env.py +17 -24
- pycityagent/environment/simulator.py +36 -113
- pycityagent/llm/__init__.py +1 -2
- pycityagent/llm/llm.py +54 -167
- pycityagent/memory/memory.py +13 -12
- pycityagent/message/message_interceptor.py +5 -4
- pycityagent/message/messager.py +3 -5
- pycityagent/metrics/__init__.py +1 -1
- pycityagent/metrics/mlflow_client.py +20 -17
- pycityagent/pycityagent-sim +0 -0
- pycityagent/simulation/agentgroup.py +17 -19
- pycityagent/simulation/simulation.py +157 -210
- pycityagent/survey/manager.py +0 -2
- pycityagent/utils/__init__.py +3 -0
- pycityagent/utils/config_const.py +20 -0
- pycityagent/workflow/__init__.py +1 -2
- pycityagent/workflow/block.py +0 -3
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/METADATA +7 -24
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/RECORD +50 -46
- pycityagent/llm/llmconfig.py +0 -18
- /pycityagent/{economy → environment/economy}/__init__.py +0 -0
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/LICENSE +0 -0
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/WHEEL +0 -0
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/entry_points.txt +0 -0
- {pycityagent-2.0.0a94.dist-info → pycityagent-2.0.0a95.dist-info}/top_level.txt +0 -0
pycityagent/survey/manager.py
CHANGED
pycityagent/utils/__init__.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
from .avro_schema import (DIALOG_SCHEMA, INSTITUTION_STATUS_SCHEMA,
|
2
2
|
PROFILE_SCHEMA, STATUS_SCHEMA, SURVEY_SCHEMA)
|
3
|
+
from .config_const import LLMRequestType, WorkflowType
|
3
4
|
from .pg_query import PGSQL_DICT, TO_UPDATE_EXP_INFO_KEYS_AND_TYPES
|
4
5
|
from .survey_util import SURVEY_SENDER_UUID, process_survey_for_llm
|
5
6
|
|
@@ -13,4 +14,6 @@ __all__ = [
|
|
13
14
|
"TO_UPDATE_EXP_INFO_KEYS_AND_TYPES",
|
14
15
|
"PGSQL_DICT",
|
15
16
|
"SURVEY_SENDER_UUID",
|
17
|
+
"LLMRequestType",
|
18
|
+
"WorkflowType",
|
16
19
|
]
|
@@ -0,0 +1,20 @@
|
|
1
|
+
from enum import Enum
|
2
|
+
|
3
|
+
|
4
|
+
class WorkflowType(str, Enum):
|
5
|
+
STEP = "step"
|
6
|
+
RUN = "run"
|
7
|
+
INTERVIEW = "interview"
|
8
|
+
SURVEY = "survey"
|
9
|
+
INTERVENE = "intervene"
|
10
|
+
PAUSE = "pause"
|
11
|
+
RESUME = "resume"
|
12
|
+
FUNCTION = "function"
|
13
|
+
|
14
|
+
|
15
|
+
class LLMRequestType(str, Enum):
|
16
|
+
OpenAI = "openai"
|
17
|
+
DeepSeek = "deepseek"
|
18
|
+
Qwen = "qwen"
|
19
|
+
ZhipuAI = "zhipuai"
|
20
|
+
SiliconFlow = "siliconflow"
|
pycityagent/workflow/__init__.py
CHANGED
@@ -4,8 +4,7 @@
|
|
4
4
|
This module contains classes for creating blocks and running workflows.
|
5
5
|
"""
|
6
6
|
|
7
|
-
from .block import
|
8
|
-
trigger_class)
|
7
|
+
from .block import Block, log_and_check, log_and_check_with_memory, trigger_class
|
9
8
|
from .prompt import FormatPrompt
|
10
9
|
from .trigger import EventTrigger, MemoryChangeTrigger, TimeTrigger
|
11
10
|
|
pycityagent/workflow/block.py
CHANGED
@@ -3,12 +3,9 @@ from __future__ import annotations
|
|
3
3
|
import asyncio
|
4
4
|
import functools
|
5
5
|
import inspect
|
6
|
-
import json
|
7
6
|
from collections.abc import Awaitable, Callable, Coroutine
|
8
7
|
from typing import Any, Optional, Union
|
9
8
|
|
10
|
-
from pyparsing import Dict
|
11
|
-
|
12
9
|
from ..environment.simulator import Simulator
|
13
10
|
from ..llm import LLM
|
14
11
|
from ..memory import Memory
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: pycityagent
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.0a95
|
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
|
@@ -45,7 +45,7 @@ Requires-Dist: openai>=1.58.1
|
|
45
45
|
Requires-Dist: Pillow<12.0.0,>=11.0.0
|
46
46
|
Requires-Dist: protobuf<5.0.0,<=4.24.0
|
47
47
|
Requires-Dist: pycitydata>=1.0.3
|
48
|
-
Requires-Dist: pycityproto>=2.2.
|
48
|
+
Requires-Dist: pycityproto>=2.2.5
|
49
49
|
Requires-Dist: requests>=2.32.3
|
50
50
|
Requires-Dist: Shapely>=2.0.6
|
51
51
|
Requires-Dist: PyYAML>=6.0.2
|
@@ -62,6 +62,7 @@ Requires-Dist: transformers>=4.47.1
|
|
62
62
|
Requires-Dist: torch>=2.5.1
|
63
63
|
Requires-Dist: faiss-cpu>=1.9.0.post1
|
64
64
|
Requires-Dist: langchain-community>=0.3.13
|
65
|
+
Requires-Dist: pydantic>=2.10.4
|
65
66
|
|
66
67
|
|
67
68
|
|
@@ -182,33 +183,15 @@ CityAgent uses a configuration file written in `.yaml` format to manage settings
|
|
182
183
|
|
183
184
|
```yaml
|
184
185
|
llm_request:
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
model: gpt-4o
|
189
|
-
img_understand_request:
|
190
|
-
request_type: none
|
191
|
-
api_key: none
|
192
|
-
model: none
|
193
|
-
img_generate_request:
|
194
|
-
request_type: none
|
195
|
-
api_key: none
|
196
|
-
model: none
|
186
|
+
request_type: openai
|
187
|
+
api_key: <YOUR_API_KEY>
|
188
|
+
model: gpt-4o
|
197
189
|
|
198
190
|
simulator_request:
|
199
191
|
simulator:
|
200
192
|
server: https://api-opencity-2x.fiblab.net:58081
|
201
193
|
map_request:
|
202
|
-
|
203
|
-
mongo_db: llmsim
|
204
|
-
mongo_coll: map_beijing5ring_withpoi_0424
|
205
|
-
cache_dir: ./cache
|
206
|
-
route_request:
|
207
|
-
server: http://api-opencity-2x.fiblab.net:58082
|
208
|
-
streetview_request:
|
209
|
-
engine: baidumap / googlemap
|
210
|
-
mapAK: baidumap api-key (if you use baidumap engine)
|
211
|
-
proxy: googlemap proxy (if you use googlemap engine)
|
194
|
+
file_path: ./cache/map_beijing5ring_withpoi_0424.pb
|
212
195
|
```
|
213
196
|
|
214
197
|
### 2. Example Usage
|
@@ -1,18 +1,15 @@
|
|
1
|
-
pycityagent/pycityagent-sim,sha256=
|
1
|
+
pycityagent/pycityagent-sim,sha256=_xsIrY1raLYagebaymahAZc2YSustRmQM2jm1B4p27U,36972738
|
2
2
|
pycityagent/__init__.py,sha256=PUKWTXc-xdMG7px8oTNclodsILUgypANj2Z647sY63k,808
|
3
3
|
pycityagent/pycityagent-ui,sha256=Ur95yZygIaZ5l_CDqP9394M5GQ66iV5PkcNPYFWqzvk,41225346
|
4
|
-
pycityagent/metrics/mlflow_client.py,sha256
|
5
|
-
pycityagent/metrics/__init__.py,sha256=
|
6
|
-
pycityagent/economy/__init__.py,sha256=aonY4WHnx-6EGJ4WKrx4S-2jAkYNLtqUA04jp6q8B7w,75
|
7
|
-
pycityagent/economy/econ_client.py,sha256=KXoRKnOrqYlFqgLHpNim1C5QRM7QPO3GtXG1Aq-yf6U,28621
|
4
|
+
pycityagent/metrics/mlflow_client.py,sha256=KR2ZSZriorvmsGi44TrEfp6MDRB84YU1GG7KUlWzty0,6715
|
5
|
+
pycityagent/metrics/__init__.py,sha256=xTdPjWVa0ZoQLNdP0gZQgJc0xM-hEuyjE71uNvf5AEA,129
|
8
6
|
pycityagent/tools/__init__.py,sha256=y7sMVMHf0AbivlczM2h-kr7mkgXK-WAx3S9BXLXkWvw,235
|
9
7
|
pycityagent/tools/tool.py,sha256=4ZJSHbNM8dfAVwZEw8T0a2_9OuPsPQpKSVL4WxZVBUc,9022
|
10
|
-
pycityagent/llm/
|
11
|
-
pycityagent/llm/
|
12
|
-
pycityagent/llm/llm.py,sha256=FgtRxpp53scmUH9i7XwaTXZ-bayw-bAanXzlRZuY6wY,20406
|
8
|
+
pycityagent/llm/__init__.py,sha256=ZWL9GW9rna9H4nmGK8t0_yF7e93Qc_LffpjhvTYUttI,177
|
9
|
+
pycityagent/llm/llm.py,sha256=o-vg5HDRFXh26088lvnd7T_WNGM2BoznZMkR9j4LRwk,16024
|
13
10
|
pycityagent/llm/embeddings.py,sha256=3610I-_scAy8HwRNpT8hVJpH9_8_pTLCPptqnzSq10o,11322
|
14
11
|
pycityagent/llm/utils.py,sha256=rSx_fp-_Gh0vZ-x2rqAUqnpS56BVTZ4ChfAMarB8S1A,195
|
15
|
-
pycityagent/memory/memory.py,sha256=
|
12
|
+
pycityagent/memory/memory.py,sha256=L-WVblzJ2TaakgJjyw2AT53OXpJr5lHcATDphh1RJCk,45094
|
16
13
|
pycityagent/memory/profile.py,sha256=Z1shwFc6MqakorbiY6rGqVAgCJP4YTpDrqnMQZcYQno,5227
|
17
14
|
pycityagent/memory/__init__.py,sha256=NClJAXC4G6I8kFWkPEcU2lbVDfyrRb5HrrBHgCXrzOU,125
|
18
15
|
pycityagent/memory/memory_base.py,sha256=av_sbD62PZbJyM8E9wmVuqYqgsutghcO7nJdAxGpHi0,9784
|
@@ -21,15 +18,16 @@ pycityagent/memory/utils.py,sha256=oJWLdPeJy_jcdKcDTo9JAH9kDZhqjoQhhv_zT9qWC0w,8
|
|
21
18
|
pycityagent/memory/const.py,sha256=Wgsx0oztDrJDEpI9Dr6XeI6GXrABcP0UTOuEvMp1AD8,934
|
22
19
|
pycityagent/memory/faiss_query.py,sha256=KPeyzIjD0dzkxr-TlOeCiIlkdh1WAyyipCAXUEt97Lk,17350
|
23
20
|
pycityagent/memory/state.py,sha256=JFCBuK1AS-HqscvdGS9ATF9AUU8t29_2leDY_6iO2_4,5158
|
24
|
-
pycityagent/simulation/simulation.py,sha256=
|
21
|
+
pycityagent/simulation/simulation.py,sha256=GrD5VWaEvrKrBFwhEKUUfQfk2rweTEZnROaBZJXSni0,47134
|
25
22
|
pycityagent/simulation/__init__.py,sha256=u1WpgwVxPboXWMxrUQKMXJNmTKQYAeCaqZv9HmSxESY,118
|
26
|
-
pycityagent/simulation/agentgroup.py,sha256=
|
23
|
+
pycityagent/simulation/agentgroup.py,sha256=JFDEywmFziq-I8aUDZ3QhVD8cXliVsUSav482BmPDO4,36812
|
27
24
|
pycityagent/simulation/storage/pg.py,sha256=xRshSOGttW-p0re0fNBOjOpb-nQ5msIE2LsdT79_E_Y,8425
|
28
|
-
pycityagent/message/message_interceptor.py,sha256=
|
25
|
+
pycityagent/message/message_interceptor.py,sha256=Z7I1vqs4BrKadPAtQi-nfbkgboBAflXDSIcbIpDAxB8,17777
|
29
26
|
pycityagent/message/__init__.py,sha256=f5QH7DKPqEAMyfSlBMnl3uouOKlsoel909STlIe7nUk,276
|
30
|
-
pycityagent/message/messager.py,sha256=
|
27
|
+
pycityagent/message/messager.py,sha256=SkHSAMSDO879B9nIsvv-NinL6sqGIlVg_pzKMDci7rE,9000
|
31
28
|
pycityagent/utils/avro_schema.py,sha256=hReb58T9teiNS9_YS36n1iiaBLW6jS4MRmcaWsL3Iu8,4151
|
32
|
-
pycityagent/utils/__init__.py,sha256=
|
29
|
+
pycityagent/utils/__init__.py,sha256=OKJ5dNooo6x-f9-GwqqBVsAcNpCAga-8zSCrelMJaMQ,621
|
30
|
+
pycityagent/utils/config_const.py,sha256=NKljRJyhsgxadjciYuSwgatapt_csykxXXNUdH_gNrw,392
|
33
31
|
pycityagent/utils/survey_util.py,sha256=o-gvmmfus3vMIN-EMWPzfLbHkDH4DfZb8B-yBd_mGYk,2076
|
34
32
|
pycityagent/utils/pg_query.py,sha256=KAcnBDLyzUu2il18SGXxk8dySdBen_8ejfpxiWuKUMA,2225
|
35
33
|
pycityagent/utils/decorators.py,sha256=Gk3r41hfk6awui40tbwpq3C7wC7jHaRmLRlcJFlLQCE,3160
|
@@ -37,16 +35,22 @@ pycityagent/utils/parsers/__init__.py,sha256=AN2xgiPxszWK4rpX7zrqRsqNwfGF3WnCA5-
|
|
37
35
|
pycityagent/utils/parsers/code_block_parser.py,sha256=jy6wHx9zypvJTWneCKuUaLQL19d4yLK6C_awc7y8A-k,1179
|
38
36
|
pycityagent/utils/parsers/parser_base.py,sha256=ZbqRcqOBL9hfHVZSltQSQmJnWrtuJS9aYeOJU-FlJ0E,1725
|
39
37
|
pycityagent/utils/parsers/json_parser.py,sha256=sakKohUuMcUH2toR85CAG_37D02ZoAn6LlzLgftUjmo,2923
|
40
|
-
pycityagent/agent/agent_base.py,sha256=
|
38
|
+
pycityagent/agent/agent_base.py,sha256=MM_kBWheTk9Y3pKoDo6Yl1Bvn2usT6v2icloYx_ykCM,39467
|
41
39
|
pycityagent/agent/__init__.py,sha256=U20yKu9QwSqAx_PHk5JwipfODkDfxONtumVfnsKjWFg,180
|
42
|
-
pycityagent/agent/agent.py,sha256=
|
40
|
+
pycityagent/agent/agent.py,sha256=zJs09Tzz53av59SzmrlJj6Yd-XId6voCYaxguLbbq3s,18991
|
43
41
|
pycityagent/cli/wrapper.py,sha256=bAwmfWTXbGld-uiMnIMhKp22IVRQjhLUToknyUDk9rQ,1147
|
44
|
-
pycityagent/workflow/__init__.py,sha256=
|
42
|
+
pycityagent/workflow/__init__.py,sha256=WVBMF-UT3iOBoyFihRrkeqAyLvD_Iibn2axAPOIMhTg,468
|
45
43
|
pycityagent/workflow/prompt.py,sha256=rzenP4EFGxbWE1aq-x2036b6umKvi5cQx2xtWULwgIk,3392
|
46
|
-
pycityagent/workflow/block.py,sha256=
|
44
|
+
pycityagent/workflow/block.py,sha256=phr5julVru-Yv-oWyUNMNmm4okhPMNZIF7Up71aoUY0,12249
|
47
45
|
pycityagent/workflow/trigger.py,sha256=4nzAwywGQsFabgo6gzp-vD2EV4wII7Z0LHGEAsflSEY,7608
|
48
|
-
pycityagent/
|
49
|
-
pycityagent/
|
46
|
+
pycityagent/configs/exp_config.py,sha256=D_OyUBxBx-I5Eyaot52Kl6hb5wEvF5CjwcBUDM6agG8,7319
|
47
|
+
pycityagent/configs/__init__.py,sha256=JAvFkZ6yKTtWvkgO2FaeQfpR-NsStDZPadLH9FOIROU,486
|
48
|
+
pycityagent/configs/utils.py,sha256=ILVL5wjLJqxyBVGkV1QOkqp4b9EulSmNrNbD0JQIVqc,429
|
49
|
+
pycityagent/configs/sim_config.py,sha256=cCdVu0IypmyOEeWiOLsocL7y7d8uBnLjXsH4_t-pXDk,8209
|
50
|
+
pycityagent/environment/__init__.py,sha256=EqMZyFrmi1TmqTvCssIGi9ILlET_w3jX7XD32V_3NbA,222
|
51
|
+
pycityagent/environment/simulator.py,sha256=Q4Wn6UOwC9nJD5c1qgjZ6qulkpdA4mLipxsZRnpT9oI,19814
|
52
|
+
pycityagent/environment/economy/__init__.py,sha256=aonY4WHnx-6EGJ4WKrx4S-2jAkYNLtqUA04jp6q8B7w,75
|
53
|
+
pycityagent/environment/economy/econ_client.py,sha256=icwCCUjarsyoJ4ZtUECZiJKjw9nUtvbztm9bHz0yCo4,28325
|
50
54
|
pycityagent/environment/utils/port.py,sha256=3OM6kSUt3PxvDUOlgyiendBtETaWU8Mzk_8H0TzTmYg,295
|
51
55
|
pycityagent/environment/utils/grpc.py,sha256=_lB4-k4dTKuNvApaDiYgFxiLTPtYG42DVQtG9yOj9pQ,2022
|
52
56
|
pycityagent/environment/utils/base64.py,sha256=hoREzQo3FXMN79pqQLO2jgsDEvudciomyKii7MWljAM,374
|
@@ -58,7 +62,7 @@ pycityagent/environment/utils/const.py,sha256=1LqxnYJ8FSmq37fN5kIFlWLwycEDzFa8SF
|
|
58
62
|
pycityagent/environment/sim/pause_service.py,sha256=UUTa4pTBOX_MGKki9QDgKId7scch0waAWF9xRVmNlAs,1701
|
59
63
|
pycityagent/environment/sim/person_service.py,sha256=T1pRi5jDcivSInX7iGZoHKYZmgO7_t5MYtLhU12_LC4,10793
|
60
64
|
pycityagent/environment/sim/aoi_service.py,sha256=bYVJDrOfDn8hgOORDU7PxMaT-fpqXA5Z0A080l2EPBc,1242
|
61
|
-
pycityagent/environment/sim/sim_env.py,sha256=
|
65
|
+
pycityagent/environment/sim/sim_env.py,sha256=wlRH9N7IP51evn5cRD9Rol3i39Zcjl7Y3o229FO02yw,4697
|
62
66
|
pycityagent/environment/sim/lane_service.py,sha256=bmf0zOWkxDzMEDlhTdHNRJRiTFGgzjbeqmex387gHZs,3964
|
63
67
|
pycityagent/environment/sim/client.py,sha256=x4REWPRFG_C2s0-CWz8MnYalD_esfu2pPHf_vpsCG78,2852
|
64
68
|
pycityagent/environment/sim/__init__.py,sha256=CyJc5Tey9MgzomZv0ynAcV0yaUlSE3bPbegYXar8wJc,601
|
@@ -67,31 +71,31 @@ pycityagent/environment/sim/light_service.py,sha256=q4pKcGrm7WU0h29I1dFIDOz2OV0B
|
|
67
71
|
pycityagent/environment/sim/clock_service.py,sha256=4Hly8CToghj0x_XbDgGrIZy1YYAlDH0EUGCiCDYpk_I,1375
|
68
72
|
pycityagent/environment/sim/road_service.py,sha256=Bb1sreO0Knt9tcqH_WJF-I3P3G92bRAlzDBEa--25GE,1297
|
69
73
|
pycityagent/cityagent/metrics.py,sha256=R_2Iv6l2yd6i43pkcg6n3qBm4Jdfsgg36_VWudnW8xA,2802
|
70
|
-
pycityagent/cityagent/memory_config.py,sha256=
|
71
|
-
pycityagent/cityagent/bankagent.py,sha256=
|
72
|
-
pycityagent/cityagent/__init__.py,sha256=
|
73
|
-
pycityagent/cityagent/firmagent.py,sha256=
|
74
|
-
pycityagent/cityagent/nbsagent.py,sha256=
|
75
|
-
pycityagent/cityagent/initial.py,sha256=
|
76
|
-
pycityagent/cityagent/societyagent.py,sha256=
|
77
|
-
pycityagent/cityagent/message_intercept.py,sha256=
|
78
|
-
pycityagent/cityagent/governmentagent.py,sha256=
|
74
|
+
pycityagent/cityagent/memory_config.py,sha256=m9n3DtYBPlARJWCzldjW6Wqv5xe5I6goo9BsLki0PGA,11905
|
75
|
+
pycityagent/cityagent/bankagent.py,sha256=txCjrxFkedoMTHGEKpOaQrQ0Ddjx9zeIynB4jEqAyJc,4102
|
76
|
+
pycityagent/cityagent/__init__.py,sha256=U8OC6gWdqtfNEejvyZT-TQ3PwaAu3JsrzsuBWgKOe7Y,629
|
77
|
+
pycityagent/cityagent/firmagent.py,sha256=LnITbRhSWkOq0YUmn3ExNE9vN2UqqNyqfvMRA4KgX_s,3764
|
78
|
+
pycityagent/cityagent/nbsagent.py,sha256=XQAezy-nuGKFbdOca7Z70XitzXXUo_g0m4vsFJ8QRu8,4680
|
79
|
+
pycityagent/cityagent/initial.py,sha256=9tbyEnwRBYJ1xBEw7bUr9rbJNKe_SFdkIZhKo4Jod44,6308
|
80
|
+
pycityagent/cityagent/societyagent.py,sha256=z1i7yPRz7Uupw5oGpMlFwyDi-8R4wHSCjghpMOT-8VI,20040
|
81
|
+
pycityagent/cityagent/message_intercept.py,sha256=Am0u-hGFOBcvcNXE_WJos5iwh2QoJLihdSIz3sr_U9Y,4439
|
82
|
+
pycityagent/cityagent/governmentagent.py,sha256=P3ufIfM5ldh2KC9y_y1ONowsV3FsFF5LWe0iQ3MVmgA,3067
|
79
83
|
pycityagent/cityagent/blocks/dispatcher.py,sha256=gd3lyggvtkCq9Ou_icgua60H0UjHTzwHoynLl_iZoes,2939
|
80
|
-
pycityagent/cityagent/blocks/needs_block.py,sha256=
|
81
|
-
pycityagent/cityagent/blocks/cognition_block.py,sha256=
|
82
|
-
pycityagent/cityagent/blocks/social_block.py,sha256=
|
83
|
-
pycityagent/cityagent/blocks/__init__.py,sha256=
|
84
|
-
pycityagent/cityagent/blocks/economy_block.py,sha256=
|
85
|
-
pycityagent/cityagent/blocks/utils.py,sha256=
|
86
|
-
pycityagent/cityagent/blocks/other_block.py,sha256
|
87
|
-
pycityagent/cityagent/blocks/plan_block.py,sha256
|
88
|
-
pycityagent/cityagent/blocks/mobility_block.py,sha256=
|
84
|
+
pycityagent/cityagent/blocks/needs_block.py,sha256=PDReR1GjF3qafR06Wfw_mizzBZ6xRQRq6KqgA9r8WOA,15321
|
85
|
+
pycityagent/cityagent/blocks/cognition_block.py,sha256=vy7wEvK72-sOieSSWidIXd5nKPLR-4f-ZYL7gyvje-0,15552
|
86
|
+
pycityagent/cityagent/blocks/social_block.py,sha256=C1zMcN3RZBYewqw0MEYgtTf5Jzsol1Up3Ew9ovTSm1Y,15169
|
87
|
+
pycityagent/cityagent/blocks/__init__.py,sha256=Tmy1CyQ8s3Iltp4xYWNg73Y28UWQv_LNWgMzgzquQT0,420
|
88
|
+
pycityagent/cityagent/blocks/economy_block.py,sha256=w1rbTb4CqqXD9BDQuOAtCmrJ4KJjJYiQ5hJHEmCs6CA,20924
|
89
|
+
pycityagent/cityagent/blocks/utils.py,sha256=YQkthaMkSCnT-1yfOkioGDvi2c-NLc5B-08BBlW4z0k,1781
|
90
|
+
pycityagent/cityagent/blocks/other_block.py,sha256=-H2umOQ-l7_9SjP-SHu7J4oHDh4V-r649_4kGS9Qrng,4447
|
91
|
+
pycityagent/cityagent/blocks/plan_block.py,sha256=-3ww7WPzEoDHXJp_WRudllL9GphAQw_-nR426OUEiGY,11897
|
92
|
+
pycityagent/cityagent/blocks/mobility_block.py,sha256=rrWzJO6mCMxUFfl1txOqq9BY7FmQ3LE3-Kr0d-4jnCc,16669
|
89
93
|
pycityagent/survey/models.py,sha256=g3xni4GcA1Py3vlGt6z4ltutjgQ4G0uINYAM8vKRJAw,5225
|
90
94
|
pycityagent/survey/__init__.py,sha256=rxwou8U9KeFSP7rMzXtmtp2fVFZxK4Trzi-psx9LPIs,153
|
91
|
-
pycityagent/survey/manager.py,sha256=
|
92
|
-
pycityagent-2.0.
|
93
|
-
pycityagent-2.0.
|
94
|
-
pycityagent-2.0.
|
95
|
-
pycityagent-2.0.
|
96
|
-
pycityagent-2.0.
|
97
|
-
pycityagent-2.0.
|
95
|
+
pycityagent/survey/manager.py,sha256=QZEApC6tKe-g1waDa_O4Eg4CFkyL8KWa7tUGZnT_7WI,3397
|
96
|
+
pycityagent-2.0.0a95.dist-info/RECORD,,
|
97
|
+
pycityagent-2.0.0a95.dist-info/LICENSE,sha256=n2HPXiupinpyHMnIkbCf3OTYd3KMqbmldu1e7av0CAU,1084
|
98
|
+
pycityagent-2.0.0a95.dist-info/WHEEL,sha256=NW1RskY9zow1Y68W-gXg0oZyBRAugI1JHywIzAIai5o,109
|
99
|
+
pycityagent-2.0.0a95.dist-info/entry_points.txt,sha256=BZcne49AAIFv-hawxGnPbblea7X3MtAtoPyDX8L4OC4,132
|
100
|
+
pycityagent-2.0.0a95.dist-info/top_level.txt,sha256=yOmeu6cSXmiUtScu53a3s0p7BGtLMaV0aff83EHCTic,43
|
101
|
+
pycityagent-2.0.0a95.dist-info/METADATA,sha256=WUcWf5gbldc2LyaR71a_QS8cZuGgUs9q0hrbXOdZ8_o,8657
|
pycityagent/llm/llmconfig.py
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
__all__ = [
|
2
|
-
"LLMConfig",
|
3
|
-
]
|
4
|
-
|
5
|
-
|
6
|
-
class LLMConfig:
|
7
|
-
"""
|
8
|
-
大语言模型相关配置
|
9
|
-
The config of LLM
|
10
|
-
"""
|
11
|
-
|
12
|
-
def __init__(self, config: dict) -> None:
|
13
|
-
self.config = config
|
14
|
-
self.text = config["text_request"]
|
15
|
-
if "api_base" in self.text.keys() and self.text["api_base"] == "None":
|
16
|
-
self.text["api_base"] = None
|
17
|
-
self.image_u = config["img_understand_request"]
|
18
|
-
self.image_g = config["img_generate_request"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|