
    e!h                          G d  d      Z y)c                   "    e Zd ZdZd Zd Zd Zy)Agendaz

    Collection of activations that handles its execution state.

    .. note::
       Extracted from clips documentation: ``The agenda is a collection
       of activations which are those rules which match pattern entities``

    c                 "    t               | _        y )N)listactivationsselfs    V/var/www/html/diagnosisapp-backend/venv/lib/python3.12/site-packages/experta/agenda.py__init__zAgenda.__init__   s    6    c                 X    dj                  d t        | j                        D              S )N
c           	   3      K   | ]:  \  }}d j                  |t        |j                  dd      |j                         < yw)z{idx}: {rule} {facts}__name__z[anonymous])idxrulefactsN)formatgetattrr   r   ).0r   acts      r	   	<genexpr>z"Agenda.__repr__.<locals>.<genexpr>   sN      9 S $**s078B8E1G 25	 + <9s   A A)join	enumerater   r   s    r	   __repr__zAgenda.__repr__   s-    yy 9 &d&6&679 9 	9r   c                 V    	 | j                   j                         S # t        $ r Y yw xY w)z>Returns the next activation, removes it from activations list.N)r   pop
IndexErrorr   s    r	   get_nextzAgenda.get_next   s.    	##'')) 		s    	((N)r   
__module____qualname____doc__r
   r   r    r   r	   r   r      s    "9r   r   N)r   r"   r   r	   <module>r#      s    r   