
    ghL              	       L    d dl mZ 	 	 d
deeeef                  dededefdZd	S )    )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         c/var/www/FlaskApp/flask-venv/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   )langchain_core.agentsr   listtuplestrr    r   r   <module>r      su    - - - - - -
 .! U;#345  		     r   