inspect-ai 0.3.106__py3-none-any.whl → 0.3.108__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.
- inspect_ai/_eval/run.py +10 -9
- inspect_ai/model/_providers/_anthropic_citations.py +1 -4
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/METADATA +1 -1
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/RECORD +8 -8
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/WHEEL +0 -0
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/entry_points.txt +0 -0
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/licenses/LICENSE +0 -0
- {inspect_ai-0.3.106.dist-info → inspect_ai-0.3.108.dist-info}/top_level.txt +0 -0
inspect_ai/_eval/run.py
CHANGED
@@ -522,15 +522,16 @@ async def startup_sandbox_environments(
|
|
522
522
|
|
523
523
|
# return shutdown method
|
524
524
|
async def shutdown() -> None:
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
525
|
+
with anyio.CancelScope(shield=True):
|
526
|
+
for cleanup_jobs in cleanups:
|
527
|
+
try:
|
528
|
+
cleanup_fn, config, task_run_dir = cleanup_jobs
|
529
|
+
with chdir(task_run_dir):
|
530
|
+
await cleanup_fn("shutdown", config, cleanup)
|
531
|
+
except BaseException as ex:
|
532
|
+
log.warning(
|
533
|
+
f"Error occurred shutting down sandbox environments: {exception_message(ex)}"
|
534
|
+
)
|
534
535
|
|
535
536
|
return shutdown
|
536
537
|
|
@@ -93,10 +93,7 @@ def to_inspect_citation(input: TextCitation) -> Citation:
|
|
93
93
|
|
94
94
|
|
95
95
|
def to_anthropic_citation(input: Citation) -> TextCitationParam:
|
96
|
-
cited_text = input.cited_text
|
97
|
-
assert isinstance(cited_text, str), (
|
98
|
-
"anthropic citations must have a string cited_text"
|
99
|
-
)
|
96
|
+
cited_text = str(input.cited_text)
|
100
97
|
|
101
98
|
match input:
|
102
99
|
case UrlCitation(title=title, url=url, internal=internal):
|
@@ -52,7 +52,7 @@ inspect_ai/_eval/evalset.py,sha256=cGLAX6qnMMi-LTenLtu47wv0JJTjAvFLbE6zKfZbfTg,2
|
|
52
52
|
inspect_ai/_eval/list.py,sha256=VbZ-2EI6MqrXvCN7VTz21TQSoU5K5_Q0hqhxmj5A_m0,3744
|
53
53
|
inspect_ai/_eval/loader.py,sha256=dafv4TlQDqdvzPyrQrBsNiCzhvqjwmcVQzweX-AL1os,24805
|
54
54
|
inspect_ai/_eval/registry.py,sha256=IMyF_Ru11DrqjFe1yZJvghQcJSfssQ08wQqTt_F38Ag,5570
|
55
|
-
inspect_ai/_eval/run.py,sha256=
|
55
|
+
inspect_ai/_eval/run.py,sha256=Wlmc4pE5hUTyGRn2iYC1xLleyI2R8ffIoCPkITTVePc,21590
|
56
56
|
inspect_ai/_eval/score.py,sha256=KodaNhMCE1KV8qS33zj7Q8I0LD080WRCb32tyg1956w,10443
|
57
57
|
inspect_ai/_eval/task/__init__.py,sha256=6FvojMW3yo36L7xDacppCHDxt6A8_tzj_ftg5bQ6eNk,199
|
58
58
|
inspect_ai/_eval/task/constants.py,sha256=_YGvlhJL7kC7_3OCbyjDabnJNX2kopH_kRxwODF9cKw,117
|
@@ -636,7 +636,7 @@ inspect_ai/model/_reasoning.py,sha256=qmR8WT6t_cb7NIsJOQHPyFZh2eLV0HmYxKo2vtvteQ
|
|
636
636
|
inspect_ai/model/_registry.py,sha256=Cr2y32EqLnOqLbSWoXHVK4ivTTzCUhJuACxoTyPt8kY,2032
|
637
637
|
inspect_ai/model/_render.py,sha256=rWypNUjgrH4NGp0r-ESAze9gZz7lYNjheEP438vRYZE,922
|
638
638
|
inspect_ai/model/_trim.py,sha256=y2bSok4y844spv7vdjUVGnxWG93WcslAsXyplWDoRqU,3371
|
639
|
-
inspect_ai/model/_providers/_anthropic_citations.py,sha256=
|
639
|
+
inspect_ai/model/_providers/_anthropic_citations.py,sha256=DBjmclRDNVLCRGool55GHOu-7OgDUaI9ZZpEgAwakng,5664
|
640
640
|
inspect_ai/model/_providers/_google_citations.py,sha256=KtqQdvUrWV1lGYfD7aLOIwUbIqZbVJDCoX-uCMHBZz8,3573
|
641
641
|
inspect_ai/model/_providers/_openai_computer_use.py,sha256=vbKkYLhqNuX16zuWfg5MaGp9H8URrPcLhKQ1pDsZtPo,5943
|
642
642
|
inspect_ai/model/_providers/_openai_web_search.py,sha256=8hTUNmt7nYCWMn1RjxevWdeZL7FyLi6T2AWKOciNz3w,1228
|
@@ -784,9 +784,9 @@ inspect_ai/util/_sandbox/docker/internal.py,sha256=c8X8TLrBPOvsfnq5TkMlb_bzTALyc
|
|
784
784
|
inspect_ai/util/_sandbox/docker/prereqs.py,sha256=0j6_OauBBnVlpBleADcZavIAAQZy4WewVjbRn9c0stg,3355
|
785
785
|
inspect_ai/util/_sandbox/docker/service.py,sha256=hhHIWH1VDFLwehdGd19aUBD_VKfDO3GCPxpw1HSwVQk,2437
|
786
786
|
inspect_ai/util/_sandbox/docker/util.py,sha256=EeInihCNXgUWxaqZ4dNOJd719kXL2_jr63QCoXn68vA,3154
|
787
|
-
inspect_ai-0.3.
|
788
|
-
inspect_ai-0.3.
|
789
|
-
inspect_ai-0.3.
|
790
|
-
inspect_ai-0.3.
|
791
|
-
inspect_ai-0.3.
|
792
|
-
inspect_ai-0.3.
|
787
|
+
inspect_ai-0.3.108.dist-info/licenses/LICENSE,sha256=xZPCr8gTiFIerrA_DRpLAbw-UUftnLFsHxKeW-NTtq8,1081
|
788
|
+
inspect_ai-0.3.108.dist-info/METADATA,sha256=GOMwuz0QXwgMTpG2wAkqih7uNByZhTyNtiYT55Cypq4,5467
|
789
|
+
inspect_ai-0.3.108.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
790
|
+
inspect_ai-0.3.108.dist-info/entry_points.txt,sha256=WGGLmzTzDWLzYfiyovSY6oEKuf-gqzSDNOb5V-hk3fM,54
|
791
|
+
inspect_ai-0.3.108.dist-info/top_level.txt,sha256=Tp3za30CHXJEKLk8xLe9qGsW4pBzJpEIOMHOHNCXiVo,11
|
792
|
+
inspect_ai-0.3.108.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|