import { useCallback } from "react";
export function useAgentActiveStreaming(input) {
    const { messagesRef } = input;
    return useCallback(() => {
        const current = messagesRef.current || [];
        return current.some((m) => !m.isCompleted && m.messageType === "streaming");
    }, [messagesRef]);
}
//# sourceMappingURL=useAgentActiveStreaming.js.map