o
    Jjgl                  	   @   sL   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	d
ZdS )    )ListTuple)AgentActionObservation: 	Thought: intermediate_stepsobservation_prefix
llm_prefixreturnc                 C   s8   d}| D ]\}}||j 7 }|d| | d| 7 }q|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observation r   ^/var/www/html/zoom/venv/lib/python3.10/site-packages/langchain/agents/format_scratchpad/log.pyformat_log_to_str   s
   
r   N)r   r   )typingr   r   langchain_core.agentsr   strr   r   r   r   r   <module>   s    