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.
Files changed (29) hide show
  1. {vision_agent-0.2.93 → vision_agent-0.2.94}/PKG-INFO +1 -1
  2. {vision_agent-0.2.93 → vision_agent-0.2.94}/pyproject.toml +1 -1
  3. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_coder.py +15 -19
  4. {vision_agent-0.2.93 → vision_agent-0.2.94}/LICENSE +0 -0
  5. {vision_agent-0.2.93 → vision_agent-0.2.94}/README.md +0 -0
  6. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/__init__.py +0 -0
  7. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/__init__.py +0 -0
  8. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/agent.py +0 -0
  9. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/agent_utils.py +0 -0
  10. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent.py +0 -0
  11. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_coder_prompts.py +0 -0
  12. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/agent/vision_agent_prompts.py +0 -0
  13. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/fonts/__init__.py +0 -0
  14. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
  15. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/__init__.py +0 -0
  16. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/lmm.py +0 -0
  17. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/lmm/types.py +0 -0
  18. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/__init__.py +0 -0
  19. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/meta_tools.py +0 -0
  20. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/prompts.py +0 -0
  21. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/tool_utils.py +0 -0
  22. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/tools/tools.py +0 -0
  23. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/__init__.py +0 -0
  24. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/exceptions.py +0 -0
  25. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/execute.py +0 -0
  26. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/image_utils.py +0 -0
  27. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/sim.py +0 -0
  28. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/type_defs.py +0 -0
  29. {vision_agent-0.2.93 → vision_agent-0.2.94}/vision_agent/utils/video.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vision-agent
3
- Version: 0.2.93
3
+ Version: 0.2.94
4
4
  Summary: Toolset for Vision Agent
5
5
  Author: Landing AI
6
6
  Author-email: dev@landing.ai
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "vision-agent"
7
- version = "0.2.93"
7
+ version = "0.2.94"
8
8
  description = "Toolset for Vision Agent"
9
9
  authors = ["Landing AI <dev@landing.ai>"]
10
10
  readme = "README.md"
@@ -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": "code",
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": "code",
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": "code",
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": "tools",
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