vision-agent 0.2.244__py3-none-any.whl → 0.2.246__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.
@@ -410,7 +410,7 @@ class VisionAgentPlanner(Agent):
410
410
  plans = write_plans(
411
411
  chat,
412
412
  get_tool_descriptions_by_names(
413
- custom_tool_names, T.FUNCTION_TOOLS, T.UTIL_TOOLS # type: ignore
413
+ custom_tool_names, T.tools.FUNCTION_TOOLS, T.tools.UTIL_TOOLS # type: ignore
414
414
  ),
415
415
  format_feedback(working_memory),
416
416
  self.planner,
@@ -317,7 +317,8 @@ def maybe_run_code(
317
317
  media_data = capture_media_from_exec(execution)
318
318
  int_chat_elt = AgentMessage(role="observation", content=obs, media=None)
319
319
  if media_list:
320
- int_chat_elt.media = cast(List[Union[str, Path]], media_data)
320
+ # Don't sned more than 3 media files to the planner or it can get overloaded
321
+ int_chat_elt.media = cast(List[Union[str, Path]], media_data[:3])
321
322
  return_chat.append(int_chat_elt)
322
323
  else:
323
324
  return_chat.append(AgentMessage(role="planner", content=response, media=None))
@@ -54,12 +54,22 @@ AGENT: <response>I am VisionAgent, an agent built by LandingAI, to help users wr
54
54
  - Understanding documents
55
55
  - Pose estimation
56
56
  - Visual question answering for both images and videos
57
- - Action recognition in videos
57
+ - Activity recognition in videos
58
58
  - Image inpainting
59
59
 
60
60
  How can I help you?</response>
61
61
  --- END EXAMPLE2 ---
62
62
 
63
+ **Helpful Context**:
64
+ - You are helping the user write vision code that utilizes the `vision-agent` library to solve different vision tasks.
65
+ - The goal is to write code the user can use to solve a visual task and then deploy the code so they can run it repeatedly on that task.
66
+ - If the user wants to run the code, they can `pip install vision-agent` to install the library, copy the code, and run it locally themselves.
67
+ - They can find the vision-agent source code at https://github.com/landing-ai/vision-agent. They can find the documentation for vision-agent at https://landing-ai.github.io/vision-agent/.
68
+ - The code utilizes LandingAI's API to run the different tools, the API is free to use and does not require an API key.
69
+ - The user can run VisionAgent (you) from two places, either on our website at https://va.landing.ai or locally.
70
+ - If the user is running VisionAgent on the website, they can only upload images or videos, nothing else at the moment. They can view files created by VisionAgent by clicking the "Files" button in the upper right part of the screen.
71
+ - If the user is running VisionAgent locally they can ask it to do more things like run over files in a folder. They can view files created by VisionAgent by checking their local file system.
72
+
63
73
  **Conversation**:
64
74
  Here is the current conversation so far:
65
75
  --- START CONVERSATION ---
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vision-agent
3
- Version: 0.2.244
3
+ Version: 0.2.246
4
4
  Summary: Toolset for Vision Agent
5
5
  Author: Landing AI
6
6
  Author-email: dev@landing.ai
@@ -9,12 +9,12 @@ vision_agent/agent/vision_agent_coder.py,sha256=Ry6AiyAj3hsSeYPu_5guMcTzf2E4Soeb
9
9
  vision_agent/agent/vision_agent_coder_prompts.py,sha256=D4RJxTWoxpl-WtYRvHNxaLSdWVHsdYb0jJIQ2ZCGU0A,12277
10
10
  vision_agent/agent/vision_agent_coder_prompts_v2.py,sha256=53b_DhQtffX5wxLuCbNQ83AJhB0P_3wEnuKr-v5bx-o,4866
11
11
  vision_agent/agent/vision_agent_coder_v2.py,sha256=I4gWrneFIqhX6W-MxiaNyPKGk5tRKgC8xryV-YdeSZU,17289
12
- vision_agent/agent/vision_agent_planner.py,sha256=rp_atRMDg35WFXNKOTkjUpGPrpSCsiMhcfZtqK-DIV4,18668
12
+ vision_agent/agent/vision_agent_planner.py,sha256=8LeUsxUlGuQMqCdJ6jHXOe6RpKpzLtMW1AaJlfuIfzw,18680
13
13
  vision_agent/agent/vision_agent_planner_prompts.py,sha256=rYRdJthc-sQN57VgCBKrF09Sd73BSxcBdjNe6C4WNZ8,6837
14
14
  vision_agent/agent/vision_agent_planner_prompts_v2.py,sha256=TiiF5BGnFVraFlQnDaeRU67927LvszvpcMUOgVgo0ps,35843
15
- vision_agent/agent/vision_agent_planner_v2.py,sha256=GOhaTsVCh02X09IKkC4k9z79lsmU4VgRW7WJLKjdG1k,21755
15
+ vision_agent/agent/vision_agent_planner_v2.py,sha256=3Rt0kAIpIiufdEuO5-0IpUitou-QlhWXArNXTgoRzxw,21848
16
16
  vision_agent/agent/vision_agent_prompts.py,sha256=KaJwYPUP7_GvQsCPPs6Fdawmi3AQWmWajBUuzj7gTG4,13812
17
- vision_agent/agent/vision_agent_prompts_v2.py,sha256=jTfu_heNTBaHj1UNI0XIyyFDgDOjPTPP83vrS-g3A1U,2961
17
+ vision_agent/agent/vision_agent_prompts_v2.py,sha256=OnHmmteAj8__2spEXNcckApQvEpkK_JIZd_SWzEyg9c,4230
18
18
  vision_agent/agent/vision_agent_v2.py,sha256=QPAyDjnRRHUCD4Pw4TQYffWkucbn4WkEjYn8dBIWll4,11682
19
19
  vision_agent/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  vision_agent/clients/http.py,sha256=k883i6M_4nl7zwwHSI-yP5sAgQZIDPM1nrKD6YFJ3Xs,2009
@@ -48,7 +48,7 @@ vision_agent/utils/tools_doc.py,sha256=yFue6KSXoa_Z1ngCdBEc4SdPZOWF1rVLeaHu02I8W
48
48
  vision_agent/utils/type_defs.py,sha256=BE12s3JNQy36QvauXHjwyeffVh5enfcvd4vTzSwvEZI,1384
49
49
  vision_agent/utils/video.py,sha256=rjsQ1sKKisaQ6AVjJz0zd_G4g-ovRweS_rs4JEhenoI,5340
50
50
  vision_agent/utils/video_tracking.py,sha256=DZLFpNCuzuPJQzbQoVNcp-m4dKxgiKdCNM5QTh_zURE,12245
51
- vision_agent-0.2.244.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
52
- vision_agent-0.2.244.dist-info/METADATA,sha256=RLXic4HHajyOObt4rHuJIPDX2rx2fyFeyIAGFsIpeNQ,5712
53
- vision_agent-0.2.244.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
54
- vision_agent-0.2.244.dist-info/RECORD,,
51
+ vision_agent-0.2.246.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
52
+ vision_agent-0.2.246.dist-info/METADATA,sha256=O0vPLVrDBwISB1hDjMejqtvqTBfE6IaSzBZBVsnTLhE,5712
53
+ vision_agent-0.2.246.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
54
+ vision_agent-0.2.246.dist-info/RECORD,,