bstraehle commited on
Commit
da277a6
ยท
verified ยท
1 Parent(s): 47d412f

Update agents/tools/ai_tools.py

Browse files
Files changed (1) hide show
  1. 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 current_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,7 +293,7 @@ class AITools():
293
  )
294
 
295
  print(f"๐Ÿ› ๏ธ AITools: youtube_analysis_tool: model={model}")
296
- if current_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,7 +358,7 @@ class AITools():
358
  result = response.text
359
 
360
  print(f"๐Ÿ› ๏ธ AITools: document_analysis_tool: model={model}")
361
- if current_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,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 current_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,7 +461,7 @@ class AITools():
461
  result = AITools._extract_execution_result(response)
462
 
463
  print(f"๐Ÿ› ๏ธ AITools: code_execution_tool: model={model}")
464
- if current_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,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 current_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,7 +613,7 @@ class AITools():
613
  break
614
 
615
  print(f"๐Ÿ› ๏ธ AITools: algebraic_notation_tool: model={model}")
616
- if current_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,7 +665,7 @@ class AITools():
665
  result = response.text.strip()
666
 
667
  print(f"๐Ÿ› ๏ธ AITools: final_answer_tool: model={model}")
668
- if current_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
 
 
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