YouTubeTools enable an Agent to access captions and metadata of YouTube videos, when provided with a video URL.Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The following example requires theyoutube_transcript_api library.
Example
The following agent will provide a summary of a YouTube video.cookbook/tools/youtube_tools.py
Toolkit Params
| Param | Type | Default | Description |
|---|---|---|---|
get_video_captions | bool | True | Enables the functionality to retrieve video captions. |
get_video_data | bool | True | Enables the functionality to retrieve video metadata and other related data. |
languages | List[str] | - | Specifies the list of languages for which data should be retrieved, if applicable. |
Toolkit Functions
| Function | Description |
|---|---|
get_youtube_video_captions | This function retrieves the captions of a YouTube video. |
get_youtube_video_data | This function retrieves the metadata of a YouTube video. |