
    Cja                        S SK Jr  S SKrS SKJr  S SKJrJrJr  SSK	J
r
  SSKJr  \S   r\R                  S	:  a  S
S0O0 r\" S0 \D6 " S S5      5       r\" S0 \D6 " S S5      5       r\ " S S\5      5       rg)    )annotationsN)	dataclass)LiteralProtocolruntime_checkable   )RunContextWrapper)MaybeAwaitable)create_fileupdate_filedelete_file)   
   slotsTc                  X    \ rS rSr% SrS\S'   S\S'   SrS\S	'   SrS
\S'   SrS\S'   Sr	g)ApplyPatchOperation   zHRepresents a single apply_patch editor operation requested by the model.ApplyPatchOperationTypetypestrpathN
str | NonediffzRunContextWrapper | Nonectx_wrappermove_to )
__name__
__module____qualname____firstlineno____doc____annotations__r   r   r   __static_attributes__r       _/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/agents/editor.pyr   r      s/    R
!!
ID*,0K)0GZr$   r   c                  6    \ rS rSr% SrSrS\S'   SrS\S'   Srg)	ApplyPatchResult   z0Optional metadata returned by editor operations.Nz%Literal['completed', 'failed'] | Nonestatusr   outputr   )	r   r   r   r    r!   r)   r"   r*   r#   r   r$   r%   r'   r'      s    :48F18FJr$   r'   c                  N    \ rS rSrSr    SS jr    SS jr    SS jrSrg)	ApplyPatchEditor"   z/Host-defined editor that applies diffs on disk.c                    g Nr   self	operations     r%   r   ApplyPatchEditor.create_file&       8;r$   c                    g r/   r   r0   s     r%   r   ApplyPatchEditor.update_file*   r4   r$   c                    g r/   r   r0   s     r%   r   ApplyPatchEditor.delete_file.   r4   r$   r   N)r2   r   returnz-MaybeAwaitable[ApplyPatchResult | str | None])	r   r   r   r    r!   r   r   r   r#   r   r$   r%   r,   r,   "   sD    9<,<	6<<,<	6<<,<	6<r$   r,   r   )
__future__r   sysdataclassesr   typingr   r   r   run_contextr	   util._typesr
   r   version_info_DATACLASS_KWARGSr   r'   r,   r   r$   r%   <module>rB      s    " 
 ! 7 7 * '!"MN '*'7'77'BWdO          <x < <r$   