mikethor007 commited on
Commit
471d603
·
verified ·
1 Parent(s): e732c32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- 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.
@@ -275,6 +275,8 @@ class BasicAgent:
275
  def __call__(self, question: str, task_id: str) -> str:
276
  print(f"Agent received question : {question}...")
277
 
 
 
278
  messages = {
279
  "messages": [
280
  {
@@ -284,6 +286,8 @@ class BasicAgent:
284
  ]
285
  }
286
 
 
 
287
  events = supervisor.stream(
288
  messages,
289
  stream_mode="values",
 
79
  """
80
  Convert chess image to FEN (Forsyth-Edwards Notation) notation.
81
  Args:
82
+ task_id: Task ID necessary to retrieve 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.
 
275
  def __call__(self, question: str, task_id: str) -> str:
276
  print(f"Agent received question : {question}...")
277
 
278
+ question = "Question: " + question + " Task ID: " + task_id
279
+
280
  messages = {
281
  "messages": [
282
  {
 
286
  ]
287
  }
288
 
289
+ print (f"Input messages: {messages}.")
290
+
291
  events = supervisor.stream(
292
  messages,
293
  stream_mode="values",