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

    Props for ActionForm component

    interface ActionFormProps {
        colors?: Partial<AgentAssistantColors>;
        formFields?: ActionFormField[];
        getSubmitTextForTool?: (tool: string, status: string) => string;
        getTitleForTool?: (tool: string) => string;
        labels?: Partial<AgentAssistantLabels>;
        missingParams?: string[];
        onCancel: () => void;
        onSubmit: (params: Record<string, unknown>) => void;
        partialParams?: Record<string, unknown>;
        status?: "cancelled" | "pending" | "submitting" | "submitted";
        storedRooms?: StoredRoom[];
        sx?: SxProps<Theme>;
        tool: string;
    }
    Index

    Properties

    colors?: Partial<AgentAssistantColors>

    Custom colors

    formFields?: ActionFormField[]

    Form field definitions

    getSubmitTextForTool?: (tool: string, status: string) => string

    Custom submit text generator based on tool name and status

    getTitleForTool?: (tool: string) => string

    Custom title generator based on tool name

    labels?: Partial<AgentAssistantLabels>

    Custom labels

    missingParams?: string[]

    List of missing parameter names

    onCancel: () => void

    Callback when the form is cancelled

    onSubmit: (params: Record<string, unknown>) => void

    Callback when the form is submitted

    partialParams?: Record<string, unknown>

    Partial parameters (pre-filled values)

    status?: "cancelled" | "pending" | "submitting" | "submitted"

    Current form status

    storedRooms?: StoredRoom[]

    Stored rooms for autocomplete

    sx?: SxProps<Theme>

    MUI sx prop

    tool: string

    Tool name for the form