Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseConversationReturn

    Return type for useConversation hook

    interface UseConversationReturn {
        clearConversation: () => void;
        error: Error | null;
        isThinking: boolean;
        messages: AssistantMessage[];
        retryLastMessage: () => Promise<void>;
        sendMessage: (content: string) => Promise<void>;
    }
    Index

    Properties

    clearConversation: () => void

    Clear the conversation

    error: Error | null

    Current error

    isThinking: boolean

    Whether assistant is thinking

    messages: AssistantMessage[]

    Current messages

    retryLastMessage: () => Promise<void>

    Retry last message

    sendMessage: (content: string) => Promise<void>

    Send a message