Lumintroll commited on
Commit
d9cca58
·
1 Parent(s): dfec607

Fixed tool name

Browse files
Files changed (1) hide show
  1. agent_tools.py +3 -2
agent_tools.py CHANGED
@@ -16,13 +16,14 @@ from langchain_community.retrievers import BM25Retriever
16
  #YouTube Transcriber
17
  @tool
18
  def youtube_transcriber(video_url: str) -> list:
19
-
20
  """Takes web address of YouTube video and generates a transcript. Each utterance is a sting in a chronologically ordered list.
 
21
  Args:
22
- url (str): Web address of YouTube video.
23
  Returns:
24
  list: Transcript as chronologically ordered list of strings.
25
  """
 
26
  video_id = video_url[video_url.find('v=')+2:]
27
  ytt_api = YouTubeTranscriptApi()
28
  raw = ytt_api.fetch(video_id)
 
16
  #YouTube Transcriber
17
  @tool
18
  def youtube_transcriber(video_url: str) -> list:
 
19
  """Takes web address of YouTube video and generates a transcript. Each utterance is a sting in a chronologically ordered list.
20
+
21
  Args:
22
+ video_url (str): Web address of YouTube video.
23
  Returns:
24
  list: Transcript as chronologically ordered list of strings.
25
  """
26
+
27
  video_id = video_url[video_url.find('v=')+2:]
28
  ytt_api = YouTubeTranscriptApi()
29
  raw = ytt_api.fetch(video_id)