File: //usr/local/lib/python3.10/dist-packages/langchain/agents/__pycache__/schema.cpython-310.pyc
o
���g� � @ sD d dl mZmZmZmZ d dlmZ d dlmZ G dd� de�Z dS )� )�Any�Dict�List�Tuple)�AgentAction)�ChatPromptTemplatec @ sZ e Zd ZdZedefdd��Zdeee e
f de
fdd�Zdede
e
ef fd d
�ZdS )�!AgentScratchPadChatPromptTemplatez.Chat prompt template for the agent scratchpad.�returnc C s dS )NF� )�clsr
r
�B/usr/local/lib/python3.10/dist-packages/langchain/agents/schema.py�is_lc_serializable
s z4AgentScratchPadChatPromptTemplate.is_lc_serializable�intermediate_stepsc C sF t |�dkrdS d}|D ]\}}||j7 }|d|� d�7 }qd|� �S )Nr � z
Observation: z
Thought: zhThis was your previous work (but I haven't seen any of it! I only see what you return as final answer):
)�len�log)�selfr �thoughts�action�observationr
r
r �_construct_agent_scratchpad s
��z=AgentScratchPadChatPromptTemplate._construct_agent_scratchpad�kwargsc K s |� d�}| �|�|d<