
    ~zgA                     &    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 )WriteArticleValidatorAgentc                 *    t         |   d||       y )Nr   )namemax_retriesverbose)super__init__)selfr   r	   	__class__s      C:\Users\bruma\Desktop\finale\rulare ollama remote cu colab\AI-Agents-from-Scratch-using-Ollama\agents\write_article_validator_agent.pyr   z#WriteArticleValidatorAgent.__init__   s    :]de    c                 V    d}d| d| d}d|dd|dg}| j                  |d	      }|S )
Nz9You are an AI assistant that validates research articles.a  Given the topic and the article, assess whether the article comprehensively covers the topic, follows a logical structure, and maintains academic standards.
Provide a brief analysis and rate the article on a scale of 1 to 5, where 5 indicates excellent quality.

Topic: z

Article:
z

Validation:system)rolecontentuseri   )
max_tokens)
call_llama)r   topicarticlesystem_messageuser_contentmessages
validations          r   executez"WriteArticleValidatorAgent.execute	   s]    TW  	 " 	 .95
 __X#_>
r   )   T)__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      s    fr   r   N)
agent_baser   r    r   r   <module>r%      s    " r   