
    }hl              	       N    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y)
    )ListTuple)AgentActionintermediate_stepsobservation_prefix
llm_prefixreturnc                 V    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         `/var/www/html/engine/venv/lib/python3.12/site-packages/langchain/agents/format_scratchpad/log.pyformat_log_to_strr      sQ    " H1 IFJJb+,[MJ<HHI O    N)zObservation: z	Thought: )typingr   r   langchain_core.agentsr   strr    r   r   <module>r      sK     -
 .!U;#345  		r   