Update agents/tools/ai_tools.py
Browse files- agents/tools/ai_tools.py +9 -9
agents/tools/ai_tools.py
CHANGED
|
@@ -78,7 +78,7 @@ class AITools():
|
|
| 78 |
result = response.text
|
| 79 |
|
| 80 |
print(f"๐ ๏ธ AITools: {tool_name}: model={model}")
|
| 81 |
-
print(f"๐ ๏ธ AITools: {tool_name}: thinking_level={THINKING_LEVEL_MEDIA_ANALYSIS}")
|
| 82 |
print(f"๐ ๏ธ AITools: {tool_name}: result={result}")
|
| 83 |
|
| 84 |
return result
|
|
@@ -127,7 +127,7 @@ class AITools():
|
|
| 127 |
result = response.text
|
| 128 |
|
| 129 |
print(f"๐ ๏ธ AITools: web_search_tool: model={LLM_WEB_SEARCH}")
|
| 130 |
-
print(f"๐ ๏ธ AITools: web_search_tool: thinking_level={THINKING_LEVEL_WEB_SEARCH}")
|
| 131 |
print(f"๐ ๏ธ AITools: web_search_tool: result={result}")
|
| 132 |
|
| 133 |
return result
|
|
@@ -267,7 +267,7 @@ class AITools():
|
|
| 267 |
)
|
| 268 |
|
| 269 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: model={LLM_YOUTUBE_ANALYSIS}")
|
| 270 |
-
print(f"๐ ๏ธ AITools: youtube_analysis_tool: thinking_level={THINKING_LEVEL_YOUTUBE_ANALYSIS}")
|
| 271 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: result={result}")
|
| 272 |
|
| 273 |
return result
|
|
@@ -323,7 +323,7 @@ class AITools():
|
|
| 323 |
result = response.text
|
| 324 |
|
| 325 |
print(f"๐ ๏ธ AITools: document_analysis_tool: model={LLM_DOCUMENT_ANALYSIS}")
|
| 326 |
-
print(f"๐ ๏ธ AITools: document_analysis_tool: thinking_level={THINKING_LEVEL_DOCUMENT_ANALYSIS}")
|
| 327 |
print(f"๐ ๏ธ AITools: document_analysis_tool: result={result}")
|
| 328 |
|
| 329 |
return result
|
|
@@ -365,7 +365,7 @@ class AITools():
|
|
| 365 |
result = AITools._extract_execution_result(response)
|
| 366 |
|
| 367 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: model={LLM_CODE_GENERATION}")
|
| 368 |
-
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: thinking_level={THINKING_LEVEL_CODE_GENERATION}")
|
| 369 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: result={result}")
|
| 370 |
|
| 371 |
return result
|
|
@@ -410,7 +410,7 @@ class AITools():
|
|
| 410 |
result = AITools._extract_execution_result(response)
|
| 411 |
|
| 412 |
print(f"๐ ๏ธ AITools: code_execution_tool: model={LLM_CODE_EXECUTION}")
|
| 413 |
-
print(f"๐ ๏ธ AITools: code_execution_tool: thinking_level={THINKING_LEVEL_CODE_EXECUTION}")
|
| 414 |
print(f"๐ ๏ธ AITools: code_execution_tool: result={result}")
|
| 415 |
|
| 416 |
return result
|
|
@@ -478,7 +478,7 @@ class AITools():
|
|
| 478 |
board = chess.Board(result) # FEN validation
|
| 479 |
|
| 480 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: model={LLM_IMAGE_TO_FEN}")
|
| 481 |
-
print(f"๐ ๏ธ AITools: img_to_fen_tool: thinking_level={THINKING_LEVEL_IMAGE_TO_FEN}")
|
| 482 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: result={result}")
|
| 483 |
|
| 484 |
return result
|
|
@@ -544,7 +544,7 @@ class AITools():
|
|
| 544 |
break
|
| 545 |
|
| 546 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: model={LLM_ALGEBRAIC_NOTATION}")
|
| 547 |
-
print(f"๐ ๏ธ AITools: algebraic_notation_tool: thinking_level={THINKING_LEVEL_ALGEBRAIC_NOTATION}")
|
| 548 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: result={result}")
|
| 549 |
|
| 550 |
return result
|
|
@@ -587,7 +587,7 @@ class AITools():
|
|
| 587 |
result = response.text.strip()
|
| 588 |
|
| 589 |
print(f"๐ ๏ธ AITools: final_answer_tool: model={LLM_FINAL_ANSWER}")
|
| 590 |
-
print(f"๐ ๏ธ AITools: final_answer_tool: thinking_level={THINKING_LEVEL_FINAL_ANSWER}")
|
| 591 |
print(f"๐ ๏ธ AITools: final_answer_tool: result={result}")
|
| 592 |
|
| 593 |
return result
|
|
|
|
| 78 |
result = response.text
|
| 79 |
|
| 80 |
print(f"๐ ๏ธ AITools: {tool_name}: model={model}")
|
| 81 |
+
#print(f"๐ ๏ธ AITools: {tool_name}: thinking_level={THINKING_LEVEL_MEDIA_ANALYSIS}")
|
| 82 |
print(f"๐ ๏ธ AITools: {tool_name}: result={result}")
|
| 83 |
|
| 84 |
return result
|
|
|
|
| 127 |
result = response.text
|
| 128 |
|
| 129 |
print(f"๐ ๏ธ AITools: web_search_tool: model={LLM_WEB_SEARCH}")
|
| 130 |
+
#print(f"๐ ๏ธ AITools: web_search_tool: thinking_level={THINKING_LEVEL_WEB_SEARCH}")
|
| 131 |
print(f"๐ ๏ธ AITools: web_search_tool: result={result}")
|
| 132 |
|
| 133 |
return result
|
|
|
|
| 267 |
)
|
| 268 |
|
| 269 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: model={LLM_YOUTUBE_ANALYSIS}")
|
| 270 |
+
#print(f"๐ ๏ธ AITools: youtube_analysis_tool: thinking_level={THINKING_LEVEL_YOUTUBE_ANALYSIS}")
|
| 271 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: result={result}")
|
| 272 |
|
| 273 |
return result
|
|
|
|
| 323 |
result = response.text
|
| 324 |
|
| 325 |
print(f"๐ ๏ธ AITools: document_analysis_tool: model={LLM_DOCUMENT_ANALYSIS}")
|
| 326 |
+
#print(f"๐ ๏ธ AITools: document_analysis_tool: thinking_level={THINKING_LEVEL_DOCUMENT_ANALYSIS}")
|
| 327 |
print(f"๐ ๏ธ AITools: document_analysis_tool: result={result}")
|
| 328 |
|
| 329 |
return result
|
|
|
|
| 365 |
result = AITools._extract_execution_result(response)
|
| 366 |
|
| 367 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: model={LLM_CODE_GENERATION}")
|
| 368 |
+
#print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: thinking_level={THINKING_LEVEL_CODE_GENERATION}")
|
| 369 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: result={result}")
|
| 370 |
|
| 371 |
return result
|
|
|
|
| 410 |
result = AITools._extract_execution_result(response)
|
| 411 |
|
| 412 |
print(f"๐ ๏ธ AITools: code_execution_tool: model={LLM_CODE_EXECUTION}")
|
| 413 |
+
#print(f"๐ ๏ธ AITools: code_execution_tool: thinking_level={THINKING_LEVEL_CODE_EXECUTION}")
|
| 414 |
print(f"๐ ๏ธ AITools: code_execution_tool: result={result}")
|
| 415 |
|
| 416 |
return result
|
|
|
|
| 478 |
board = chess.Board(result) # FEN validation
|
| 479 |
|
| 480 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: model={LLM_IMAGE_TO_FEN}")
|
| 481 |
+
#print(f"๐ ๏ธ AITools: img_to_fen_tool: thinking_level={THINKING_LEVEL_IMAGE_TO_FEN}")
|
| 482 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: result={result}")
|
| 483 |
|
| 484 |
return result
|
|
|
|
| 544 |
break
|
| 545 |
|
| 546 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: model={LLM_ALGEBRAIC_NOTATION}")
|
| 547 |
+
#print(f"๐ ๏ธ AITools: algebraic_notation_tool: thinking_level={THINKING_LEVEL_ALGEBRAIC_NOTATION}")
|
| 548 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: result={result}")
|
| 549 |
|
| 550 |
return result
|
|
|
|
| 587 |
result = response.text.strip()
|
| 588 |
|
| 589 |
print(f"๐ ๏ธ AITools: final_answer_tool: model={LLM_FINAL_ANSWER}")
|
| 590 |
+
#print(f"๐ ๏ธ AITools: final_answer_tool: thinking_level={THINKING_LEVEL_FINAL_ANSWER}")
|
| 591 |
print(f"๐ ๏ธ AITools: final_answer_tool: result={result}")
|
| 592 |
|
| 593 |
return result
|