
    Ngl              	       \    d dl mZmZ d dlmZ 	 	 ddeeeef                  dededefd	Zd
S )    )ListTuple)AgentActionObservation: 	Thought: intermediate_stepsobservation_prefix
llm_prefixreturnc                 H    d}| D ]\  }}||j         z  }|d| | d| z  }|S )a  Construct the scratchpad that lets the agent continue its thought process.

    Args:
        intermediate_steps: List of tuples of AgentAction and observation strings.
        observation_prefix: Prefix to append the observation with.
             Defaults to "Observation: ".
        llm_prefix: Prefix to append the llm call with.
                Defaults to "Thought: ".

    Returns:
        str: The scratchpad.
     
)log)r   r	   r
   thoughtsactionobservations         b/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain/agents/format_scratchpad/log.pyformat_log_to_strr      sS    " H1 I IFJH+H[HHJHHHO    N)r   r   )typingr   r   langchain_core.agentsr   strr    r   r   <module>r      s            - - - - - -
 .! U;#345  		     r   