
    Sg                         d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
mZmZ e G d d             Z G d d	e	      Z G d
 de      Zy)    )	dataclass)Type)AgentOutput)ActionModel)	BaseModel
ConfigDictFieldcreate_modelc                   T    e Zd ZU eed<   eed<   eed<   eed<   eed<   eed<   eed<   y)	CustomAgentStepInfostep_number	max_stepstask	add_infosmemorytask_progressfuture_plansN)__name__
__module____qualname__int__annotations__str     F/Users/kosar/src/browser-use-projects/web-ui/src/agent/custom_views.pyr   r   	   s(    N
INKr   r   c                   N    e Zd ZU dZeed<   eed<   eed<   eed<   eed<   eed<   y)	CustomAgentBrainzCurrent state of the agentprev_action_evaluationimportant_contentsr   r   thoughtsummaryN)r   r   r   __doc__r   r   r   r   r   r   r      s'    $LLr   r   c                   d    e Zd ZU dZ ed      Zeed<   ee	   ed<   e
dee	   ded    fd       Zy	)
CustomAgentOutputzOutput model for agent

    @dev note: this model is extended with custom actions in AgentService. You can also use some fields that are not in this model as provided by the linter, as long as they are registered in the DynamicActions model.
    T)arbitrary_types_allowedcurrent_stateactioncustom_actionsreturnc                 h    t        dt        t        |    t        d      ft        j                        S )z"Extend actions with custom actionsr%   .)__base__r(   r   )r
   r%   listr	   r   )r)   s    r   type_with_custom_actionsz*CustomAgentOutput.type_with_custom_actions*   s6    
 &^$c
 )33
 	
r   N)r   r   r   r#   r   model_configr   r   r-   r   staticmethodr   r.   r   r   r   r%   r%      sQ    
 d;L##
[)
	!	"
 
r   r%   N)dataclassesr   typingr   browser_use.agent.viewsr   %browser_use.controller.registry.viewsr   pydanticr   r   r	   r
   r   r   r%   r   r   r   <module>r6      sH    !  / = ? ?   y 
 
r   