File size: 1,647 Bytes
9a6a4dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
"""Check AGNO tools submodules"""

import pkgutil
import agno.tools

print("πŸ” Checking agno.tools submodules...")

try:
    # Check agno.tools submodules
    for importer, modname, ispkg in pkgutil.iter_modules(agno.tools.__path__, agno.tools.__name__ + '.'):
        print(f"πŸ“¦ Submodule: {modname}")
        
        # Try to import and check contents
        try:
            module = __import__(modname, fromlist=[''])
            contents = [item for item in dir(module) if not item.startswith('_')]
            if contents:
                print(f"   πŸ“‹ Contents: {contents[:5]}...")  # Show first 5 items
        except Exception as e:
            print(f"   ❌ Error importing {modname}: {e}")
            
    # Specifically look for YouTube-related tools
    print("\nπŸŽ₯ Looking for YouTube tools...")
    youtube_modules = [mod for mod in pkgutil.iter_modules(agno.tools.__path__, agno.tools.__name__ + '.') 
                      if 'youtube' in mod[1].lower()]
    
    if youtube_modules:
        for importer, modname, ispkg in youtube_modules:
            print(f"βœ… Found YouTube module: {modname}")
            try:
                module = __import__(modname, fromlist=[''])
                youtube_classes = [item for item in dir(module) if 'youtube' in item.lower() or 'YouTube' in item]
                print(f"   πŸ”§ YouTube classes: {youtube_classes}")
            except Exception as e:
                print(f"   ❌ Error importing {modname}: {e}")
    else:
        print("❌ No YouTube modules found")
        
except Exception as e:
    print(f"❌ Error checking agno.tools: {e}")