Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
a2489c8
1
Parent(s):
21cf782
fix
Browse files
analyse_chess_position_tool.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from langchain_core.tools import tool
|
2 |
import requests
|
3 |
|
4 |
-
@tool(return_direct=True)
|
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.
|
|
|
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.
|
chess_image_to_fen_tool.py
CHANGED
@@ -6,7 +6,6 @@ from utils import get_base64
|
|
6 |
import requests
|
7 |
import json
|
8 |
|
9 |
-
@tool(return_direct=True)
|
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.
|
|
|
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.
|