pub fn commit_assistant_message(
partial_text: String,
partial_reasoning: String,
tool_calls: Vec<ToolCall>,
provider_continuation: Option<ProviderContinuation>,
now: DateTime<Local>,
continuation: bool,
) -> ChatMessageExpand description
Build the committed assistant message from a Generating state’s
accumulated content. Safe to call with empty text (the model might
have responded with only tool calls). Returns the message plus the
provider continuation state needed for the next model call.