vision-agent 0.2.88__tar.gz → 0.2.90__tar.gz
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-0.2.88 → vision_agent-0.2.90}/PKG-INFO +1 -1
- {vision_agent-0.2.88 → vision_agent-0.2.90}/pyproject.toml +1 -1
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/agent/vision_agent.py +11 -10
- {vision_agent-0.2.88 → vision_agent-0.2.90}/LICENSE +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/README.md +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/agent/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/agent/agent.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/agent/vision_agent_prompts.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/fonts/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/lmm/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/lmm/lmm.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/tools/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/tools/prompts.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/tools/tool_utils.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/tools/tools.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/__init__.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/exceptions.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/execute.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/image_utils.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/sim.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/type_defs.py +0 -0
- {vision_agent-0.2.88 → vision_agent-0.2.90}/vision_agent/utils/video.py +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,
|
@@ -812,6 +812,7 @@ class VisionAgent(Agent):
|
|
812
812
|
self.coder,
|
813
813
|
code_interpreter,
|
814
814
|
test_multi_plan,
|
815
|
+
self.log_progress,
|
815
816
|
verbosity=self.verbosity,
|
816
817
|
)
|
817
818
|
|
@@ -846,8 +847,8 @@ class VisionAgent(Agent):
|
|
846
847
|
{
|
847
848
|
"type": "final_code",
|
848
849
|
"status": "completed" if success else "failed",
|
849
|
-
"code": DefaultImports.prepend_imports(code),
|
850
850
|
"payload": {
|
851
|
+
"code": DefaultImports.prepend_imports(code),
|
851
852
|
"test": test,
|
852
853
|
"result": execution_result.to_json(),
|
853
854
|
},
|
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
|
File without changes
|
File without changes
|