Skip to main content

execute

Function execute 

Source
pub async fn execute(
    db: &DbPool,
    llm: &Arc<dyn LlmProvider>,
    config: &Config,
    input: DraftInput,
) -> Result<Vec<DraftResult>, WorkflowError>
Expand description

Execute the draft step: fetch tweets, generate replies, check safety.

Returns one DraftResult per candidate. Individual failures don’t abort the batch — they produce DraftResult::Error entries.