
    i                     b    d Z ddlZddlmZmZmZmZ ddlmZ ddl	m
Z
 ddlmZ  G d de      Zy)	z/
State type for the Deep Analysis Agent graph.
    N)	AnnotatedListDictOptional)BaseMessage)add_messages)	TypedDictc                   f   e Zd ZU dZeee   ef   ed<   e	ed<   e
ed<   ee
   ed<   eeee
e
f         ed<   ee
   ed<   ee	   ed<   ee
   ed	<   eee
   ej                  f   ed
<   eee
      ed<   eee
   ej                  f   ed<   e	ed<   e	ed<   ee   ed<   ee   ed<   ee
   ed<   ee
   ed<   y)DeepAnalysisStateaN  
    State for the Deep Analysis Agent.
    profile_json holds a paragraph summary of the profile (built by orchestrator).
    max_turns is passed at invoke time (default from env DEEP_ANALYSIS_MAX_TURNS or 5).
    Multi-query: last_queries_batch is a list of {hypothesis, query}; failed_query_index + fixed_query for QueryFixer.
    messagesuser_idprofile_json
last_querylast_queries_batch
last_errorfailed_query_indexfixed_queryfindingsllm_findingsfailed_investigationsretry_counttool_call_countcontext_near_limitbatch_all_emptyempty_turn_decisionfinal_analysisN)__name__
__module____qualname____doc__r   r   r   r   __annotations__intstrr   r   operatoraddbool     B/var/www/html/userprofiledev.eatanceapp.com/deep_analysis/state.pyr   r      s     [)<788L d38n!566 %#S	8<</0049%%$T#Y%<== &d^#!#&SM!r(   r   )r    r$   typingr   r   r   r   langchain_core.messagesr   langgraph.graph.messager   typing_extensionsr	   r   r'   r(   r)   <module>r.      s*     2 2 / 0 '"	 "r(   