Skip to main content

tuitbot_core/content/
mod.rs

1//! Content generation for tweets, replies, and threads.
2//!
3//! Uses an LLM provider to produce content that matches the user's
4//! business profile and adheres to X's format constraints.
5//! The `frameworks` module provides reply archetypes, tweet formats,
6//! and thread structures that shape LLM prompts for varied output.
7
8pub mod frameworks;
9pub mod generator;
10pub mod length;
11pub mod thread;
12
13pub use frameworks::{ReplyArchetype, ThreadStructure, TweetFormat};
14pub use generator::{ContentGenerator, GenerationOutput, ThreadGenerationOutput};
15pub use length::{
16    truncate_at_sentence, tweet_weighted_len, validate_tweet_length, MAX_TWEET_CHARS,
17    TCO_URL_LENGTH,
18};
19pub use thread::{
20    deserialize_blocks_from_content, serialize_blocks_for_storage, validate_thread_blocks,
21    ThreadBlock, ThreadBlockError, ThreadBlocksPayload, MAX_MEDIA_PER_BLOCK,
22};