vision-agent 0.2.84__py3-none-any.whl → 0.2.85__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.
@@ -622,6 +622,7 @@ class VisionAgent(Agent):
622
622
  def chat_with_workflow(
623
623
  self,
624
624
  chat: List[Message],
625
+ test_multi_plan: bool = True,
625
626
  display_visualization: bool = False,
626
627
  ) -> Dict[str, Any]:
627
628
  """Chat with Vision Agent and return intermediate information regarding the task.
@@ -691,7 +692,7 @@ class VisionAgent(Agent):
691
692
  self.planner,
692
693
  )
693
694
 
694
- if self.verbosity >= 1:
695
+ if self.verbosity >= 1 and test_multi_plan:
695
696
  for p in plans:
696
697
  _LOGGER.info(
697
698
  f"\n{tabulate(tabular_data=plans[p], headers='keys', tablefmt='mixed_grid', maxcolwidths=_MAX_TABULATE_COL_WIDTH)}"
@@ -703,14 +704,19 @@ class VisionAgent(Agent):
703
704
  self.log_progress,
704
705
  self.verbosity,
705
706
  )
706
- best_plan, tool_output_str = pick_plan(
707
- int_chat,
708
- plans,
709
- tool_infos["all"],
710
- self.coder,
711
- code_interpreter,
712
- verbosity=self.verbosity,
713
- )
707
+
708
+ if test_multi_plan:
709
+ best_plan, tool_output_str = pick_plan(
710
+ int_chat,
711
+ plans,
712
+ tool_infos["all"],
713
+ self.coder,
714
+ code_interpreter,
715
+ verbosity=self.verbosity,
716
+ )
717
+ else:
718
+ best_plan = list(plans.keys())[0]
719
+ tool_output_str = ""
714
720
 
715
721
  if best_plan in plans and best_plan in tool_infos:
716
722
  plan_i = plans[best_plan]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vision-agent
3
- Version: 0.2.84
3
+ Version: 0.2.85
4
4
  Summary: Toolset for Vision Agent
5
5
  Author: Landing AI
6
6
  Author-email: dev@landing.ai
@@ -1,7 +1,7 @@
1
1
  vision_agent/__init__.py,sha256=EAb4-f9iyuEYkBrX4ag1syM8Syx8118_t0R6_C34M9w,57
2
2
  vision_agent/agent/__init__.py,sha256=IUwfbPMcT8X_rnXMLmI8gJ4ltsHy_XSs9eLiKURJxeY,81
3
3
  vision_agent/agent/agent.py,sha256=ZK-5lOtd9-eD9aWcXssJpnOyvZuO7_5hAmnb-6sWVe8,569
4
- vision_agent/agent/vision_agent.py,sha256=fLCkqYJzk9SNtu8TzKBk0TLZrXDMTCqgI3FI-zkc-qs,28768
4
+ vision_agent/agent/vision_agent.py,sha256=X5V_xBIc672mwnHD20wbz6jKpmfPUwXOooID2moWahM,28996
5
5
  vision_agent/agent/vision_agent_prompts.py,sha256=brBV-SmzyzTG5M9nfV3R5xdYT_BUYOKzxNFmTa2Sp-o,11049
6
6
  vision_agent/fonts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  vision_agent/fonts/default_font_ch_en.ttf,sha256=1YM0Z3XqLDjSNbF7ihQFSAIUdjF9m1rtHiNC_6QosTE,1594400
@@ -18,7 +18,7 @@ vision_agent/utils/image_utils.py,sha256=_cdiS5YrLzqkq_ZgFUO897m5M4_SCIThwUy4lOk
18
18
  vision_agent/utils/sim.py,sha256=1HTaiVaBiKeyXIy21IYGXlPw0TipOyw9FPOJDfyLI94,4409
19
19
  vision_agent/utils/type_defs.py,sha256=QeQRRIlklZMWzxROcCn5ELxP89nYdXGydy1rAiSpZZw,1384
20
20
  vision_agent/utils/video.py,sha256=rNmU9KEIkZB5-EztZNlUiKYN0mm_55A_2VGUM0QpqLA,8779
21
- vision_agent-0.2.84.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- vision_agent-0.2.84.dist-info/METADATA,sha256=mZM17x03oCnI8tp4g7psZzonwNlS0fqN0f78dWbob-o,9477
23
- vision_agent-0.2.84.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
24
- vision_agent-0.2.84.dist-info/RECORD,,
21
+ vision_agent-0.2.85.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ vision_agent-0.2.85.dist-info/METADATA,sha256=AsX-YRr-MS8JvS4tL_KTBS-Bl-RvVUtef9yfqZlvKfk,9477
23
+ vision_agent-0.2.85.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
24
+ vision_agent-0.2.85.dist-info/RECORD,,