dkolarova commited on
Commit
b096a92
·
verified ·
1 Parent(s): 037e6b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -95,25 +95,32 @@ def read_pdf_file(file_path: str) -> str:
95
 
96
 
97
  @tool
98
- def process_file_transfer_result(log_files_path: str) -> Tuple:
99
  """
100
  This function processes the logs sent by the server.
101
  Args:
102
  log_files_path: The path to the logs.
 
 
 
103
  """
104
 
105
  return True, ''
106
 
107
 
108
  @tool
109
- def request_file_transfer(file_path: str, server: str) -> bool:
110
  """
111
  This function sends a request for a file transfer initiation.
112
  Args:
113
  file_path: The path to the source file.
 
 
 
 
114
  """
115
 
116
- return True
117
 
118
 
119
  @tool
 
95
 
96
 
97
  @tool
98
+ def process_file_transfer_result(log_files_path: str, job_id: str) -> Tuple:
99
  """
100
  This function processes the logs sent by the server.
101
  Args:
102
  log_files_path: The path to the logs.
103
+ job_id: The job identifier of the initated file transfer
104
+ Returns:
105
+ True if the transfer suceeded and the corresponding message if an error occured.
106
  """
107
 
108
  return True, ''
109
 
110
 
111
  @tool
112
+ def request_file_transfer(file_path: str, server: str) -> str:
113
  """
114
  This function sends a request for a file transfer initiation.
115
  Args:
116
  file_path: The path to the source file.
117
+ server: identifier of the file transfer server
118
+ Returns:
119
+ The job identifier of the initated file transfer
120
+
121
  """
122
 
123
+ return 'trans001'
124
 
125
 
126
  @tool