agentchat.contrib.captainagent.tools.information_retrieval
agentchat.contrib.captainagent.tools.information_retrieval.get_youtube_caption
get_youtube_caption
Retrieves the captions for a YouTube video.
Arguments:
videoId
str - The ID of the YouTube video.
Returns:
str
- The captions of the YouTube video in text format.
Raises:
KeyError
- If the RAPID_API_KEY environment variable is not set.