edsl 0.1.59__py3-none-any.whl → 0.1.61__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.
- edsl/__version__.py +1 -1
- edsl/agents/agent.py +65 -17
- edsl/agents/agent_list.py +117 -33
- edsl/base/base_class.py +80 -11
- edsl/base/data_transfer_models.py +5 -0
- edsl/base/enums.py +7 -2
- edsl/config/config_class.py +7 -2
- edsl/coop/coop.py +1295 -85
- edsl/coop/coop_prolific_filters.py +171 -0
- edsl/dataset/dataset_operations_mixin.py +2 -2
- edsl/dataset/display/table_display.py +40 -7
- edsl/db_list/sqlite_list.py +102 -3
- edsl/inference_services/services/__init__.py +3 -1
- edsl/inference_services/services/open_ai_service_v2.py +243 -0
- edsl/jobs/data_structures.py +48 -30
- edsl/jobs/jobs.py +73 -2
- edsl/jobs/remote_inference.py +49 -15
- edsl/key_management/key_lookup_builder.py +25 -3
- edsl/language_models/language_model.py +2 -1
- edsl/language_models/raw_response_handler.py +126 -7
- edsl/questions/loop_processor.py +289 -10
- edsl/questions/templates/dict/answering_instructions.jinja +0 -1
- edsl/results/result.py +37 -0
- edsl/results/results.py +1 -0
- edsl/scenarios/scenario_list.py +31 -1
- edsl/scenarios/scenario_source.py +606 -498
- edsl/surveys/survey.py +198 -163
- {edsl-0.1.59.dist-info → edsl-0.1.61.dist-info}/METADATA +4 -4
- {edsl-0.1.59.dist-info → edsl-0.1.61.dist-info}/RECORD +32 -30
- {edsl-0.1.59.dist-info → edsl-0.1.61.dist-info}/LICENSE +0 -0
- {edsl-0.1.59.dist-info → edsl-0.1.61.dist-info}/WHEEL +0 -0
- {edsl-0.1.59.dist-info → edsl-0.1.61.dist-info}/entry_points.txt +0 -0
edsl/config/config_class.py
CHANGED
@@ -8,14 +8,19 @@ import logging
|
|
8
8
|
|
9
9
|
logger = logging.getLogger(__name__)
|
10
10
|
|
11
|
+
|
11
12
|
class InvalidEnvironmentVariableError(BaseException):
|
12
13
|
"""Raised when an environment variable is invalid."""
|
14
|
+
|
13
15
|
pass
|
14
16
|
|
17
|
+
|
15
18
|
class MissingEnvironmentVariableError(BaseException):
|
16
19
|
"""Raised when an expected environment variable is missing."""
|
20
|
+
|
17
21
|
pass
|
18
22
|
|
23
|
+
|
19
24
|
cache_dir = platformdirs.user_cache_dir("edsl")
|
20
25
|
os.makedirs(cache_dir, exist_ok=True)
|
21
26
|
|
@@ -59,7 +64,7 @@ CONFIG_MAP = {
|
|
59
64
|
"info": "This config var determines whether to fetch prices for tokens used in remote inference",
|
60
65
|
},
|
61
66
|
"EDSL_LOG_DIR": {
|
62
|
-
"default": str(os.path.join(platformdirs.user_data_dir(
|
67
|
+
"default": str(os.path.join(platformdirs.user_data_dir("edsl"), "logs")),
|
63
68
|
"info": "This config var determines the directory where logs are stored.",
|
64
69
|
},
|
65
70
|
"EDSL_LOG_LEVEL": {
|
@@ -83,7 +88,7 @@ CONFIG_MAP = {
|
|
83
88
|
"info": "This config var holds the URL of the Expected Parrot API.",
|
84
89
|
},
|
85
90
|
"EDSL_MAX_CONCURRENT_TASKS": {
|
86
|
-
"default": "
|
91
|
+
"default": "1000",
|
87
92
|
"info": "This config var determines the maximum number of concurrent tasks that can be run by the async job-runner",
|
88
93
|
},
|
89
94
|
"EDSL_OPEN_EXCEPTION_REPORT_URL": {
|