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

    Props for AgentMessage component

    interface AgentMessageProps {
        colors?: Partial<AgentAssistantColors>;
        icons?: Partial<AgentAssistantIcons>;
        isNavigating?: boolean;
        labels?: Partial<AgentAssistantLabels>;
        message: AgentAssistantMessage;
        onAction?: (
            messageId: string,
            action: Record<string, unknown>,
            data: Record<string, unknown>,
        ) => void;
        onCopyToInput?: (text: string) => void;
        onDelete?: (messageId: string) => void;
        onError?: (error: Error) => void;
        onFormCancel?: (messageId: string) => void;
        onFormSubmit?: (
            messageId: string,
            action: Record<string, unknown>,
            formData: Record<string, unknown>,
        ) => void;
        resultRenderer?: (
            result: Record<string, unknown>,
            props: AgentResultsProps,
        ) => ReactNode;
        storedRooms?: StoredRoom[];
        styles?: Partial<AgentAssistantStyles>;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    colors?: Partial<AgentAssistantColors>

    Custom colors

    icons?: Partial<AgentAssistantIcons>

    Custom icons

    isNavigating?: boolean

    Whether navigation is in progress

    labels?: Partial<AgentAssistantLabels>

    Custom labels

    Message to display

    onAction?: (
        messageId: string,
        action: Record<string, unknown>,
        data: Record<string, unknown>,
    ) => void

    Callback for action button clicks

    onCopyToInput?: (text: string) => void

    Callback to copy text to the input

    onDelete?: (messageId: string) => void

    Callback to delete the message

    onError?: (error: Error) => void

    Callback fired when an error occurs (e.g., clipboard copy failure)

    onFormCancel?: (messageId: string) => void

    Callback for inline form cancellation

    onFormSubmit?: (
        messageId: string,
        action: Record<string, unknown>,
        formData: Record<string, unknown>,
    ) => void

    Callback for inline form submission

    resultRenderer?: (
        result: Record<string, unknown>,
        props: AgentResultsProps,
    ) => ReactNode

    Custom result renderer

    storedRooms?: StoredRoom[]

    Stored rooms for form autocomplete

    styles?: Partial<AgentAssistantStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx prop