Module message_suggestion

Module message_suggestion 

Source

Structs§

ChatbotNextMessageSuggestionResponse 🔒
Shape of the structured LLM output response, defined by the JSONSchema in generate_suggested_messages

Constants§

SYSTEM_PROMPT 🔒
System prompt instructions for generating suggested next messages
USER_PROMPT
User prompt instructions for generating suggested next messages

Functions§

create_conversation_from_msgs 🔒
Take ChatbotConversationMessages from a list until no more fit into the token budget. Transcribe the conversation’s messages’ content into a string.
create_msg_string 🔒
generate_suggested_messages
Calls an LLM and generates suggested messages for a chatbot conversation