Ask a question to get started
Enter to send•Shift+Enter new line
Construct the scratchpad that lets the agent continue its thought process.
format_log_to_str( intermediate_steps: list[tuple[AgentAction, str]], observation_prefix: str = 'Observation: ', llm_prefix: str = 'Thought: ' ) -> str
intermediate_steps
list[tuple[AgentAction, str]]
List of tuples of AgentAction and observation strings.
observation_prefix
str
'Observation: '
Prefix to append the observation with.
llm_prefix
'Thought: '
Prefix to append the llm call with.