a digital person for bluesky
at main 2.3 kB view raw
1#!/usr/bin/env python3 2""" 3Show the current capabilities of both agents. 4""" 5 6import os 7from letta_client import Letta 8 9def show_agent_capabilities(): 10 """Display the capabilities of both agents.""" 11 12 client = Letta(token=os.environ["LETTA_API_KEY"]) 13 14 print("🤖 LETTA AGENT CAPABILITIES") 15 print("=" * 50) 16 17 # Profile Researcher Agent 18 researchers = client.agents.list(name="profile-researcher") 19 if researchers: 20 researcher = researchers[0] 21 print(f"\n📊 PROFILE RESEARCHER AGENT") 22 print(f" ID: {researcher.id}") 23 print(f" Name: {researcher.name}") 24 25 researcher_tools = client.agents.tools.list(agent_id=researcher.id) 26 print(f" Tools ({len(researcher_tools)}):") 27 for tool in researcher_tools: 28 print(f" - {tool.name}") 29 30 researcher_blocks = client.agents.blocks.list(agent_id=researcher.id) 31 print(f" Memory Blocks ({len(researcher_blocks)}):") 32 for block in researcher_blocks: 33 print(f" - {block.label}") 34 35 # Void Agent 36 voids = client.agents.list(name="void") 37 if voids: 38 void = voids[0] 39 print(f"\n🌌 VOID AGENT") 40 print(f" ID: {void.id}") 41 print(f" Name: {void.name}") 42 43 void_tools = client.agents.tools.list(agent_id=void.id) 44 print(f" Tools ({len(void_tools)}):") 45 for tool in void_tools: 46 print(f" - {tool.name}") 47 48 void_blocks = client.agents.blocks.list(agent_id=void.id) 49 print(f" Memory Blocks ({len(void_blocks)}):") 50 for block in void_blocks: 51 print(f" - {block.label}") 52 53 print(f"\n🔄 WORKFLOW") 54 print(f" 1. Profile Researcher: attach_user_block → research_bluesky_profile → update_user_block → detach_user_block") 55 print(f" 2. Void Agent: Can attach/detach same user blocks for personalized interactions") 56 print(f" 3. Shared Memory: Both agents can access the same user-specific blocks") 57 58 print(f"\n💡 USAGE EXAMPLES") 59 print(f" Profile Researcher: 'Research @cameron.pfiffer.org and store findings'") 60 print(f" Void Agent: 'Attach user block for cameron.pfiffer.org before responding'") 61 62if __name__ == "__main__": 63 show_agent_capabilities()