Skip to main content

Module drafts

Module drafts 

Source
Expand description

Draft lifecycle orchestration: send_draft → update_draft → finalize_draft.

When stream_mode is enabled, the agent sends incremental “draft” messages that are progressively updated as the response streams in. The DraftTracker manages the state for each in-flight draft and throttles update calls to respect draft_update_interval_ms.

Structs§

DraftKey
Identifies a draft by (recipient, channel_name).
DraftTracker
Tracks in-flight drafts across channels and throttles updates.