Skip to main content

send_chat_request_and_parse_stream

Function send_chat_request_and_parse_stream 

Source
pub async fn send_chat_request_and_parse_stream(
    pool: PgPool,
    app_configuration: &ApplicationConfiguration,
    chatbot_configuration_id: Uuid,
    conversation_id: Uuid,
    message: &str,
    user_context: ChatbotUserContext,
) -> ChatbotResult<Pin<Box<dyn Stream<Item = ChatbotResult<Bytes>> + Send>>>
Expand description

Send and parse a Chatbot message and response and stream it to the user. Controls the whole operation.