ó
    ±"³jL  ã                  óš   • 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	S
KJr  S	SKJr  \ " S S\\   5      5       rg)é    )Úannotations)ÚCallable)Ú	dataclass)ÚAny)ÚApprovalRequiredé   )Ú
AgentDepsTÚ
RunContext)ÚToolDefinitioné   )ÚToolsetTool)ÚWrapperToolsetc                  óV   ^ • \ rS rSr% SrS rS\S'             SU 4S jjrSrU =r	$ )	ÚApprovalRequiredToolseté   zœA toolset that requires (some) calls to tools it contains to be approved.

See [toolset docs](../toolsets.md#requiring-tool-approval) for more information.
c                ó   • g)NT© )ÚctxÚtool_defÚ	tool_argss      Úc/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pydantic_ai/toolsets/approval_required.pyÚ<lambda>Ú ApprovalRequiredToolset.<lambda>   s   € ¨ó    zHCallable[[RunContext[AgentDepsT], ToolDefinition, dict[str, Any]], bool]Úapproval_required_funcc              ƒ  ó°   >#   • UR                   (       d'  U R                  X4R                  U5      (       a  [        e[        TU ]  XX45      I S h  v•N $  N7f)N)Útool_call_approvedr   r   r   ÚsuperÚ	call_tool)ÚselfÚnamer   r   ÚtoolÚ	__class__s        €r   r   Ú!ApprovalRequiredToolset.call_tool   sF   øé € ð ×%×%¨$×*EÑ*EÀcÏ=É=ÐZc×*dÑ*dÜ"Ð"ä‘WÑ& t¸ÓB×BÐBÑBùs   ƒAAÁAÁAr   )
r!   Ústrr   zdict[str, Any]r   zRunContext[AgentDepsT]r"   zToolsetTool[AgentDepsT]Úreturnr   )
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__annotations__r   Ú__static_attributes__Ú__classcell__)r#   s   @r   r   r      sS   ø‡ ññ 	.ð Ðdó ðCØðCØ$2ðCØ9OðCØWnðCà	÷Cõ Cr   r   N)Ú
__future__r   Úcollections.abcr   Údataclassesr   Útypingr   Úpydantic_ai.exceptionsr   Ú_run_contextr	   r
   Útoolsr   Úabstractr   Úwrapperr   r   r   r   r   Ú<module>r8      sC   ðÝ "å $Ý !Ý å 3ç 1Ý "Ý !Ý #ð ôC˜n¨ZÑ8ó Có ñCr   