
    hL              	       >    d dl mZ 	 	 ddeeeef      dededefdZy)	    )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         d/var/www/html/eduruby.in/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: )langchain_core.agentsr   listtuplestrr    r   r   <module>r      sH    -
 .!U;#345  		r   