o
    eh                  
   @   s^   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	 de
de
de
d	e
d
e
f
ddZdS )    )ChatPromptTemplate)StrOutputParser)llm)RunnableParallel)CHARACTER_TEMPLATE	objectivenamegender	backstoryreturnc                 C   sN   d}t ttt|d}d}|t|B tB t B }||||| dS )Nz
    Current Mission: {objective}
    
    Generate response that:
    - Directly fulfills the objective
    - Uses your character's unique voice
    - Feels natural and conversational
    )	charactertaskz
    {character}
    
    {task}
    
    Response Requirements:
    - Style: Match backstory's tone
    - Focus: Pure objective execution
    )r   r	   r
   r   )r   r   from_templater   r   r   invoke)r   r   r	   r
   Zbase_templateZfull_promptZfinal_templatechain r   a/var/www/html/aiverses.in/BackEnd/Ai_Agents/services/llm_functions/generate_objective_response.pygenerate_objective_response	   s(   
r   N)langchain.promptsr   langchain_core.output_parsersr   Ai_Agents.models.language_modelr   langchain_core.runnablesr   Z/Ai_Agents.services.templates.character_templater   strr   r   r   r   r   <module>   s     