@dypai-ai/client-sdk - v1.12.0
    Preparing search index...

    Interface UseChatListReturn

    interface UseChatListReturn {
        chats: ChatSession[];
        deleteChat: (chatId: string) => Promise<void>;
        error: Error | null;
        isLoading: boolean;
        refetch: () => Promise<void>;
        renameChat: (chatId: string, title: string) => Promise<void>;
    }
    Index

    Properties

    chats: ChatSession[]

    List of chat sessions

    deleteChat: (chatId: string) => Promise<void>

    Delete a chat

    error: Error | null

    Last error

    isLoading: boolean

    Whether the list is loading

    refetch: () => Promise<void>

    Refresh the list

    renameChat: (chatId: string, title: string) => Promise<void>

    Rename a chat