APRG commited on
Commit
4e8d51c
·
verified ·
1 Parent(s): 8c05954

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +14 -0
tools.py CHANGED
@@ -8,6 +8,20 @@ import openpyxl
8
  import wikipedia
9
  import pandas as pd
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  class WikipediaTool(Tool):
12
  name = "wikipedia_api"
13
  description = "Returns the contents of a wikipedia article through a direct API call."
 
8
  import wikipedia
9
  import pandas as pd
10
 
11
+ class MediaTool(Tool):
12
+ name = "media_tool"
13
+ description = "Used for deciphering video and audio files."
14
+ inputs = {
15
+ "title": {
16
+ "type": "string",
17
+ "description": "The name of the media file to transcribe."
18
+ }
19
+ }
20
+ output_type = "string"
21
+
22
+ def forward(self, title: str):
23
+ return "this tool hasn't been implemented yet. Please return 0 if the task cannot be solved without knowing the contents of this file."
24
+
25
  class WikipediaTool(Tool):
26
  name = "wikipedia_api"
27
  description = "Returns the contents of a wikipedia article through a direct API call."