a digital person for bluesky

Move X tool registration to register_x_tools.py

- Remove X tools from general register_tools.py
- Add post_to_x tool to register_x_tools.py
- Tool creates standalone posts on X (not replies)
- Properly organized with other X-specific tools

+11 -14
-14
register_tools.py
··· 20 20 from tools.whitewind import create_whitewind_blog_post, WhitewindPostArgs 21 21 from tools.ack import annotate_ack, AnnotateAckArgs 22 22 from tools.webpage import fetch_webpage, WebpageArgs 23 - from tools.x_post import post_to_x, PostToXArgs 24 - from tools.x_thread import add_post_to_x_thread, XThreadPostArgs 25 23 26 24 letta_config = get_letta_config() 27 25 logging.basicConfig(level=logging.INFO) ··· 116 114 "args_schema": WebpageArgs, 117 115 "description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader", 118 116 "tags": ["web", "fetch", "webpage", "markdown", "jina"] 119 - }, 120 - { 121 - "func": post_to_x, 122 - "args_schema": PostToXArgs, 123 - "description": "Create a new standalone post on X (Twitter)", 124 - "tags": ["x", "twitter", "post", "create"] 125 - }, 126 - { 127 - "func": add_post_to_x_thread, 128 - "args_schema": XThreadPostArgs, 129 - "description": "Add a single post to the current X reply thread atomically", 130 - "tags": ["x", "twitter", "reply", "thread", "atomic"] 131 117 }, 132 118 ] 133 119
+11
register_x_tools.py
··· 23 23 # Import X thread tool 24 24 from tools.x_thread import add_post_to_x_thread, XThreadPostArgs 25 25 26 + # Import X post tool 27 + from tools.x_post import post_to_x, PostToXArgs 28 + 26 29 # Import X search tool 27 30 from tools.search_x import search_x_posts, SearchXArgs 28 31 ··· 109 112 "args_schema": XThreadPostArgs, 110 113 "description": "Add a single post to the current X reply thread atomically", 111 114 "tags": ["x", "twitter", "reply", "thread", "atomic"] 115 + }, 116 + 117 + # X post tool 118 + { 119 + "func": post_to_x, 120 + "args_schema": PostToXArgs, 121 + "description": "Create a new standalone post on X (Twitter)", 122 + "tags": ["x", "twitter", "post", "create", "standalone"] 112 123 }, 113 124 114 125 # X search tool