inspect-ai 0.3.72__py3-none-any.whl → 0.3.73__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/_cli/eval.py +14 -3
- inspect_ai/_cli/sandbox.py +3 -3
- inspect_ai/_cli/score.py +6 -4
- inspect_ai/_cli/trace.py +53 -6
- inspect_ai/_display/core/config.py +1 -1
- inspect_ai/_display/core/display.py +2 -1
- inspect_ai/_display/core/footer.py +6 -6
- inspect_ai/_display/plain/display.py +11 -6
- inspect_ai/_display/rich/display.py +23 -13
- inspect_ai/_display/textual/app.py +10 -9
- inspect_ai/_display/textual/display.py +2 -2
- inspect_ai/_display/textual/widgets/footer.py +4 -0
- inspect_ai/_display/textual/widgets/samples.py +14 -5
- inspect_ai/_eval/context.py +1 -2
- inspect_ai/_eval/eval.py +54 -41
- inspect_ai/_eval/loader.py +9 -2
- inspect_ai/_eval/run.py +148 -81
- inspect_ai/_eval/score.py +13 -8
- inspect_ai/_eval/task/images.py +31 -21
- inspect_ai/_eval/task/run.py +62 -59
- inspect_ai/_eval/task/rundir.py +16 -9
- inspect_ai/_eval/task/sandbox.py +7 -8
- inspect_ai/_eval/task/util.py +7 -0
- inspect_ai/_util/_async.py +118 -10
- inspect_ai/_util/constants.py +0 -2
- inspect_ai/_util/file.py +15 -29
- inspect_ai/_util/future.py +37 -0
- inspect_ai/_util/http.py +3 -99
- inspect_ai/_util/httpx.py +60 -0
- inspect_ai/_util/interrupt.py +2 -2
- inspect_ai/_util/json.py +5 -52
- inspect_ai/_util/logger.py +30 -86
- inspect_ai/_util/retry.py +10 -61
- inspect_ai/_util/trace.py +2 -2
- inspect_ai/_view/server.py +86 -3
- inspect_ai/_view/www/dist/assets/index.js +25837 -13269
- inspect_ai/_view/www/log-schema.json +253 -186
- inspect_ai/_view/www/package.json +2 -2
- inspect_ai/_view/www/src/plan/PlanDetailView.tsx +8 -3
- inspect_ai/_view/www/src/samples/transcript/StepEventView.tsx +2 -3
- inspect_ai/_view/www/src/types/log.d.ts +122 -94
- inspect_ai/approval/_human/manager.py +6 -10
- inspect_ai/approval/_human/panel.py +2 -2
- inspect_ai/dataset/_sources/util.py +7 -6
- inspect_ai/log/__init__.py +4 -0
- inspect_ai/log/_file.py +35 -61
- inspect_ai/log/_log.py +18 -1
- inspect_ai/log/_recorders/eval.py +14 -23
- inspect_ai/log/_recorders/json.py +3 -18
- inspect_ai/log/_samples.py +27 -2
- inspect_ai/log/_transcript.py +8 -8
- inspect_ai/model/__init__.py +2 -1
- inspect_ai/model/_call_tools.py +60 -40
- inspect_ai/model/_chat_message.py +3 -2
- inspect_ai/model/_generate_config.py +25 -0
- inspect_ai/model/_model.py +74 -36
- inspect_ai/model/_openai.py +9 -1
- inspect_ai/model/_providers/anthropic.py +24 -26
- inspect_ai/model/_providers/azureai.py +11 -9
- inspect_ai/model/_providers/bedrock.py +33 -24
- inspect_ai/model/_providers/cloudflare.py +8 -9
- inspect_ai/model/_providers/goodfire.py +7 -3
- inspect_ai/model/_providers/google.py +47 -13
- inspect_ai/model/_providers/groq.py +15 -15
- inspect_ai/model/_providers/hf.py +24 -17
- inspect_ai/model/_providers/mistral.py +36 -20
- inspect_ai/model/_providers/openai.py +30 -25
- inspect_ai/model/_providers/openai_o1.py +1 -1
- inspect_ai/model/_providers/providers.py +1 -1
- inspect_ai/model/_providers/together.py +3 -4
- inspect_ai/model/_providers/util/__init__.py +2 -2
- inspect_ai/model/_providers/util/chatapi.py +6 -19
- inspect_ai/model/_providers/util/hooks.py +165 -0
- inspect_ai/model/_providers/vertex.py +20 -3
- inspect_ai/model/_providers/vllm.py +16 -19
- inspect_ai/scorer/_multi.py +5 -2
- inspect_ai/solver/_bridge/patch.py +31 -1
- inspect_ai/solver/_fork.py +5 -3
- inspect_ai/solver/_human_agent/agent.py +3 -2
- inspect_ai/tool/__init__.py +8 -2
- inspect_ai/tool/_tool_info.py +4 -90
- inspect_ai/tool/_tool_params.py +4 -34
- inspect_ai/tool/_tools/_web_search.py +30 -24
- inspect_ai/util/__init__.py +4 -0
- inspect_ai/util/_concurrency.py +5 -6
- inspect_ai/util/_display.py +6 -0
- inspect_ai/util/_json.py +170 -0
- inspect_ai/util/_sandbox/docker/cleanup.py +13 -9
- inspect_ai/util/_sandbox/docker/docker.py +5 -0
- inspect_ai/util/_sandbox/environment.py +56 -9
- inspect_ai/util/_sandbox/service.py +12 -5
- inspect_ai/util/_subprocess.py +94 -113
- inspect_ai/util/_subtask.py +2 -4
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/METADATA +6 -2
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/RECORD +99 -99
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/WHEEL +1 -1
- inspect_ai/_util/timeouts.py +0 -160
- inspect_ai/_view/www/node_modules/flatted/python/flatted.py +0 -149
- inspect_ai/_view/www/node_modules/flatted/python/test.py +0 -63
- inspect_ai/model/_providers/util/tracker.py +0 -92
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/LICENSE +0 -0
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/entry_points.txt +0 -0
- {inspect_ai-0.3.72.dist-info → inspect_ai-0.3.73.dist-info}/top_level.txt +0 -0
@@ -156,11 +156,6 @@
|
|
156
156
|
"title": "ApproverPolicyConfig",
|
157
157
|
"type": "object"
|
158
158
|
},
|
159
|
-
"BaseModel": {
|
160
|
-
"properties": {},
|
161
|
-
"title": "BaseModel",
|
162
|
-
"type": "object"
|
163
|
-
},
|
164
159
|
"ChatCompletionChoice": {
|
165
160
|
"description": "Choice generated for completion.",
|
166
161
|
"properties": {
|
@@ -204,10 +199,8 @@
|
|
204
199
|
"ChatMessageAssistant": {
|
205
200
|
"description": "Assistant chat message.",
|
206
201
|
"properties": {
|
207
|
-
"
|
208
|
-
"
|
209
|
-
"default": "assistant",
|
210
|
-
"title": "Role",
|
202
|
+
"id": {
|
203
|
+
"title": "Id",
|
211
204
|
"type": "string"
|
212
205
|
},
|
213
206
|
"content": {
|
@@ -256,6 +249,12 @@
|
|
256
249
|
"default": null,
|
257
250
|
"title": "Source"
|
258
251
|
},
|
252
|
+
"role": {
|
253
|
+
"const": "assistant",
|
254
|
+
"default": "assistant",
|
255
|
+
"title": "Role",
|
256
|
+
"type": "string"
|
257
|
+
},
|
259
258
|
"tool_calls": {
|
260
259
|
"anyOf": [
|
261
260
|
{
|
@@ -273,9 +272,10 @@
|
|
273
272
|
}
|
274
273
|
},
|
275
274
|
"required": [
|
276
|
-
"
|
275
|
+
"id",
|
277
276
|
"content",
|
278
277
|
"source",
|
278
|
+
"role",
|
279
279
|
"tool_calls"
|
280
280
|
],
|
281
281
|
"title": "ChatMessageAssistant",
|
@@ -285,10 +285,8 @@
|
|
285
285
|
"ChatMessageSystem": {
|
286
286
|
"description": "System chat message.",
|
287
287
|
"properties": {
|
288
|
-
"
|
289
|
-
"
|
290
|
-
"default": "system",
|
291
|
-
"title": "Role",
|
288
|
+
"id": {
|
289
|
+
"title": "Id",
|
292
290
|
"type": "string"
|
293
291
|
},
|
294
292
|
"content": {
|
@@ -336,12 +334,19 @@
|
|
336
334
|
],
|
337
335
|
"default": null,
|
338
336
|
"title": "Source"
|
337
|
+
},
|
338
|
+
"role": {
|
339
|
+
"const": "system",
|
340
|
+
"default": "system",
|
341
|
+
"title": "Role",
|
342
|
+
"type": "string"
|
339
343
|
}
|
340
344
|
},
|
341
345
|
"required": [
|
342
|
-
"
|
346
|
+
"id",
|
343
347
|
"content",
|
344
|
-
"source"
|
348
|
+
"source",
|
349
|
+
"role"
|
345
350
|
],
|
346
351
|
"title": "ChatMessageSystem",
|
347
352
|
"type": "object",
|
@@ -350,10 +355,8 @@
|
|
350
355
|
"ChatMessageTool": {
|
351
356
|
"description": "Tool chat message.",
|
352
357
|
"properties": {
|
353
|
-
"
|
354
|
-
"
|
355
|
-
"default": "tool",
|
356
|
-
"title": "Role",
|
358
|
+
"id": {
|
359
|
+
"title": "Id",
|
357
360
|
"type": "string"
|
358
361
|
},
|
359
362
|
"content": {
|
@@ -402,6 +405,12 @@
|
|
402
405
|
"default": null,
|
403
406
|
"title": "Source"
|
404
407
|
},
|
408
|
+
"role": {
|
409
|
+
"const": "tool",
|
410
|
+
"default": "tool",
|
411
|
+
"title": "Role",
|
412
|
+
"type": "string"
|
413
|
+
},
|
405
414
|
"tool_call_id": {
|
406
415
|
"anyOf": [
|
407
416
|
{
|
@@ -439,9 +448,10 @@
|
|
439
448
|
}
|
440
449
|
},
|
441
450
|
"required": [
|
442
|
-
"
|
451
|
+
"id",
|
443
452
|
"content",
|
444
453
|
"source",
|
454
|
+
"role",
|
445
455
|
"tool_call_id",
|
446
456
|
"function",
|
447
457
|
"error"
|
@@ -453,10 +463,8 @@
|
|
453
463
|
"ChatMessageUser": {
|
454
464
|
"description": "User chat message.",
|
455
465
|
"properties": {
|
456
|
-
"
|
457
|
-
"
|
458
|
-
"default": "user",
|
459
|
-
"title": "Role",
|
466
|
+
"id": {
|
467
|
+
"title": "Id",
|
460
468
|
"type": "string"
|
461
469
|
},
|
462
470
|
"content": {
|
@@ -505,6 +513,12 @@
|
|
505
513
|
"default": null,
|
506
514
|
"title": "Source"
|
507
515
|
},
|
516
|
+
"role": {
|
517
|
+
"const": "user",
|
518
|
+
"default": "user",
|
519
|
+
"title": "Role",
|
520
|
+
"type": "string"
|
521
|
+
},
|
508
522
|
"tool_call_id": {
|
509
523
|
"anyOf": [
|
510
524
|
{
|
@@ -522,9 +536,10 @@
|
|
522
536
|
}
|
523
537
|
},
|
524
538
|
"required": [
|
525
|
-
"
|
539
|
+
"id",
|
526
540
|
"content",
|
527
541
|
"source",
|
542
|
+
"role",
|
528
543
|
"tool_call_id"
|
529
544
|
],
|
530
545
|
"title": "ChatMessageUser",
|
@@ -1261,7 +1276,8 @@
|
|
1261
1276
|
"cache_prompt": null,
|
1262
1277
|
"reasoning_effort": null,
|
1263
1278
|
"reasoning_tokens": null,
|
1264
|
-
"reasoning_history": null
|
1279
|
+
"reasoning_history": null,
|
1280
|
+
"response_schema": null
|
1265
1281
|
}
|
1266
1282
|
}
|
1267
1283
|
},
|
@@ -2559,6 +2575,17 @@
|
|
2559
2575
|
],
|
2560
2576
|
"default": null,
|
2561
2577
|
"title": "Reasoning History"
|
2578
|
+
},
|
2579
|
+
"response_schema": {
|
2580
|
+
"anyOf": [
|
2581
|
+
{
|
2582
|
+
"$ref": "#/$defs/ResponseSchema"
|
2583
|
+
},
|
2584
|
+
{
|
2585
|
+
"type": "null"
|
2586
|
+
}
|
2587
|
+
],
|
2588
|
+
"default": null
|
2562
2589
|
}
|
2563
2590
|
},
|
2564
2591
|
"title": "GenerateConfig",
|
@@ -2587,7 +2614,8 @@
|
|
2587
2614
|
"cache_prompt",
|
2588
2615
|
"reasoning_effort",
|
2589
2616
|
"reasoning_tokens",
|
2590
|
-
"reasoning_history"
|
2617
|
+
"reasoning_history",
|
2618
|
+
"response_schema"
|
2591
2619
|
],
|
2592
2620
|
"additionalProperties": false
|
2593
2621
|
},
|
@@ -2700,6 +2728,146 @@
|
|
2700
2728
|
"type": "object",
|
2701
2729
|
"additionalProperties": false
|
2702
2730
|
},
|
2731
|
+
"JSONSchema": {
|
2732
|
+
"description": "JSON Schema for type.",
|
2733
|
+
"properties": {
|
2734
|
+
"type": {
|
2735
|
+
"anyOf": [
|
2736
|
+
{
|
2737
|
+
"enum": [
|
2738
|
+
"string",
|
2739
|
+
"integer",
|
2740
|
+
"number",
|
2741
|
+
"boolean",
|
2742
|
+
"array",
|
2743
|
+
"object",
|
2744
|
+
"null"
|
2745
|
+
],
|
2746
|
+
"type": "string"
|
2747
|
+
},
|
2748
|
+
{
|
2749
|
+
"type": "null"
|
2750
|
+
}
|
2751
|
+
],
|
2752
|
+
"default": null,
|
2753
|
+
"title": "Type"
|
2754
|
+
},
|
2755
|
+
"description": {
|
2756
|
+
"anyOf": [
|
2757
|
+
{
|
2758
|
+
"type": "string"
|
2759
|
+
},
|
2760
|
+
{
|
2761
|
+
"type": "null"
|
2762
|
+
}
|
2763
|
+
],
|
2764
|
+
"default": null,
|
2765
|
+
"title": "Description"
|
2766
|
+
},
|
2767
|
+
"default": {
|
2768
|
+
"default": null,
|
2769
|
+
"title": "Default"
|
2770
|
+
},
|
2771
|
+
"enum": {
|
2772
|
+
"anyOf": [
|
2773
|
+
{
|
2774
|
+
"items": {},
|
2775
|
+
"type": "array"
|
2776
|
+
},
|
2777
|
+
{
|
2778
|
+
"type": "null"
|
2779
|
+
}
|
2780
|
+
],
|
2781
|
+
"default": null,
|
2782
|
+
"title": "Enum"
|
2783
|
+
},
|
2784
|
+
"items": {
|
2785
|
+
"anyOf": [
|
2786
|
+
{
|
2787
|
+
"$ref": "#/$defs/JSONSchema"
|
2788
|
+
},
|
2789
|
+
{
|
2790
|
+
"type": "null"
|
2791
|
+
}
|
2792
|
+
],
|
2793
|
+
"default": null
|
2794
|
+
},
|
2795
|
+
"properties": {
|
2796
|
+
"anyOf": [
|
2797
|
+
{
|
2798
|
+
"additionalProperties": {
|
2799
|
+
"$ref": "#/$defs/JSONSchema"
|
2800
|
+
},
|
2801
|
+
"type": "object"
|
2802
|
+
},
|
2803
|
+
{
|
2804
|
+
"type": "null"
|
2805
|
+
}
|
2806
|
+
],
|
2807
|
+
"default": null,
|
2808
|
+
"title": "Properties"
|
2809
|
+
},
|
2810
|
+
"additionalProperties": {
|
2811
|
+
"anyOf": [
|
2812
|
+
{
|
2813
|
+
"$ref": "#/$defs/JSONSchema"
|
2814
|
+
},
|
2815
|
+
{
|
2816
|
+
"type": "boolean"
|
2817
|
+
},
|
2818
|
+
{
|
2819
|
+
"type": "null"
|
2820
|
+
}
|
2821
|
+
],
|
2822
|
+
"default": null,
|
2823
|
+
"title": "Additionalproperties"
|
2824
|
+
},
|
2825
|
+
"anyOf": {
|
2826
|
+
"anyOf": [
|
2827
|
+
{
|
2828
|
+
"items": {
|
2829
|
+
"$ref": "#/$defs/JSONSchema"
|
2830
|
+
},
|
2831
|
+
"type": "array"
|
2832
|
+
},
|
2833
|
+
{
|
2834
|
+
"type": "null"
|
2835
|
+
}
|
2836
|
+
],
|
2837
|
+
"default": null,
|
2838
|
+
"title": "Anyof"
|
2839
|
+
},
|
2840
|
+
"required": {
|
2841
|
+
"anyOf": [
|
2842
|
+
{
|
2843
|
+
"items": {
|
2844
|
+
"type": "string"
|
2845
|
+
},
|
2846
|
+
"type": "array"
|
2847
|
+
},
|
2848
|
+
{
|
2849
|
+
"type": "null"
|
2850
|
+
}
|
2851
|
+
],
|
2852
|
+
"default": null,
|
2853
|
+
"title": "Required"
|
2854
|
+
}
|
2855
|
+
},
|
2856
|
+
"title": "JSONSchema",
|
2857
|
+
"type": "object",
|
2858
|
+
"required": [
|
2859
|
+
"type",
|
2860
|
+
"description",
|
2861
|
+
"default",
|
2862
|
+
"enum",
|
2863
|
+
"items",
|
2864
|
+
"properties",
|
2865
|
+
"additionalProperties",
|
2866
|
+
"anyOf",
|
2867
|
+
"required"
|
2868
|
+
],
|
2869
|
+
"additionalProperties": false
|
2870
|
+
},
|
2703
2871
|
"JsonChange": {
|
2704
2872
|
"description": "Describes a change to data using JSON Patch format.",
|
2705
2873
|
"properties": {
|
@@ -3283,6 +3451,51 @@
|
|
3283
3451
|
],
|
3284
3452
|
"additionalProperties": false
|
3285
3453
|
},
|
3454
|
+
"ResponseSchema": {
|
3455
|
+
"description": "Schema for model response when using Structured Output.",
|
3456
|
+
"properties": {
|
3457
|
+
"name": {
|
3458
|
+
"title": "Name",
|
3459
|
+
"type": "string"
|
3460
|
+
},
|
3461
|
+
"json_schema": {
|
3462
|
+
"$ref": "#/$defs/JSONSchema"
|
3463
|
+
},
|
3464
|
+
"description": {
|
3465
|
+
"anyOf": [
|
3466
|
+
{
|
3467
|
+
"type": "string"
|
3468
|
+
},
|
3469
|
+
{
|
3470
|
+
"type": "null"
|
3471
|
+
}
|
3472
|
+
],
|
3473
|
+
"default": null,
|
3474
|
+
"title": "Description"
|
3475
|
+
},
|
3476
|
+
"strict": {
|
3477
|
+
"anyOf": [
|
3478
|
+
{
|
3479
|
+
"type": "boolean"
|
3480
|
+
},
|
3481
|
+
{
|
3482
|
+
"type": "null"
|
3483
|
+
}
|
3484
|
+
],
|
3485
|
+
"default": null,
|
3486
|
+
"title": "Strict"
|
3487
|
+
}
|
3488
|
+
},
|
3489
|
+
"required": [
|
3490
|
+
"name",
|
3491
|
+
"json_schema",
|
3492
|
+
"description",
|
3493
|
+
"strict"
|
3494
|
+
],
|
3495
|
+
"title": "ResponseSchema",
|
3496
|
+
"type": "object",
|
3497
|
+
"additionalProperties": false
|
3498
|
+
},
|
3286
3499
|
"Sample": {
|
3287
3500
|
"description": "Sample for an evaluation task.",
|
3288
3501
|
"properties": {
|
@@ -3544,30 +3757,24 @@
|
|
3544
3757
|
"additionalProperties": false
|
3545
3758
|
},
|
3546
3759
|
"SandboxEnvironmentSpec": {
|
3547
|
-
"
|
3548
|
-
"
|
3549
|
-
|
3550
|
-
{
|
3760
|
+
"description": "Specification of a SandboxEnvironment.",
|
3761
|
+
"properties": {
|
3762
|
+
"type": {
|
3551
3763
|
"title": "Type",
|
3552
3764
|
"type": "string"
|
3553
3765
|
},
|
3554
|
-
{
|
3555
|
-
"anyOf": [
|
3556
|
-
{
|
3557
|
-
"$ref": "#/$defs/BaseModel"
|
3558
|
-
},
|
3559
|
-
{
|
3560
|
-
"type": "string"
|
3561
|
-
},
|
3562
|
-
{
|
3563
|
-
"type": "null"
|
3564
|
-
}
|
3565
|
-
],
|
3766
|
+
"config": {
|
3566
3767
|
"default": null,
|
3567
3768
|
"title": "Config"
|
3568
3769
|
}
|
3770
|
+
},
|
3771
|
+
"required": [
|
3772
|
+
"type",
|
3773
|
+
"config"
|
3569
3774
|
],
|
3570
|
-
"
|
3775
|
+
"title": "SandboxEnvironmentSpec",
|
3776
|
+
"type": "object",
|
3777
|
+
"additionalProperties": false
|
3571
3778
|
},
|
3572
3779
|
"SandboxEvent": {
|
3573
3780
|
"description": "Sandbox execution or I/O",
|
@@ -4652,146 +4859,6 @@
|
|
4652
4859
|
"type": "object",
|
4653
4860
|
"additionalProperties": false
|
4654
4861
|
},
|
4655
|
-
"ToolParam": {
|
4656
|
-
"description": "Description of tool parameter in JSON Schema format.",
|
4657
|
-
"properties": {
|
4658
|
-
"type": {
|
4659
|
-
"anyOf": [
|
4660
|
-
{
|
4661
|
-
"enum": [
|
4662
|
-
"string",
|
4663
|
-
"integer",
|
4664
|
-
"number",
|
4665
|
-
"boolean",
|
4666
|
-
"array",
|
4667
|
-
"object",
|
4668
|
-
"null"
|
4669
|
-
],
|
4670
|
-
"type": "string"
|
4671
|
-
},
|
4672
|
-
{
|
4673
|
-
"type": "null"
|
4674
|
-
}
|
4675
|
-
],
|
4676
|
-
"default": null,
|
4677
|
-
"title": "Type"
|
4678
|
-
},
|
4679
|
-
"description": {
|
4680
|
-
"anyOf": [
|
4681
|
-
{
|
4682
|
-
"type": "string"
|
4683
|
-
},
|
4684
|
-
{
|
4685
|
-
"type": "null"
|
4686
|
-
}
|
4687
|
-
],
|
4688
|
-
"default": null,
|
4689
|
-
"title": "Description"
|
4690
|
-
},
|
4691
|
-
"default": {
|
4692
|
-
"default": null,
|
4693
|
-
"title": "Default"
|
4694
|
-
},
|
4695
|
-
"enum": {
|
4696
|
-
"anyOf": [
|
4697
|
-
{
|
4698
|
-
"items": {},
|
4699
|
-
"type": "array"
|
4700
|
-
},
|
4701
|
-
{
|
4702
|
-
"type": "null"
|
4703
|
-
}
|
4704
|
-
],
|
4705
|
-
"default": null,
|
4706
|
-
"title": "Enum"
|
4707
|
-
},
|
4708
|
-
"items": {
|
4709
|
-
"anyOf": [
|
4710
|
-
{
|
4711
|
-
"$ref": "#/$defs/ToolParam"
|
4712
|
-
},
|
4713
|
-
{
|
4714
|
-
"type": "null"
|
4715
|
-
}
|
4716
|
-
],
|
4717
|
-
"default": null
|
4718
|
-
},
|
4719
|
-
"properties": {
|
4720
|
-
"anyOf": [
|
4721
|
-
{
|
4722
|
-
"additionalProperties": {
|
4723
|
-
"$ref": "#/$defs/ToolParam"
|
4724
|
-
},
|
4725
|
-
"type": "object"
|
4726
|
-
},
|
4727
|
-
{
|
4728
|
-
"type": "null"
|
4729
|
-
}
|
4730
|
-
],
|
4731
|
-
"default": null,
|
4732
|
-
"title": "Properties"
|
4733
|
-
},
|
4734
|
-
"additionalProperties": {
|
4735
|
-
"anyOf": [
|
4736
|
-
{
|
4737
|
-
"$ref": "#/$defs/ToolParam"
|
4738
|
-
},
|
4739
|
-
{
|
4740
|
-
"type": "boolean"
|
4741
|
-
},
|
4742
|
-
{
|
4743
|
-
"type": "null"
|
4744
|
-
}
|
4745
|
-
],
|
4746
|
-
"default": null,
|
4747
|
-
"title": "Additionalproperties"
|
4748
|
-
},
|
4749
|
-
"anyOf": {
|
4750
|
-
"anyOf": [
|
4751
|
-
{
|
4752
|
-
"items": {
|
4753
|
-
"$ref": "#/$defs/ToolParam"
|
4754
|
-
},
|
4755
|
-
"type": "array"
|
4756
|
-
},
|
4757
|
-
{
|
4758
|
-
"type": "null"
|
4759
|
-
}
|
4760
|
-
],
|
4761
|
-
"default": null,
|
4762
|
-
"title": "Anyof"
|
4763
|
-
},
|
4764
|
-
"required": {
|
4765
|
-
"anyOf": [
|
4766
|
-
{
|
4767
|
-
"items": {
|
4768
|
-
"type": "string"
|
4769
|
-
},
|
4770
|
-
"type": "array"
|
4771
|
-
},
|
4772
|
-
{
|
4773
|
-
"type": "null"
|
4774
|
-
}
|
4775
|
-
],
|
4776
|
-
"default": null,
|
4777
|
-
"title": "Required"
|
4778
|
-
}
|
4779
|
-
},
|
4780
|
-
"title": "ToolParam",
|
4781
|
-
"type": "object",
|
4782
|
-
"required": [
|
4783
|
-
"type",
|
4784
|
-
"description",
|
4785
|
-
"default",
|
4786
|
-
"enum",
|
4787
|
-
"items",
|
4788
|
-
"properties",
|
4789
|
-
"additionalProperties",
|
4790
|
-
"anyOf",
|
4791
|
-
"required"
|
4792
|
-
],
|
4793
|
-
"additionalProperties": false
|
4794
|
-
},
|
4795
4862
|
"ToolParams": {
|
4796
4863
|
"description": "Description of tool parameters object in JSON Schema format.",
|
4797
4864
|
"properties": {
|
@@ -4804,7 +4871,7 @@
|
|
4804
4871
|
"properties": {
|
4805
4872
|
"type": "object",
|
4806
4873
|
"additionalProperties": {
|
4807
|
-
"$ref": "#/$defs/
|
4874
|
+
"$ref": "#/$defs/JSONSchema"
|
4808
4875
|
},
|
4809
4876
|
"title": "Properties"
|
4810
4877
|
},
|
@@ -42,11 +42,11 @@
|
|
42
42
|
"@codemirror/autocomplete": "^6.18.4",
|
43
43
|
"@codemirror/language": "^6.10.8",
|
44
44
|
"@codemirror/lint": "^6.8.4",
|
45
|
-
"@codemirror/state": "^6.5.
|
45
|
+
"@codemirror/state": "^6.5.2",
|
46
46
|
"@lezer/highlight": "^1.2.1",
|
47
47
|
"@popperjs/core": "^2.11.8",
|
48
48
|
"ansi-output": "^0.0.9",
|
49
|
-
"asciinema-player": "^3.
|
49
|
+
"asciinema-player": "^3.9.0",
|
50
50
|
"bootstrap": "^5.3.3",
|
51
51
|
"bootstrap-icons": "^1.11.3",
|
52
52
|
"clipboard": "^2.0.11",
|
@@ -80,9 +80,14 @@ export const PlanDetailView: FC<PlanDetailViewProps> = ({
|
|
80
80
|
}
|
81
81
|
|
82
82
|
if (evaluation?.sandbox) {
|
83
|
-
|
84
|
-
|
85
|
-
|
83
|
+
if (Array.isArray(evaluation?.sandbox)) {
|
84
|
+
config["sandbox"] = evaluation.sandbox[0];
|
85
|
+
if (evaluation.sandbox[1]) {
|
86
|
+
config["sandbox_config"] = evaluation.sandbox[1];
|
87
|
+
}
|
88
|
+
} else {
|
89
|
+
config["sandbox"] = evaluation?.sandbox.type;
|
90
|
+
config["sandbox_config"] = evaluation?.sandbox.config;
|
86
91
|
}
|
87
92
|
}
|
88
93
|
|
@@ -3,7 +3,7 @@ import { FC, RefObject, useCallback, useState } from "react";
|
|
3
3
|
import { StepEvent } from "../../types/log";
|
4
4
|
import { formatDateTime } from "../../utils/format";
|
5
5
|
import { EventPanel } from "./event/EventPanel";
|
6
|
-
import {
|
6
|
+
import { TranscriptComponent } from "./TranscriptView";
|
7
7
|
import { EventNode, TranscriptEventState } from "./types";
|
8
8
|
|
9
9
|
interface StepEventViewProps {
|
@@ -58,10 +58,9 @@ export const StepEventView: FC<StepEventViewProps> = ({
|
|
58
58
|
setEventState({ ...eventState, collapsed });
|
59
59
|
}}
|
60
60
|
>
|
61
|
-
<
|
61
|
+
<TranscriptComponent
|
62
62
|
id={`step-${event.name}-transcript`}
|
63
63
|
eventNodes={children}
|
64
|
-
scrollRef={scrollRef}
|
65
64
|
transcriptState={transcriptState}
|
66
65
|
setTranscriptState={onTranscriptState}
|
67
66
|
/>
|