
    ~zg                     &    d dl mZ  G d de      Zy)   )	AgentBasec                   &     e Zd Zd fd	Zd Z xZS )RefinerAgentc                 *    t         |   d||       y )Nr   )namemax_retriesverbose)super__init__)selfr   r	   	__class__s      wC:\Users\bruma\Desktop\finale\rulare ollama remote cu colab\AI-Agents-from-Scratch-using-Ollama\agents\refiner_agent.pyr   zRefinerAgent.__init__   s    n+wW    c                 Z    ddddgdddd| ddgdg}| j                  |d	d
      }|S )NsystemtextzqYou are an expert editor who refines and enhances research articles for clarity, coherence, and academic quality.)typer   )rolecontentuserzmPlease refine the following research article draft to improve its language, coherence, and overall quality:

z

Refined Article:g      ?i   )messagestemperature
max_tokens)
call_llama)r   draftr   refined_articles       r   executezRefinerAgent.execute	   sz     ! !' !T  !' N$g%9;
. // * 

 r   )   T)__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      s    Xr   r   N)
agent_baser   r    r   r   <module>r%      s    "!9 !r   