Skip to main content

Module content

Module content 

Source
Expand description

Content generation for tweets, replies, and threads.

Uses an LLM provider to produce content that matches the user’s business profile and adheres to X’s format constraints. The frameworks module provides reply archetypes, tweet formats, and thread structures that shape LLM prompts for varied output.

Re-exports§

pub use frameworks::ReplyArchetype;
pub use frameworks::ThreadStructure;
pub use frameworks::TweetFormat;
pub use generator::ContentGenerator;
pub use generator::GenerationOutput;
pub use generator::ThreadGenerationOutput;
pub use length::truncate_at_sentence;
pub use length::tweet_weighted_len;
pub use length::validate_tweet_length;
pub use length::MAX_TWEET_CHARS;
pub use length::TCO_URL_LENGTH;
pub use thread::deserialize_blocks_from_content;
pub use thread::serialize_blocks_for_storage;
pub use thread::validate_thread_blocks;
pub use thread::ThreadBlock;
pub use thread::ThreadBlockError;
pub use thread::ThreadBlocksPayload;
pub use thread::MAX_MEDIA_PER_BLOCK;

Modules§

frameworks
Content frameworks for varied, human-sounding output.
generator
High-level content generation combining LLM providers with business context.
length
URL-aware tweet length calculation.
thread
Thread block types and validation for structured thread composition.