vision-agent 0.2.89__py3-none-any.whl → 0.2.91__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.
- vision_agent/agent/vision_agent.py +10 -10
- vision_agent/tools/tool_utils.py +1 -1
- vision_agent/utils/type_defs.py +1 -1
- {vision_agent-0.2.89.dist-info → vision_agent-0.2.91.dist-info}/METADATA +1 -1
- {vision_agent-0.2.89.dist-info → vision_agent-0.2.91.dist-info}/RECORD +7 -7
- {vision_agent-0.2.89.dist-info → vision_agent-0.2.91.dist-info}/LICENSE +0 -0
- {vision_agent-0.2.89.dist-info → vision_agent-0.2.91.dist-info}/WHEEL +0 -0
@@ -184,7 +184,7 @@ def pick_plan(
|
|
184
184
|
k = list(plans.keys())[0]
|
185
185
|
log_progress(
|
186
186
|
{
|
187
|
-
"type": "
|
187
|
+
"type": "log",
|
188
188
|
"log_content": "Plans created",
|
189
189
|
"status": "completed",
|
190
190
|
"payload": plans[k],
|
@@ -194,7 +194,7 @@ def pick_plan(
|
|
194
194
|
|
195
195
|
log_progress(
|
196
196
|
{
|
197
|
-
"type": "
|
197
|
+
"type": "log",
|
198
198
|
"log_content": "Generating code to pick best plan",
|
199
199
|
"status": "started",
|
200
200
|
}
|
@@ -212,7 +212,7 @@ def pick_plan(
|
|
212
212
|
code = extract_code(model(prompt))
|
213
213
|
log_progress(
|
214
214
|
{
|
215
|
-
"type": "
|
215
|
+
"type": "log",
|
216
216
|
"log_content": "Executing code to test plan",
|
217
217
|
"code": code,
|
218
218
|
"status": "running",
|
@@ -229,7 +229,7 @@ def pick_plan(
|
|
229
229
|
|
230
230
|
log_progress(
|
231
231
|
{
|
232
|
-
"type": "
|
232
|
+
"type": "log",
|
233
233
|
"log_content": (
|
234
234
|
"Code execution succeed"
|
235
235
|
if tool_output.success
|
@@ -251,7 +251,7 @@ def pick_plan(
|
|
251
251
|
)
|
252
252
|
log_progress(
|
253
253
|
{
|
254
|
-
"type": "
|
254
|
+
"type": "log",
|
255
255
|
"log_content": "Retry running code",
|
256
256
|
"code": code,
|
257
257
|
"status": "running",
|
@@ -263,7 +263,7 @@ def pick_plan(
|
|
263
263
|
)
|
264
264
|
log_progress(
|
265
265
|
{
|
266
|
-
"type": "
|
266
|
+
"type": "log",
|
267
267
|
"log_content": (
|
268
268
|
"Code execution succeed"
|
269
269
|
if tool_output.success
|
@@ -318,7 +318,7 @@ def pick_plan(
|
|
318
318
|
|
319
319
|
log_progress(
|
320
320
|
{
|
321
|
-
"type": "
|
321
|
+
"type": "log",
|
322
322
|
"log_content": "Picked best plan",
|
323
323
|
"status": "complete",
|
324
324
|
"payload": best_plans,
|
@@ -771,7 +771,7 @@ class VisionAgent(Agent):
|
|
771
771
|
|
772
772
|
self.log_progress(
|
773
773
|
{
|
774
|
-
"type": "
|
774
|
+
"type": "log",
|
775
775
|
"log_content": "Creating plans",
|
776
776
|
"status": "started",
|
777
777
|
}
|
@@ -798,7 +798,7 @@ class VisionAgent(Agent):
|
|
798
798
|
if test_multi_plan:
|
799
799
|
self.log_progress(
|
800
800
|
{
|
801
|
-
"type": "
|
801
|
+
"type": "log",
|
802
802
|
"log_content": "Creating plans",
|
803
803
|
"status": "completed",
|
804
804
|
"payload": tool_lists,
|
@@ -847,8 +847,8 @@ class VisionAgent(Agent):
|
|
847
847
|
{
|
848
848
|
"type": "final_code",
|
849
849
|
"status": "completed" if success else "failed",
|
850
|
-
"code": DefaultImports.prepend_imports(code),
|
851
850
|
"payload": {
|
851
|
+
"code": DefaultImports.prepend_imports(code),
|
852
852
|
"test": test,
|
853
853
|
"result": execution_result.to_json(),
|
854
854
|
},
|
vision_agent/tools/tool_utils.py
CHANGED
@@ -14,7 +14,7 @@ from vision_agent.utils.type_defs import LandingaiAPIKey
|
|
14
14
|
|
15
15
|
_LOGGER = logging.getLogger(__name__)
|
16
16
|
_LND_API_KEY = LandingaiAPIKey().api_key
|
17
|
-
_LND_API_URL = "https://api.
|
17
|
+
_LND_API_URL = "https://api.landing.ai/v1/agent"
|
18
18
|
|
19
19
|
|
20
20
|
class ToolCallTrace(BaseModel):
|
vision_agent/utils/type_defs.py
CHANGED
@@ -14,7 +14,7 @@ class LandingaiAPIKey(BaseSettings):
|
|
14
14
|
"""
|
15
15
|
|
16
16
|
api_key: str = Field(
|
17
|
-
default="
|
17
|
+
default="land_sk_fnmSzD0ksknSfvhyD8UGu9R4ss3bKfLL1Im5gb6tDQTy2z1Oy5",
|
18
18
|
alias="LANDINGAI_API_KEY",
|
19
19
|
description="The API key of LandingAI.",
|
20
20
|
)
|
@@ -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=
|
4
|
+
vision_agent/agent/vision_agent.py,sha256=y2bZ1vB4_rfvFF-FgHSnVi3tYD9aZ_g85Dd7HZZdVpk,31351
|
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
|
@@ -9,16 +9,16 @@ vision_agent/lmm/__init__.py,sha256=j9mQsIXQOYfW6nFd47uTwuBe1ranpEbwW308qLfCWN0,
|
|
9
9
|
vision_agent/lmm/lmm.py,sha256=035uONyp6_jD3PVdNdSg2PMHOG1voqnpsn2IyybUENs,15147
|
10
10
|
vision_agent/tools/__init__.py,sha256=k69hvcy2FWjDqVA0klzybKeoToOH_bom5NTVSliA0Og,1838
|
11
11
|
vision_agent/tools/prompts.py,sha256=V1z4YJLXZuUl_iZ5rY0M5hHc_2tmMEUKr0WocXKGt4E,1430
|
12
|
-
vision_agent/tools/tool_utils.py,sha256=
|
12
|
+
vision_agent/tools/tool_utils.py,sha256=ToKq3f0bUiooEEyiAGvfT9rvqdv0i4406hUkboAhQHs,3214
|
13
13
|
vision_agent/tools/tools.py,sha256=TkZqNYX-ocwdaCdXd6c6tysSa_HX2y6Nrgl4JKni4IQ,43661
|
14
14
|
vision_agent/utils/__init__.py,sha256=CW84HnhqI6XQVuxf2KifkLnSuO7EOhmuL09-gAymAak,219
|
15
15
|
vision_agent/utils/exceptions.py,sha256=isVH-SVL4vHj3q5kK4z7cy5_aOapAqHXWkpibfSNbUs,1659
|
16
16
|
vision_agent/utils/execute.py,sha256=DxuAoKmKAovgKe8IPkwg1B34osoz9_Ouvl1mi8aPXgE,23923
|
17
17
|
vision_agent/utils/image_utils.py,sha256=_cdiS5YrLzqkq_ZgFUO897m5M4_SCIThwUy4lOklfB8,7700
|
18
18
|
vision_agent/utils/sim.py,sha256=1HTaiVaBiKeyXIy21IYGXlPw0TipOyw9FPOJDfyLI94,4409
|
19
|
-
vision_agent/utils/type_defs.py,sha256=
|
19
|
+
vision_agent/utils/type_defs.py,sha256=oVFJcicB-s_09lqvn61u0A5ncZsTqZArZledXWbrrg0,1384
|
20
20
|
vision_agent/utils/video.py,sha256=rNmU9KEIkZB5-EztZNlUiKYN0mm_55A_2VGUM0QpqLA,8779
|
21
|
-
vision_agent-0.2.
|
22
|
-
vision_agent-0.2.
|
23
|
-
vision_agent-0.2.
|
24
|
-
vision_agent-0.2.
|
21
|
+
vision_agent-0.2.91.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
22
|
+
vision_agent-0.2.91.dist-info/METADATA,sha256=D8YM88jdINlhApwKLkjuI1nJKzIeoOenk3bnbQMbWoI,9477
|
23
|
+
vision_agent-0.2.91.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
24
|
+
vision_agent-0.2.91.dist-info/RECORD,,
|
File without changes
|
File without changes
|