a
    agl                     @   sB   d dl mZmZ d dlmZ d	eeeef  eeed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	   ZthoughtsactionZobservation r   t/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain/agents/format_scratchpad/log.pyformat_log_to_str   s
    
r   N)r   r   )typingr   r   Zlangchain_core.agentsr   strr   r   r   r   r   <module>   s     