Update agents/tools/ai_tools.py
Browse files- agents/tools/ai_tools.py +8 -8
agents/tools/ai_tools.py
CHANGED
|
@@ -144,7 +144,7 @@ class AITools():
|
|
| 144 |
result = response.text
|
| 145 |
|
| 146 |
print(f"๐ ๏ธ AITools: web_search_tool: model={model}")
|
| 147 |
-
if
|
| 148 |
print(f"๐ ๏ธ AITools: web_search_tool: thinking_level={THINKING_LEVEL_WEB_SEARCH}")
|
| 149 |
print(f"๐ ๏ธ AITools: web_search_tool: result={result}")
|
| 150 |
|
|
@@ -293,7 +293,7 @@ class AITools():
|
|
| 293 |
)
|
| 294 |
|
| 295 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: model={model}")
|
| 296 |
-
if
|
| 297 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: thinking_level={THINKING_LEVEL_YOUTUBE_ANALYSIS}")
|
| 298 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: result={result}")
|
| 299 |
|
|
@@ -358,7 +358,7 @@ class AITools():
|
|
| 358 |
result = response.text
|
| 359 |
|
| 360 |
print(f"๐ ๏ธ AITools: document_analysis_tool: model={model}")
|
| 361 |
-
if
|
| 362 |
print(f"๐ ๏ธ AITools: document_analysis_tool: thinking_level={THINKING_LEVEL_DOCUMENT_ANALYSIS}")
|
| 363 |
print(f"๐ ๏ธ AITools: document_analysis_tool: result={result}")
|
| 364 |
|
|
@@ -408,7 +408,7 @@ class AITools():
|
|
| 408 |
result = AITools._extract_execution_result(response)
|
| 409 |
|
| 410 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: model={model}")
|
| 411 |
-
if
|
| 412 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: thinking_level={THINKING_LEVEL_CODE_GENERATION}")
|
| 413 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: result={result}")
|
| 414 |
|
|
@@ -461,7 +461,7 @@ class AITools():
|
|
| 461 |
result = AITools._extract_execution_result(response)
|
| 462 |
|
| 463 |
print(f"๐ ๏ธ AITools: code_execution_tool: model={model}")
|
| 464 |
-
if
|
| 465 |
print(f"๐ ๏ธ AITools: code_execution_tool: thinking_level={THINKING_LEVEL_CODE_EXECUTION}")
|
| 466 |
print(f"๐ ๏ธ AITools: code_execution_tool: result={result}")
|
| 467 |
|
|
@@ -538,7 +538,7 @@ class AITools():
|
|
| 538 |
board = chess.Board(result) # FEN validation
|
| 539 |
|
| 540 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: model={model}")
|
| 541 |
-
if
|
| 542 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: thinking_level={THINKING_LEVEL_IMAGE_TO_FEN}")
|
| 543 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: result={result}")
|
| 544 |
|
|
@@ -613,7 +613,7 @@ class AITools():
|
|
| 613 |
break
|
| 614 |
|
| 615 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: model={model}")
|
| 616 |
-
if
|
| 617 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: thinking_level={THINKING_LEVEL_ALGEBRAIC_NOTATION}")
|
| 618 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: result={result}")
|
| 619 |
|
|
@@ -665,7 +665,7 @@ class AITools():
|
|
| 665 |
result = response.text.strip()
|
| 666 |
|
| 667 |
print(f"๐ ๏ธ AITools: final_answer_tool: model={model}")
|
| 668 |
-
if
|
| 669 |
print(f"๐ ๏ธ AITools: final_answer_tool: thinking_level={THINKING_LEVEL_FINAL_ANSWER}")
|
| 670 |
print(f"๐ ๏ธ AITools: final_answer_tool: result={result}")
|
| 671 |
|
|
|
|
| 144 |
result = response.text
|
| 145 |
|
| 146 |
print(f"๐ ๏ธ AITools: web_search_tool: model={model}")
|
| 147 |
+
if model != LLM_FALLBACK:
|
| 148 |
print(f"๐ ๏ธ AITools: web_search_tool: thinking_level={THINKING_LEVEL_WEB_SEARCH}")
|
| 149 |
print(f"๐ ๏ธ AITools: web_search_tool: result={result}")
|
| 150 |
|
|
|
|
| 293 |
)
|
| 294 |
|
| 295 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: model={model}")
|
| 296 |
+
if model != LLM_FALLBACK:
|
| 297 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: thinking_level={THINKING_LEVEL_YOUTUBE_ANALYSIS}")
|
| 298 |
print(f"๐ ๏ธ AITools: youtube_analysis_tool: result={result}")
|
| 299 |
|
|
|
|
| 358 |
result = response.text
|
| 359 |
|
| 360 |
print(f"๐ ๏ธ AITools: document_analysis_tool: model={model}")
|
| 361 |
+
if model != LLM_FALLBACK:
|
| 362 |
print(f"๐ ๏ธ AITools: document_analysis_tool: thinking_level={THINKING_LEVEL_DOCUMENT_ANALYSIS}")
|
| 363 |
print(f"๐ ๏ธ AITools: document_analysis_tool: result={result}")
|
| 364 |
|
|
|
|
| 408 |
result = AITools._extract_execution_result(response)
|
| 409 |
|
| 410 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: model={model}")
|
| 411 |
+
if model != LLM_FALLBACK:
|
| 412 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: thinking_level={THINKING_LEVEL_CODE_GENERATION}")
|
| 413 |
print(f"๐ ๏ธ AITools: code_generation_and_execution_tool: result={result}")
|
| 414 |
|
|
|
|
| 461 |
result = AITools._extract_execution_result(response)
|
| 462 |
|
| 463 |
print(f"๐ ๏ธ AITools: code_execution_tool: model={model}")
|
| 464 |
+
if model != LLM_FALLBACK:
|
| 465 |
print(f"๐ ๏ธ AITools: code_execution_tool: thinking_level={THINKING_LEVEL_CODE_EXECUTION}")
|
| 466 |
print(f"๐ ๏ธ AITools: code_execution_tool: result={result}")
|
| 467 |
|
|
|
|
| 538 |
board = chess.Board(result) # FEN validation
|
| 539 |
|
| 540 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: model={model}")
|
| 541 |
+
if model != LLM_FALLBACK:
|
| 542 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: thinking_level={THINKING_LEVEL_IMAGE_TO_FEN}")
|
| 543 |
print(f"๐ ๏ธ AITools: img_to_fen_tool: result={result}")
|
| 544 |
|
|
|
|
| 613 |
break
|
| 614 |
|
| 615 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: model={model}")
|
| 616 |
+
if model != LLM_FALLBACK:
|
| 617 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: thinking_level={THINKING_LEVEL_ALGEBRAIC_NOTATION}")
|
| 618 |
print(f"๐ ๏ธ AITools: algebraic_notation_tool: result={result}")
|
| 619 |
|
|
|
|
| 665 |
result = response.text.strip()
|
| 666 |
|
| 667 |
print(f"๐ ๏ธ AITools: final_answer_tool: model={model}")
|
| 668 |
+
if model != LLM_FALLBACK:
|
| 669 |
print(f"๐ ๏ธ AITools: final_answer_tool: thinking_level={THINKING_LEVEL_FINAL_ANSWER}")
|
| 670 |
print(f"๐ ๏ธ AITools: final_answer_tool: result={result}")
|
| 671 |
|