
    <i                    \   S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJrJr  S S	KJr  S
r " S S\5      rS!S jr " S S\5      r " S S\5      r " S S\5      r " S S\5      r\" SSS9 " S S\5      5       r " S S\5      r " S S\5      r " S S \5      rg)"    )annotations)Sequence)Enum)Any)warn)EmptyChannelError)
deprecated)Command	Interrupt)LangGraphDeprecatedSinceV10)
r   	ErrorCodeGraphRecursionErrorInvalidUpdateErrorGraphBubbleUpGraphInterruptNodeInterruptParentCommandEmptyInputErrorTaskNotFoundc                  (    \ rS rSrSrSrSrSrSrSr	g)	r      GRAPH_RECURSION_LIMITINVALID_CONCURRENT_GRAPH_UPDATEINVALID_GRAPH_NODE_RETURN_VALUEMULTIPLE_SUBGRAPHSINVALID_CHAT_HISTORY N)
__name__
__module____qualname____firstlineno__r   r   r   r   r   __static_attributes__r       `/home/dmtnaga/Documents/work/airagagent/rag_env/lib/python3.13/site-packages/langgraph/errors.pyr   r      s     3&G#&G#-1r#   r   c                $    U  SUR                    3$ )NzT
For troubleshooting, visit: https://docs.langchain.com/oss/python/langgraph/errors/value)message
error_codes     r$   create_error_messager*   %   s"    ) ""#	%r#   c                      \ rS rSrSrSrg)r   -   a  Raised when the graph has exhausted the maximum number of steps.

This prevents infinite loops. To increase the maximum number of steps,
run your graph with a config specifying a higher `recursion_limit`.

Troubleshooting guides:

- [`GRAPH_RECURSION_LIMIT`](https://docs.langchain.com/oss/python/langgraph/GRAPH_RECURSION_LIMIT)

Examples:

    graph = builder.compile()
    graph.invoke(
        {"messages": [("user", "Hello, world!")]},
        # The config is the second positional argument
        {"recursion_limit": 1000},
    )
r   Nr   r   r    r!   __doc__r"   r   r#   r$   r   r   -   s    & 	r#   r   c                      \ rS rSrSrSrg)r   D   aS  Raised when attempting to update a channel with an invalid set of updates.

Troubleshooting guides:

- [`INVALID_CONCURRENT_GRAPH_UPDATE`](https://docs.langchain.com/oss/python/langgraph/INVALID_CONCURRENT_GRAPH_UPDATE)
- [`INVALID_GRAPH_NODE_RETURN_VALUE`](https://docs.langchain.com/oss/python/langgraph/INVALID_GRAPH_NODE_RETURN_VALUE)
r   Nr-   r   r#   r$   r   r   D   s     	r#   r   c                      \ rS rSrSrg)r   P   r   N)r   r   r    r!   r"   r   r#   r$   r   r   P   s    r#   r   c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )r   T   ztRaised when a subgraph is interrupted, suppressed by the root graph.
Never raised directly, or surfaced to the user.r   c                $   > [         TU ]  U5        g Nsuper__init__)self
interrupts	__class__s     r$   r9   GraphInterrupt.__init__X   s    $r#   )r   )r;   zSequence[Interrupt]returnNoner   r   r    r!   r.   r9   r"   __classcell__r<   s   @r$   r   r   T   s    7% %r#   r   zYNodeInterrupt is deprecated. Please use [`interrupt`][langgraph.types.interrupt] instead.N)categoryc                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )r   \   z(Raised by a node to interrupt execution.c                   > [        S[        SS9  Uc  [        TU ]  [	        US9/5        g [        TU ]  [	        XS9/5        g )NzLNodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.   )
stacklevelr&   )r'   id)r   r   r8   r9   r   )r:   r'   rI   r<   s      r$   r9   NodeInterrupt.__init__c   sE    Z'	

 :Gie456Gie;<=r#   r   r6   )r'   r   rI   z
str | Noner>   r?   r@   rB   s   @r$   r   r   \   s    
 3	> 	>r#   r   c                  8   ^  \ rS rSr% S\S'   SU 4S jjrSrU =r$ )r   o   ztuple[Command]argsc                $   > [         TU ]  U5        g r6   r7   )r:   commandr<   s     r$   r9   ParentCommand.__init__r   s    !r#   r   )rO   r
   r>   r?   )r   r   r    r!   __annotations__r9   r"   rA   rB   s   @r$   r   r   o   s    
" "r#   r   c                      \ rS rSrSrSrg)r   v   z*Raised when graph receives an empty input.r   Nr-   r   r#   r$   r   r   v   s    4r#   r   c                      \ rS rSrSrSrg)r   |   zIRaised when the executor is unable to find a task (for distributed mode).r   Nr-   r   r#   r$   r   r   |   s    Sr#   r   )r(   strr)   r   r>   rV   ) 
__future__r   collections.abcr   enumr   typingr   warningsr   langgraph.checkpoint.baser   typing_extensionsr	   langgraph.typesr
   r   langgraph.warningsr   __all__r   r*   RecursionErrorr   	Exceptionr   r   r   r   r   r   r   r   r#   r$   <module>rc      s    " $    8 ( . :2 2	. 	.		 			I 	%] % _>N >	>"M "	i 		9 	r#   