create_conversation_from_msgs

Function create_conversation_from_msgs 

Source
fn create_conversation_from_msgs(
    conversation_messages: &[ChatbotConversationMessage],
    used_tokens: i32,
    token_budget: i32,
) -> ChatbotResult<String>
Expand description

Take ChatbotConversationMessages from a list until no more fit into the token budget. Transcribe the conversation’s messages’ content into a string.