inspect-ai 0.3.68__py3-none-any.whl → 0.3.70__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.
Files changed (82) hide show
  1. inspect_ai/_cli/eval.py +13 -1
  2. inspect_ai/_display/plain/display.py +9 -11
  3. inspect_ai/_display/textual/app.py +5 -5
  4. inspect_ai/_display/textual/widgets/samples.py +47 -18
  5. inspect_ai/_display/textual/widgets/transcript.py +25 -12
  6. inspect_ai/_eval/eval.py +14 -2
  7. inspect_ai/_eval/evalset.py +6 -1
  8. inspect_ai/_eval/run.py +6 -0
  9. inspect_ai/_eval/task/run.py +44 -15
  10. inspect_ai/_eval/task/task.py +26 -3
  11. inspect_ai/_util/interrupt.py +15 -0
  12. inspect_ai/_util/logger.py +23 -0
  13. inspect_ai/_util/rich.py +7 -8
  14. inspect_ai/_util/text.py +301 -1
  15. inspect_ai/_util/transcript.py +10 -2
  16. inspect_ai/_util/working.py +46 -0
  17. inspect_ai/_view/www/dist/assets/index.css +56 -12
  18. inspect_ai/_view/www/dist/assets/index.js +905 -751
  19. inspect_ai/_view/www/log-schema.json +337 -2
  20. inspect_ai/_view/www/node_modules/flatted/python/flatted.py +149 -0
  21. inspect_ai/_view/www/node_modules/flatted/python/test.py +63 -0
  22. inspect_ai/_view/www/src/appearance/icons.ts +3 -1
  23. inspect_ai/_view/www/src/metadata/RenderedContent.tsx +0 -1
  24. inspect_ai/_view/www/src/samples/SampleDisplay.module.css +9 -1
  25. inspect_ai/_view/www/src/samples/SampleDisplay.tsx +28 -1
  26. inspect_ai/_view/www/src/samples/SampleSummaryView.module.css +4 -0
  27. inspect_ai/_view/www/src/samples/SampleSummaryView.tsx +23 -2
  28. inspect_ai/_view/www/src/samples/descriptor/score/ObjectScoreDescriptor.tsx +1 -1
  29. inspect_ai/_view/www/src/samples/transcript/SampleLimitEventView.tsx +4 -0
  30. inspect_ai/_view/www/src/samples/transcript/SandboxEventView.module.css +32 -0
  31. inspect_ai/_view/www/src/samples/transcript/SandboxEventView.tsx +152 -0
  32. inspect_ai/_view/www/src/samples/transcript/StepEventView.tsx +9 -2
  33. inspect_ai/_view/www/src/samples/transcript/TranscriptView.tsx +19 -1
  34. inspect_ai/_view/www/src/samples/transcript/event/EventPanel.tsx +6 -3
  35. inspect_ai/_view/www/src/samples/transcript/types.ts +3 -1
  36. inspect_ai/_view/www/src/types/log.d.ts +188 -108
  37. inspect_ai/_view/www/src/utils/format.ts +7 -4
  38. inspect_ai/_view/www/src/workspace/WorkSpaceView.tsx +9 -6
  39. inspect_ai/log/__init__.py +2 -0
  40. inspect_ai/log/_condense.py +1 -0
  41. inspect_ai/log/_log.py +72 -12
  42. inspect_ai/log/_samples.py +5 -5
  43. inspect_ai/log/_transcript.py +31 -1
  44. inspect_ai/model/_call_tools.py +1 -1
  45. inspect_ai/model/_conversation.py +1 -1
  46. inspect_ai/model/_model.py +35 -16
  47. inspect_ai/model/_model_call.py +10 -3
  48. inspect_ai/model/_providers/anthropic.py +13 -2
  49. inspect_ai/model/_providers/bedrock.py +7 -0
  50. inspect_ai/model/_providers/cloudflare.py +20 -7
  51. inspect_ai/model/_providers/google.py +358 -302
  52. inspect_ai/model/_providers/groq.py +57 -23
  53. inspect_ai/model/_providers/hf.py +6 -0
  54. inspect_ai/model/_providers/mistral.py +81 -52
  55. inspect_ai/model/_providers/openai.py +9 -0
  56. inspect_ai/model/_providers/providers.py +6 -6
  57. inspect_ai/model/_providers/util/tracker.py +92 -0
  58. inspect_ai/model/_providers/vllm.py +13 -5
  59. inspect_ai/solver/_basic_agent.py +1 -3
  60. inspect_ai/solver/_bridge/patch.py +0 -2
  61. inspect_ai/solver/_limit.py +4 -4
  62. inspect_ai/solver/_plan.py +3 -3
  63. inspect_ai/solver/_solver.py +3 -0
  64. inspect_ai/solver/_task_state.py +10 -1
  65. inspect_ai/tool/_tools/_web_search.py +3 -3
  66. inspect_ai/util/_concurrency.py +14 -8
  67. inspect_ai/util/_sandbox/context.py +15 -0
  68. inspect_ai/util/_sandbox/docker/cleanup.py +8 -3
  69. inspect_ai/util/_sandbox/docker/compose.py +5 -9
  70. inspect_ai/util/_sandbox/docker/docker.py +20 -6
  71. inspect_ai/util/_sandbox/docker/util.py +10 -1
  72. inspect_ai/util/_sandbox/environment.py +32 -1
  73. inspect_ai/util/_sandbox/events.py +149 -0
  74. inspect_ai/util/_sandbox/local.py +3 -3
  75. inspect_ai/util/_sandbox/self_check.py +2 -1
  76. inspect_ai/util/_subprocess.py +4 -1
  77. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/METADATA +5 -5
  78. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/RECORD +82 -74
  79. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/LICENSE +0 -0
  80. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/WHEEL +0 -0
  81. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/entry_points.txt +0 -0
  82. {inspect_ai-0.3.68.dist-info → inspect_ai-0.3.70.dist-info}/top_level.txt +0 -0
@@ -16317,35 +16317,43 @@ ul.jsondiffpatch-textdiff {
16317
16317
  width: 100%;
16318
16318
  margin-top: 1em;
16319
16319
  }
16320
- ._tabPanel_14odp_1 {
16320
+ ._tabPanel_1isha_1 {
16321
16321
  padding-bottom: 1em;
16322
16322
  }
16323
16323
 
16324
- ._fullWidth_14odp_5 {
16324
+ ._fullWidth_1isha_5 {
16325
16325
  width: 100%;
16326
16326
  }
16327
16327
 
16328
- ._metadataPanel_14odp_9 {
16328
+ ._metadataPanel_1isha_9 {
16329
16329
  display: flex;
16330
16330
  flex-wrap: wrap;
16331
- align-items: flex-start;
16331
+ align-items: stretch;
16332
16332
  gap: 1em;
16333
16333
  padding-left: 0;
16334
16334
  margin-top: 0.5em;
16335
16335
  }
16336
16336
 
16337
- ._padded_14odp_18 {
16337
+ ._padded_1isha_18 {
16338
16338
  padding-left: 0.8em;
16339
16339
  margin-top: 0.4em;
16340
16340
  }
16341
16341
 
16342
- ._ansi_14odp_23 {
16342
+ ._ansi_1isha_23 {
16343
16343
  margin: 1em 0;
16344
16344
  }
16345
16345
 
16346
- ._noTop_14odp_27 {
16346
+ ._noTop_1isha_27 {
16347
16347
  margin-top: 0;
16348
16348
  }
16349
+
16350
+ ._timePanel_1isha_31 {
16351
+ display: grid;
16352
+ grid-template-columns: max-content max-content;
16353
+ grid-template-rows: auto;
16354
+ column-gap: 0.5em;
16355
+ min-width: 200px;
16356
+ }
16349
16357
  ._flatBody_gk2ju_1 {
16350
16358
  color: var(--bs-danger);
16351
16359
  display: grid;
@@ -16365,15 +16373,15 @@ ul.jsondiffpatch-textdiff {
16365
16373
  line-height: var(--inspect-font-size-base);
16366
16374
  height: var(--inspect-font-size-base);
16367
16375
  }
16368
- ._target_yamz4_1 {
16376
+ ._target_9qy4e_1 {
16369
16377
  padding-left: 0;
16370
16378
  }
16371
16379
 
16372
- ._answer_yamz4_5 {
16380
+ ._answer_9qy4e_5 {
16373
16381
  padding-left: 0;
16374
16382
  }
16375
16383
 
16376
- ._grid_yamz4_9 {
16384
+ ._grid_9qy4e_9 {
16377
16385
  display: grid;
16378
16386
  grid-column-gap: 0.5em;
16379
16387
  border-bottom: solid var(--bs-border-color) 1px;
@@ -16381,14 +16389,18 @@ ul.jsondiffpatch-textdiff {
16381
16389
  padding: 0em 1em 1em 1em;
16382
16390
  }
16383
16391
 
16384
- ._centerLabel_yamz4_17 {
16392
+ ._centerLabel_9qy4e_17 {
16385
16393
  display: flex;
16386
16394
  justify-content: center;
16387
16395
  }
16388
16396
 
16389
- ._wrap_yamz4_22 {
16397
+ ._wrap_9qy4e_22 {
16390
16398
  word-wrap: anywhere;
16391
16399
  }
16400
+
16401
+ ._titled_9qy4e_26:hover {
16402
+ cursor: pointer;
16403
+ }
16392
16404
  ._title_19l1b_1 {
16393
16405
  margin-left: 0.5em;
16394
16406
  display: grid;
@@ -19070,6 +19082,38 @@ span.ap-marker-container:hover span.ap-marker {
19070
19082
  padding: 0;
19071
19083
  margin-bottom: 0;
19072
19084
  }
19085
+ ._contents_iwnfd_1 {
19086
+ margin-top: 0.5em;
19087
+ }
19088
+
19089
+ ._contents_iwnfd_1 > :last-child {
19090
+ margin-bottom: 0;
19091
+ }
19092
+
19093
+ ._twoColumn_iwnfd_9 {
19094
+ display: grid;
19095
+ grid-template-columns: auto 1fr;
19096
+ column-gap: 1.5em;
19097
+ }
19098
+
19099
+ ._exec_iwnfd_15 {
19100
+ margin-top: 0.5em;
19101
+ }
19102
+
19103
+ ._result_iwnfd_19 {
19104
+ margin-top: 0.5em;
19105
+ }
19106
+
19107
+ ._fileLabel_iwnfd_23 {
19108
+ margin-top: 0;
19109
+ margin-bottom: 0;
19110
+ }
19111
+
19112
+ ._wrapPre_iwnfd_28 {
19113
+ white-space: pre-wrap;
19114
+ word-wrap: break-word;
19115
+ overflow-wrap: break-word;
19116
+ }
19073
19117
  ._darkenedBg_c8m1t_1 {
19074
19118
  background-color: var(--bs-light-bg-subtle);
19075
19119
  }