vision-agent 0.2.92__py3-none-any.whl → 0.2.94__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vision_agent/agent/vision_agent_coder.py +15 -19
- {vision_agent-0.2.92.dist-info → vision_agent-0.2.94.dist-info}/METADATA +1 -1
- {vision_agent-0.2.92.dist-info → vision_agent-0.2.94.dist-info}/RECORD +5 -5
- {vision_agent-0.2.92.dist-info → vision_agent-0.2.94.dist-info}/LICENSE +0 -0
- {vision_agent-0.2.92.dist-info → vision_agent-0.2.94.dist-info}/WHEEL +0 -0
@@ -373,7 +373,7 @@ def write_and_test_code(
|
|
373
373
|
"code": DefaultImports.prepend_imports(code),
|
374
374
|
"payload": {
|
375
375
|
"test": test,
|
376
|
-
"result": result.to_json(),
|
376
|
+
# "result": result.to_json(),
|
377
377
|
},
|
378
378
|
}
|
379
379
|
)
|
@@ -426,7 +426,8 @@ def debug_code(
|
|
426
426
|
) -> tuple[str, str, Execution]:
|
427
427
|
log_progress(
|
428
428
|
{
|
429
|
-
"type": "
|
429
|
+
"type": "log",
|
430
|
+
"log_content": ("Debugging code"),
|
430
431
|
"status": "started",
|
431
432
|
}
|
432
433
|
)
|
@@ -469,10 +470,11 @@ def debug_code(
|
|
469
470
|
)
|
470
471
|
log_progress(
|
471
472
|
{
|
472
|
-
"type": "
|
473
|
+
"type": "log",
|
474
|
+
"log_content": ("Running code"),
|
473
475
|
"status": "running",
|
476
|
+
"code": DefaultImports.prepend_imports(code),
|
474
477
|
"payload": {
|
475
|
-
"code": DefaultImports.prepend_imports(code),
|
476
478
|
"test": test,
|
477
479
|
},
|
478
480
|
}
|
@@ -483,12 +485,15 @@ def debug_code(
|
|
483
485
|
)
|
484
486
|
log_progress(
|
485
487
|
{
|
486
|
-
"type": "
|
488
|
+
"type": "log",
|
489
|
+
"log_content": (
|
490
|
+
"Code execution succeed" if result.success else "Code execution failed"
|
491
|
+
),
|
487
492
|
"status": "completed" if result.success else "failed",
|
493
|
+
"code": DefaultImports.prepend_imports(code),
|
488
494
|
"payload": {
|
489
|
-
"code": DefaultImports.prepend_imports(code),
|
490
495
|
"test": test,
|
491
|
-
"result": result.to_json(),
|
496
|
+
# "result": result.to_json(),
|
492
497
|
},
|
493
498
|
}
|
494
499
|
)
|
@@ -525,7 +530,8 @@ def retrieve_tools(
|
|
525
530
|
) -> Dict[str, str]:
|
526
531
|
log_progress(
|
527
532
|
{
|
528
|
-
"type": "
|
533
|
+
"type": "log",
|
534
|
+
"log_content": ("Retrieving tools for each plan"),
|
529
535
|
"status": "started",
|
530
536
|
}
|
531
537
|
)
|
@@ -802,17 +808,6 @@ class VisionAgentCoder(Agent):
|
|
802
808
|
plan.append({"code": code, "test": test, "plan": plan_i})
|
803
809
|
|
804
810
|
execution_result = cast(Execution, results["test_result"])
|
805
|
-
self.log_progress(
|
806
|
-
{
|
807
|
-
"type": "final_code",
|
808
|
-
"status": "completed" if success else "failed",
|
809
|
-
"payload": {
|
810
|
-
"code": DefaultImports.prepend_imports(code),
|
811
|
-
"test": test,
|
812
|
-
"result": execution_result.to_json(),
|
813
|
-
},
|
814
|
-
}
|
815
|
-
)
|
816
811
|
|
817
812
|
if display_visualization:
|
818
813
|
for res in execution_result.results:
|
@@ -822,6 +817,7 @@ class VisionAgentCoder(Agent):
|
|
822
817
|
play_video(res.mp4)
|
823
818
|
|
824
819
|
return {
|
820
|
+
"status": "completed" if success else "failed",
|
825
821
|
"code": DefaultImports.prepend_imports(code),
|
826
822
|
"test": test,
|
827
823
|
"test_result": execution_result,
|
@@ -3,7 +3,7 @@ vision_agent/agent/__init__.py,sha256=qpduQ9YufJQfMmG6jwKC2xmlbtR2qK8_1eQC1sGA9K
|
|
3
3
|
vision_agent/agent/agent.py,sha256=Bt8yhjCFXuRdZaHxKEesG40V09nWRt45sZluri1R3AA,575
|
4
4
|
vision_agent/agent/agent_utils.py,sha256=JXdl2xz14LKQAmScY-MIW23AD2WBFCsnI0JS6dAyj3Q,1412
|
5
5
|
vision_agent/agent/vision_agent.py,sha256=i_rNpc7faqHTifp2c9sQE4Js3qYUKuJeiqauTp90OlE,8417
|
6
|
-
vision_agent/agent/vision_agent_coder.py,sha256=
|
6
|
+
vision_agent/agent/vision_agent_coder.py,sha256=M8J5xE9uX8Nig1WmVmwLMeCSe0E6Bg3Mo5fPPcW_a-c,30246
|
7
7
|
vision_agent/agent/vision_agent_coder_prompts.py,sha256=a3R_vHlT2FW3-DSn4OWgzF9zEAx-uKM4ZaTi9Kn-K54,11116
|
8
8
|
vision_agent/agent/vision_agent_prompts.py,sha256=hjs-m4ZHR7HE1HtOeX_1rOvTQA2FMEAqEkaBbGPBYDo,6072
|
9
9
|
vision_agent/fonts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -23,7 +23,7 @@ vision_agent/utils/image_utils.py,sha256=y69wtNla0xHZ1h1x0-vv7nOyKUq69jtjSJBiDCn
|
|
23
23
|
vision_agent/utils/sim.py,sha256=1HTaiVaBiKeyXIy21IYGXlPw0TipOyw9FPOJDfyLI94,4409
|
24
24
|
vision_agent/utils/type_defs.py,sha256=oVFJcicB-s_09lqvn61u0A5ncZsTqZArZledXWbrrg0,1384
|
25
25
|
vision_agent/utils/video.py,sha256=rNmU9KEIkZB5-EztZNlUiKYN0mm_55A_2VGUM0QpqLA,8779
|
26
|
-
vision_agent-0.2.
|
27
|
-
vision_agent-0.2.
|
28
|
-
vision_agent-0.2.
|
29
|
-
vision_agent-0.2.
|
26
|
+
vision_agent-0.2.94.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
27
|
+
vision_agent-0.2.94.dist-info/METADATA,sha256=Ef1XAiAKdtYv9NNwCK9HUO2QwOk-oUZPflLh2wOo9r4,10693
|
28
|
+
vision_agent-0.2.94.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
29
|
+
vision_agent-0.2.94.dist-info/RECORD,,
|
File without changes
|
File without changes
|