+14
register_tools.py
+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
23
25
24
26
letta_config = get_letta_config()
25
27
logging.basicConfig(level=logging.INFO)
···
114
116
"args_schema": WebpageArgs,
115
117
"description": "Fetch a webpage and convert it to markdown/text format using Jina AI reader",
116
118
"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"]
117
131
},
118
132
]
119
133