vision-agent 0.2.93__tar.gz → 0.2.94__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vision_agent-0.2.93 → vision_agent-0.2.94}/PKG-INFO +1 -1
- {vision_agent-0.2.93 → vision_agent-0.2.94}/pyproject.toml +1 -1
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_coder.py +15 -19
- {vision_agent-0.2.93 → vision_agent-0.2.94}/LICENSE +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/README.md +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/agent.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/agent_utils.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_coder_prompts.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_prompts.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/fonts/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/lmm.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/types.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/meta_tools.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/prompts.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/tool_utils.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/tools.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/__init__.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/exceptions.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/execute.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/image_utils.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/sim.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/type_defs.py +0 -0
- {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/video.py +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,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_coder_prompts.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|