
    m
i                         d dl mZ d dlmZ d dlmZ  G d deeeef                            Z	dZ
 ee
g d          Zd	Z eeg d
          ZdS )    )BaseOutputParser)PromptTemplate)overridec                   T    e Zd ZU dZdZeed<   	 ededeee	f         fd            Z
dS )FinishedOutputParserz4Output parser that checks if the output is finished.FINISHEDfinished_valuetextreturnc                 v    |                                 }| j        |v }|                    | j        d          |fS )N )stripr	   replace)selfr
   cleanedfinisheds       C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\langchain_classic/chains/flare/prompts.pyparsezFinishedOutputParser.parse   s8    **,,&'1t2B77AA    N)__name__
__module____qualname____doc__r	   str__annotations__r   tupleboolr    r   r   r   r      sl         >>$NC$$$6B# B%T	"2 B B B XB B Br   r   zRespond to the user message using any relevant context. If context is provided, you should ground your answer in that context. Once you're done responding return FINISHED.

>>> CONTEXT: {context}
>>> USER INPUT: {user_input}
>>> RESPONSE: {response})
user_inputcontextresponse)templateinput_variablesa&  Given a user input and an existing partial response as context, ask a question to which the answer is the given term/entity/phrase:

>>> USER INPUT: {user_input}
>>> EXISTING PARTIAL RESPONSE: {current_response}

The question to which the answer is the term/entity/phrase "{uncertain_span}" is:)r   current_responseuncertain_spanN)langchain_core.output_parsersr   langchain_core.promptsr   typing_extensionsr   r   r   r   r   PROMPT_TEMPLATEPROMPT"QUESTION_GENERATOR_PROMPT_TEMPLATEQUESTION_GENERATOR_PROMPTr   r   r   <module>r-      s    : : : : : : 1 1 1 1 1 1 & & & & & &
B 
B 
B 
B 
B+E#t),<= 
B 
B 
B 
999
 
 
&U " +N/HHH     r   