Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def chess_image_to_fen_tool(task_id:str, current_player: Literal["black", "white
|
|
| 79 |
"""
|
| 80 |
Convert chess image to FEN (Forsyth-Edwards Notation) notation.
|
| 81 |
Args:
|
| 82 |
-
|
| 83 |
current_player: Whose turn it is to play. Must be either 'black' or 'white'.
|
| 84 |
Returns:
|
| 85 |
JSON with FEN (Forsyth-Edwards Notation) string representing the current board position.
|
|
@@ -272,7 +272,7 @@ class BasicAgent:
|
|
| 272 |
# tools = [search_web_tool]
|
| 273 |
# chat_with_tools = chat.bind_tools(tools)
|
| 274 |
|
| 275 |
-
def __call__(self, question: str,
|
| 276 |
print(f"Agent received question : {question}...")
|
| 277 |
|
| 278 |
messages = {
|
|
|
|
| 79 |
"""
|
| 80 |
Convert chess image to FEN (Forsyth-Edwards Notation) notation.
|
| 81 |
Args:
|
| 82 |
+
task_id: Task ID necessary to retrieving the image with the chess board position.
|
| 83 |
current_player: Whose turn it is to play. Must be either 'black' or 'white'.
|
| 84 |
Returns:
|
| 85 |
JSON with FEN (Forsyth-Edwards Notation) string representing the current board position.
|
|
|
|
| 272 |
# tools = [search_web_tool]
|
| 273 |
# chat_with_tools = chat.bind_tools(tools)
|
| 274 |
|
| 275 |
+
def __call__(self, question: str, task_id: str) -> str:
|
| 276 |
print(f"Agent received question : {question}...")
|
| 277 |
|
| 278 |
messages = {
|