Ë
    µŒj…  ã                   óš   — d dl mZmZmZ d dlmZ d dlmZ d dlm	Z	m
Z
 erd dlZn	 d dlZ G d„ de	«      Z G d„ d	e«      Zy# e$ r Y Œw xY w)
é    )ÚTYPE_CHECKINGÚOptionalÚType)ÚCallbackManagerForToolRun)ÚBaseTool)Ú	BaseModelÚFieldNc                   óN   — e Zd ZU dZ edd¬«      Zeed<    edd¬«      Zeed<   y	)
ÚCreateSessionSchemazInput for CreateSessionTool..z"The query to run in multion agent.)ÚdescriptionÚqueryúhttps://www.google.com/zXThe Url to run the agent at. Note: accepts only secure             links having https://ÚurlN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   ÚstrÚ__annotations__r   © ó    úz/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/langchain_community/tools/multion/create_session.pyr   r      s7   … Ù&áØØ8ô€Eˆ3ó ñ Ø!ð%ô€Cˆô r   r   c            	       ól   — 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e   d
ee   defd„Zy)ÚMultionCreateSessiona  Tool that creates a new Multion Browser Window with provided fields.

    Attributes:
        name: The name of the tool. Default: "create_multion_session"
        description: The description of the tool.
        args_schema: The schema for the tool's arguments.
    Úcreate_multion_sessionÚnameaª  
        Create a new web browsing session based on a user's command or request.         The command should include the full info required for the session.         Also include an url (defaults to google.com if no better option)         to start the session.         Use this tool to create a new Browser Window with provided fields.         Always the first step to run any activities that can be done using browser.
        r   Úargs_schemaNr   r   Úrun_managerÚreturnc                 óˆ   — 	 t        j                  ||dœ«      }|d   |d   dœS # t        $ r}t        d|› �«      ‚d }~ww xY w)N)Úinputr   Ú
session_idÚmessage)Ú	sessionIdÚResponsezAn error occurred: )ÚmultionÚnew_sessionÚ	Exception)Úselfr   r   r   ÚresponseÚes         r   Ú_runzMultionCreateSession._run6   s[   € ð	7Ü×*Ñ*°UÀ3Ñ+GÓHˆHà% lÑ3Ø$ YÑ/ñð øô ò 	7ÜÐ1°!°Ð5Ó6Ð6ûð	7ús   ‚"% ¥	A®<¼A)r   N)r   r   r   r   r   r   r   r   r   r   r   r   r   Údictr,   r   r   r   r   r   "   sq   … ñð )€Dˆ#Ó(ð€K�ó ð .A€K�Ð)Ñ*Ó@ð
 7Ø;?ñ	7àð7ð �c‰]ð7ð Ð7Ñ8ð	7ð
 
ô7r   r   )Útypingr   r   r   Úlangchain_core.callbacksr   Úlangchain_core.toolsr   Úpydanticr   r	   r&   ÚImportErrorr   r   r   r   r   Ú<module>r3      sR   ðß 0Ñ 0õõ *ß %áäðãô
˜)ô ô!7˜8õ !7øð% ò Ùðús   §A ÁA
Á	A
