nextspace
    Preparing search index...

    Interface UseConversationSetupParams

    interface UseConversationSetupParams {
        router: NextRouter;
        setBotNameContext: (name: string) => void;
        setConversationType: (
            type:
                | {
                    adapters?: {
                        [key: string]: {
                            audioChannels?: {
                                agent?: string;
                                config?: { [key: ...]: ... };
                                direct?: boolean;
                                direction: "incoming" | "outgoing" | "both";
                                name?: string;
                            }[];
                            chatChannels?: {
                                agent?: string;
                                config?: { [key: ...]: ... };
                                direct?: boolean;
                                direction: "incoming" | "outgoing" | "both";
                                name?: string;
                            }[];
                            config?: { [key: string]: unknown };
                            dmChannels?: {
                                agent?: string;
                                config?: { [key: ...]: ... };
                                direct?: boolean;
                                direction: "incoming" | "outgoing" | "both";
                                name?: string;
                            }[];
                            type: string;
                        };
                    };
                    agents?: {
                        name: string;
                        properties?: (
                            | {
                                default?: (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                description?: (...) | (...);
                                itemKey?: (...) | (...);
                                label?: (...) | (...);
                                name: string;
                                options?: (...) | (...);
                                required: boolean;
                                schema?: (...) | (...);
                                type: (...) | (...) | (...) | (...) | (...);
                                validationKeys?: (...) | (...);
                            }
                            | { $ref: string }
                        )[];
                    }[];
                    channels?: { direct?: boolean; name: string; passcode?: string
                    | null }[];
                    description: string;
                    enableDMs?: string[];
                    features?: {
                        agents: { name: string }[];
                        category: "assistant" | "group-chat" | "transcript" | "resources";
                        default: boolean;
                        description?: string;
                        enabled?: boolean;
                        label: string;
                        name: string;
                        prerequisite?: string;
                        properties?: {
                            default?: string | number | boolean | Record<(...), (...)>;
                            description?: string;
                            itemKey?: string;
                            label?: string;
                            name: string;
                            options?: (...)[];
                            required: boolean;
                            schema?: (...)[];
                            type: "string" | "number" | "boolean" | "object" | "enum";
                            validationKeys?: (...)[];
                        }[];
                        slashCommand?: string;
                        userControlled: boolean;
                    }[];
                    label?: string;
                    name: string;
                    platforms: { label?: string; name: string }[];
                    properties: {
                        default?: string | number | boolean | Record<string, never>;
                        description?: string;
                        itemKey?: string;
                        label?: string;
                        name: string;
                        options?: Record<string, never>[];
                        required: boolean;
                        schema?: Record<string, never>[];
                        type: "string" | "number" | "boolean" | "object" | "enum";
                        validationKeys?: string[];
                    }[];
                }
                | null,
        ) => void;
        setResources: Dispatch<
            SetStateAction<
                {
                    addedAt?: string;
                    authors?: string[];
                    category: "required"
                    | "referenced"
                    | "suggested";
                    citation?: string;
                    description?: string;
                    hasPdf?: boolean;
                    id?: string;
                    participantVisible: boolean;
                    relevanceReason?: string;
                    source: "speaker" | "ai";
                    summary?: string;
                    title: string;
                    url?: string;
                    year?: string;
                }[],
            >,
        >;
        socket: Socket<DefaultEventsMap, DefaultEventsMap>
        | null;
        userId: string | null;
    }
    Index

    Properties

    router: NextRouter
    setBotNameContext: (name: string) => void
    setConversationType: (
        type:
            | {
                adapters?: {
                    [key: string]: {
                        audioChannels?: {
                            agent?: string;
                            config?: { [key: ...]: ... };
                            direct?: boolean;
                            direction: "incoming" | "outgoing" | "both";
                            name?: string;
                        }[];
                        chatChannels?: {
                            agent?: string;
                            config?: { [key: ...]: ... };
                            direct?: boolean;
                            direction: "incoming" | "outgoing" | "both";
                            name?: string;
                        }[];
                        config?: { [key: string]: unknown };
                        dmChannels?: {
                            agent?: string;
                            config?: { [key: ...]: ... };
                            direct?: boolean;
                            direction: "incoming" | "outgoing" | "both";
                            name?: string;
                        }[];
                        type: string;
                    };
                };
                agents?: {
                    name: string;
                    properties?: (
                        | {
                            default?: (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...);
                            description?: (...) | (...);
                            itemKey?: (...) | (...);
                            label?: (...) | (...);
                            name: string;
                            options?: (...) | (...);
                            required: boolean;
                            schema?: (...) | (...);
                            type: (...) | (...) | (...) | (...) | (...);
                            validationKeys?: (...) | (...);
                        }
                        | { $ref: string }
                    )[];
                }[];
                channels?: { direct?: boolean; name: string; passcode?: string
                | null }[];
                description: string;
                enableDMs?: string[];
                features?: {
                    agents: { name: string }[];
                    category: "assistant" | "group-chat" | "transcript" | "resources";
                    default: boolean;
                    description?: string;
                    enabled?: boolean;
                    label: string;
                    name: string;
                    prerequisite?: string;
                    properties?: {
                        default?: string | number | boolean | Record<(...), (...)>;
                        description?: string;
                        itemKey?: string;
                        label?: string;
                        name: string;
                        options?: (...)[];
                        required: boolean;
                        schema?: (...)[];
                        type: "string" | "number" | "boolean" | "object" | "enum";
                        validationKeys?: (...)[];
                    }[];
                    slashCommand?: string;
                    userControlled: boolean;
                }[];
                label?: string;
                name: string;
                platforms: { label?: string; name: string }[];
                properties: {
                    default?: string | number | boolean | Record<string, never>;
                    description?: string;
                    itemKey?: string;
                    label?: string;
                    name: string;
                    options?: Record<string, never>[];
                    required: boolean;
                    schema?: Record<string, never>[];
                    type: "string" | "number" | "boolean" | "object" | "enum";
                    validationKeys?: string[];
                }[];
            }
            | null,
    ) => void
    setResources: Dispatch<
        SetStateAction<
            {
                addedAt?: string;
                authors?: string[];
                category: "required"
                | "referenced"
                | "suggested";
                citation?: string;
                description?: string;
                hasPdf?: boolean;
                id?: string;
                participantVisible: boolean;
                relevanceReason?: string;
                source: "speaker" | "ai";
                summary?: string;
                title: string;
                url?: string;
                year?: string;
            }[],
        >,
    >
    socket: Socket<DefaultEventsMap, DefaultEventsMap> | null
    userId: string | null