Alexandre Gazola commited on
Commit
c623f30
·
1 Parent(s): a2489c8
analyse_chess_position_tool.py CHANGED
@@ -1,6 +1,7 @@
1
  from langchain_core.tools import tool
2
  import requests
3
 
 
4
  def get_chess_best_move(fen: str) -> str:
5
  """
6
  Given the description of a chess board using FEN notation, returns the next best move.
 
1
  from langchain_core.tools import tool
2
  import requests
3
 
4
+ @tool
5
  def get_chess_best_move(fen: str) -> str:
6
  """
7
  Given the description of a chess board using FEN notation, returns the next best move.
chess_image_to_fen_tool.py CHANGED
@@ -6,6 +6,7 @@ from utils import get_base64
6
  import requests
7
  import json
8
 
 
9
  def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black", "white"]) -> Dict[str,str]:
10
  """
11
  Convert chess image to FEN (Forsyth-Edwards Notation) notation.
 
6
  import requests
7
  import json
8
 
9
+ @tool
10
  def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black", "white"]) -> Dict[str,str]:
11
  """
12
  Convert chess image to FEN (Forsyth-Edwards Notation) notation.