vision-agent 0.2.67__tar.gz → 0.2.69__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.67 → vision_agent-0.2.69}/PKG-INFO +14 -1
- {vision_agent-0.2.67 → vision_agent-0.2.69}/README.md +13 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/pyproject.toml +1 -1
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/agent/vision_agent.py +23 -11
- {vision_agent-0.2.67 → vision_agent-0.2.69}/LICENSE +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/agent/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/agent/agent.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/agent/vision_agent_prompts.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/fonts/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/lmm/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/lmm/lmm.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/tools/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/tools/prompts.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/tools/tool_utils.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/tools/tools.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/utils/__init__.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/utils/execute.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/utils/image_utils.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/utils/sim.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/vision_agent/utils/type_defs.py +0 -0
- {vision_agent-0.2.67 → vision_agent-0.2.69}/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.
|
3
|
+
Version: 0.2.69
|
4
4
|
Summary: Toolset for Vision Agent
|
5
5
|
Author: Landing AI
|
6
6
|
Author-email: dev@landing.ai
|
@@ -77,6 +77,9 @@ using Azure OpenAI please see the Azure setup section):
|
|
77
77
|
export OPENAI_API_KEY="your-api-key"
|
78
78
|
```
|
79
79
|
|
80
|
+
### Important Note on API Usage
|
81
|
+
Please be aware that using the API in this project requires you to have API credits (minimum of five US dollars). This is different from the OpenAI subscription used in this chatbot. If you don't have credit, further information can be found [here](https://github.com/moutasemalakkad/vision-agent/blob/57e50b59e39fde7d943d534a8bf83c5ff6281562/README.md#L215-L216)
|
82
|
+
|
80
83
|
### Vision Agent
|
81
84
|
#### Basic Usage
|
82
85
|
You can interact with the agent as you would with any LLM or LMM model:
|
@@ -245,4 +248,14 @@ You can then run Vision Agent using the Azure OpenAI models:
|
|
245
248
|
import vision_agent as va
|
246
249
|
agent = va.agent.AzureVisionAgent()
|
247
250
|
```
|
251
|
+
******************************************************************************************************************************
|
252
|
+
#### To get started with API credits:
|
253
|
+
|
254
|
+
1. Visit the[OpenAI API platform](https://beta.openai.com/signup/) to sign up for an API key.
|
255
|
+
2. Follow the instructions to purchase and manage your API credits.
|
256
|
+
3. Ensure your API key is correctly configured in your project settings.
|
257
|
+
|
258
|
+
Failure to have sufficient API credits may result in limited or no functionality for the features that rely on the OpenAI API.
|
259
|
+
|
260
|
+
For more details on managing your API usage and credits, please refer to the OpenAI API documentation.
|
248
261
|
|
@@ -40,6 +40,9 @@ using Azure OpenAI please see the Azure setup section):
|
|
40
40
|
export OPENAI_API_KEY="your-api-key"
|
41
41
|
```
|
42
42
|
|
43
|
+
### Important Note on API Usage
|
44
|
+
Please be aware that using the API in this project requires you to have API credits (minimum of five US dollars). This is different from the OpenAI subscription used in this chatbot. If you don't have credit, further information can be found [here](https://github.com/moutasemalakkad/vision-agent/blob/57e50b59e39fde7d943d534a8bf83c5ff6281562/README.md#L215-L216)
|
45
|
+
|
43
46
|
### Vision Agent
|
44
47
|
#### Basic Usage
|
45
48
|
You can interact with the agent as you would with any LLM or LMM model:
|
@@ -208,3 +211,13 @@ You can then run Vision Agent using the Azure OpenAI models:
|
|
208
211
|
import vision_agent as va
|
209
212
|
agent = va.agent.AzureVisionAgent()
|
210
213
|
```
|
214
|
+
******************************************************************************************************************************
|
215
|
+
#### To get started with API credits:
|
216
|
+
|
217
|
+
1. Visit the[OpenAI API platform](https://beta.openai.com/signup/) to sign up for an API key.
|
218
|
+
2. Follow the instructions to purchase and manage your API credits.
|
219
|
+
3. Ensure your API key is correctly configured in your project settings.
|
220
|
+
|
221
|
+
Failure to have sufficient API credits may result in limited or no functionality for the features that rely on the OpenAI API.
|
222
|
+
|
223
|
+
For more details on managing your API usage and credits, please refer to the OpenAI API documentation.
|
@@ -324,16 +324,28 @@ def debug_code(
|
|
324
324
|
"status": "started",
|
325
325
|
}
|
326
326
|
)
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
327
|
+
|
328
|
+
fixed_code_and_test = {"code": "", "test": "", "reflections": ""}
|
329
|
+
success = False
|
330
|
+
count = 0
|
331
|
+
while not success and count < 3:
|
332
|
+
try:
|
333
|
+
fixed_code_and_test = extract_json(
|
334
|
+
debugger(
|
335
|
+
FIX_BUG.format(
|
336
|
+
code=code,
|
337
|
+
tests=test,
|
338
|
+
result="\n".join(result.text().splitlines()[-50:]),
|
339
|
+
feedback=format_memory(working_memory + new_working_memory),
|
340
|
+
)
|
341
|
+
)
|
334
342
|
)
|
335
|
-
|
336
|
-
|
343
|
+
success = True
|
344
|
+
except Exception as e:
|
345
|
+
_LOGGER.exception(f"Error while extracting JSON: {e}")
|
346
|
+
|
347
|
+
count += 1
|
348
|
+
|
337
349
|
old_code = code
|
338
350
|
old_test = test
|
339
351
|
|
@@ -425,12 +437,12 @@ def retrieve_tools(
|
|
425
437
|
{
|
426
438
|
"type": "tools",
|
427
439
|
"status": "completed",
|
428
|
-
"payload": tool_list,
|
440
|
+
"payload": {v["description"]: v for v in tool_list}.values(),
|
429
441
|
}
|
430
442
|
)
|
431
443
|
|
432
444
|
if verbosity == 2:
|
433
|
-
tool_desc_str = "\n".join(tool_desc)
|
445
|
+
tool_desc_str = "\n".join(set(tool_desc))
|
434
446
|
_LOGGER.info(f"Tools Description:\n{tool_desc_str}")
|
435
447
|
tool_info_set = set(tool_info)
|
436
448
|
return "\n\n".join(tool_info_set)
|
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
|