
    3fi                     l    d Z ddlmZmZ ddlmZ ddlmZmZ ddl	m
Z
  G d de      Z G d d	e
      Zy
)z3Move an event between calendars in Google Calendar.    )OptionalType)CallbackManagerForToolRun)	BaseModelField)CalendarBaseToolc                       e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd      Z	eed	<    ed
d      Z
ee   ed<   y
)MoveEventSchemaz%Input schema for `CalendarMoveEvent`..zThe event ID to move.)descriptionevent_idzThe origin calendar ID.origin_calendar_idzThe destination calendar ID.destination_calendar_idNzYWhether to send updates to attendees.Allowed values are 'all', 'externalOnly', or 'none'.)defaultr   send_updates)__name__
__module____qualname____doc__r   r   str__annotations__r   r   r   r        l/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_google_community/calendar/move_event.pyr
   r
      sb    /#+BCHcC#C5NOO#(7$S  #(C#L(3- r   r
   c                   t    e Zd ZU dZdZeed<   dZeed<   eZ	e
e   ed<   	 	 dded	ed
edee   dee   defdZy)CalendarMoveEventz=Tool that move an event between calendars in Google Calendar.move_calendar_eventnamez1Use this tool to move an event between calendars.r   args_schemaNr   r   r   r   run_managerreturnc                     	 | j                   j                         j                  ||||      j                         }d|j	                  d       S # t
        $ r}t        d|       |d}~ww xY w)z3Run the tool to update an event in Google Calendar.)eventId
calendarIddestinationsendUpdateszEvent moved: htmlLinkzAn error occurred: N)api_resourceeventsmoveexecuteget	Exception)selfr   r   r   r   r   resulterrors           r   _runzCalendarMoveEvent._run(   s    	F!!((*$1 7 ,	     #6::j#9":;; 	F1%9:E	Fs   AA 	A.A))A.)NN)r   r   r   r   r   r   r   r   r
   r   r   r   r   r0   r   r   r   r   r      s    G%D#%JKJ)8Ko&8 '+;?FF  F "%	F
 smF 78F 
Fr   r   N)r   typingr   r   langchain_core.callbacksr   pydanticr   r   (langchain_google_community.calendar.baser   r
   r   r   r   r   <module>r5      s/    9 ! > % Ei (F( Fr   