class Chatbot()
def ask(prompt, conversation_id=None, parent_id=None, gen_title=False)
Ask a question to the chatbot
Arguments:
prompt
: Stringconversation_id
: UUIDparent_id
: UUIDgen_title
: Boolean
def get_conversations(offset=0, limit=20)
Get conversations
Arguments:
offset
: Integerlimit
: Integer
def get_msg_history(id)
Get message history
Arguments:
id
: UUID of conversation
def change_title(id, title)
Change title of conversation
Arguments:
id
: UUID of conversationtitle
: String
def delete_conversation(id)
Delete conversation
Arguments:
id
: UUID of conversation
def clear_conversations()
Delete all conversations
def reset_chat() -> None
Reset the conversation ID and parent ID.
Returns:
None
def rollback_conversation(num=1) -> None
Rollback the conversation.
Arguments:
num
: The number of messages to rollback
Returns:
None