langchain.js
    Preparing search index...

    Type Alias UseStreamCustom<StateType, Bag>

    UseStreamCustom: Pick<
        UseStream<StateType, Bag>,
        "values" | "error" | "isLoading" | "stop" | "interrupt" | "messages",
    > & {
        submit: (
            values: GetUpdateType<Bag, StateType> | null | undefined,
            options?: CustomSubmitOptions<StateType, GetConfigurableType<Bag>>,
        ) => Promise<void>;
    }

    Type Parameters

    • StateType extends Record<string, unknown> = Record<string, unknown>
    • Bag extends BagTemplate = BagTemplate