The following agent will provide a summary of a YouTube video.
cookbook/tools/youtube_tools.py
from phi.agent import Agentfrom phi.tools.youtube_tools import YouTubeToolsagent = Agent( tools=[YouTubeTools()], show_tool_calls=True, description="You are a YouTube agent. Obtain the captions of a YouTube video and answer questions.",)agent.print_response("Summarize this video https://www.youtube.com/watch?v=Iv9dewmcFbs&t", markdown=True)