Ë
    ümxiÏ  ã                  ó<   — d Z ddlmZ ddlmZ ddlmZ 	 	 	 	 dd„Zy)zFunction for de-duping results.é    )Úannotations)ÚSequence)Úllmfn_output_rowc                ó²   — g }t        «       }t        | «      D ]<  \  }}|j                  «       }||v rŒ|j                  |«       |j	                  |«       Œ> |S )ag  Returns a list of indices with duplicates removed.

    E.g. if rows has results ["hello", "hello", "world"], the return value would
    be [0, 2], indicating that the results at index 1 is a duplicate and should be
    removed.

    Args:
      rows: The input rows

    Returns:
      A sequence of indices indicating which entries have unique results.
    )ÚsetÚ	enumerateÚresult_valueÚaddÚappend)ÚrowsÚindicesÚseen_entriesÚidxÚrowÚvalues         úa/home/htdocs/ttos/venv/lib/python3.12/site-packages/google/generativeai/notebook/lib/unique_fn.pyÚ	unique_fnr      sa   € ð €GÜ“5€LÜ˜d“Oò ‰ˆˆSØ× Ñ Ó"ˆØ�LÑ Øà×Ñ˜ÔØ�‰�sÕðð €Nó    N)r   z-Sequence[llmfn_output_row.LLMFnOutputRowView]ÚreturnzSequence[int])Ú__doc__Ú
__future__r   Útypingr   Ú google.generativeai.notebook.libr   r   © r   r   ú<module>r      s(   ðñ &Ý "å Ý =ðØ
7ðàôr   