Update agents/tools/ai_tools.py
Browse files- agents/tools/ai_tools.py +3 -1
agents/tools/ai_tools.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import os
|
| 2 |
from agents.models.llms import (
|
| 3 |
LLM_WEB_SEARCH,
|
| 4 |
LLM_IMAGE_TO_FEN,
|
|
@@ -117,6 +117,8 @@ class AITools():
|
|
| 117 |
|
| 118 |
fen = response.text.strip()
|
| 119 |
|
|
|
|
|
|
|
| 120 |
print(f"🤖 FEN: {fen}")
|
| 121 |
|
| 122 |
return fen;
|
|
|
|
| 1 |
+
import chess, os
|
| 2 |
from agents.models.llms import (
|
| 3 |
LLM_WEB_SEARCH,
|
| 4 |
LLM_IMAGE_TO_FEN,
|
|
|
|
| 117 |
|
| 118 |
fen = response.text.strip()
|
| 119 |
|
| 120 |
+
board = chess.Board(fen) # FEN validation
|
| 121 |
+
|
| 122 |
print(f"🤖 FEN: {fen}")
|
| 123 |
|
| 124 |
return fen;
|