diff --git a/register_tools.py b/register_tools.py index 41a88da..0f677d1 100755 --- a/register_tools.py +++ b/register_tools.py @@ -20,8 +20,6 @@ from tools.ignore import ignore_notification, IgnoreNotificationArgs from tools.whitewind import create_whitewind_blog_post, WhitewindPostArgs from tools.ack import annotate_ack, AnnotateAckArgs from tools.webpage import fetch_webpage, WebpageArgs -from tools.x_post import post_to_x, PostToXArgs -from tools.x_thread import add_post_to_x_thread, XThreadPostArgs letta_config = get_letta_config() logging.basicConfig(level=logging.INFO) @@ -117,18 +115,6 @@ TOOL_CONFIGS = [ "description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader", "tags": ["web", "fetch", "webpage", "markdown", "jina"] }, - { - "func": post_to_x, - "args_schema": PostToXArgs, - "description": "Create a new standalone post on X (Twitter)", - "tags": ["x", "twitter", "post", "create"] - }, - { - "func": add_post_to_x_thread, - "args_schema": XThreadPostArgs, - "description": "Add a single post to the current X reply thread atomically", - "tags": ["x", "twitter", "reply", "thread", "atomic"] - }, ] diff --git a/register_x_tools.py b/register_x_tools.py index ff1e1e2..985c899 100644 --- a/register_x_tools.py +++ b/register_x_tools.py @@ -23,6 +23,9 @@ from tools.webpage import fetch_webpage, WebpageArgs # Import X thread tool from tools.x_thread import add_post_to_x_thread, XThreadPostArgs +# Import X post tool +from tools.x_post import post_to_x, PostToXArgs + # Import X search tool from tools.search_x import search_x_posts, SearchXArgs @@ -111,6 +114,14 @@ X_TOOL_CONFIGS = [ "tags": ["x", "twitter", "reply", "thread", "atomic"] }, + # X post tool + { + "func": post_to_x, + "args_schema": PostToXArgs, + "description": "Create a new standalone post on X (Twitter)", + "tags": ["x", "twitter", "post", "create", "standalone"] + }, + # X search tool { "func": search_x_posts,