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

    Interface UseConversationOptions

    Options for useConversation hook

    interface UseConversationOptions {
        autoSave?: boolean;
        externalMessages?: AssistantMessage[];
        model?: string;
        onMessagesChange?: (messages: AssistantMessage[]) => void;
        onSend?: (message: string) => Promise<string>;
        roomId?: string;
        systemPrompt?: string;
        userId?: string;
    }
    Index

    Properties

    autoSave?: boolean

    Whether to auto-save conversations

    externalMessages?: AssistantMessage[]

    External messages (controlled mode — state lives outside the hook)

    model?: string

    AI model override (e.g., 'gpt-4o-mini', 'grok-4-fast')

    onMessagesChange?: (messages: AssistantMessage[]) => void

    Setter for external messages (required when externalMessages is provided)

    onSend?: (message: string) => Promise<string>

    Custom message handler (bypasses cloud integration)

    roomId?: string

    Room ID for context

    systemPrompt?: string

    System prompt for the assistant

    userId?: string

    User ID for cloud integration (required for AI features)