Structs§
- Chatbot
Next 🔒Message Suggestion Response - Shape of the structured LLM output response, defined by the JSONSchema in response_format
Constants§
- RECENT_
MESSAGES_ 🔒IN_ PROMPT - How much of the transcript the suggestion prompt carries. A suggestion only answers the recent thread, so a long conversation does not pay to send all of it.
- RESPONSE_
FORMAT_ NAME - Names this feature’s structured output to Azure. The test-mode mock Azure API picks its canned answer for this feature by this name.
- 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
- response_
format 🔒 - The structured output format the suggestion LLM is asked to answer in. Must stay in sync with ChatbotNextMessageSuggestionResponse.