Skip to main content

Module conversation

Module conversation 

Source

Modules§

message

Structs§

Conversation
InvalidConversation

Functions§

debug_conversation_fix
effective_role
fix_conversation
Fix a conversation that we’re about to send to an LLM. So the last and first messages should always be from the user.
merge_consecutive_messages