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

    Interface UseChatNoteSaveOptions

    Options for the useChatNoteSave hook.

    interface UseChatNoteSaveOptions {
        client: AIAssistantFileClient | null;
        enabled: boolean;
        fileId?: string;
        fileLocation?: string;
        messages: AssistantMessage[];
        onError?: (error: Error) => void;
        onSaved?: (fileId: string) => void;
        userId: string;
        userName?: string;
    }
    Index

    Properties

    client: AIAssistantFileClient | null

    Hiyve client instance (from useClient or passed explicitly)

    enabled: boolean

    Whether saving is enabled

    fileId?: string

    Existing file ID to resume updating

    fileLocation?: string

    File storage location (default: '/Notes')

    messages: AssistantMessage[]

    Current conversation messages

    onError?: (error: Error) => void

    Callback on save error

    onSaved?: (fileId: string) => void

    Callback after successful save

    userId: string

    User ID of the chat author

    userName?: string

    Display name of the chat author