a
    •˜ëjL  ã                   @   s2   d dl mZ deeeef  eeedœdd„ZdS )	é    )Ú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   úe/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain/agents/format_scratchpad/log.pyÚformat_log_to_str   s
    
r   N)r   r   )Zlangchain_core.agentsr   ÚlistÚtupleÚstrr   r   r   r   r   Ú<module>   s     ýü