langchain.agents.format_scratchpad.log.format_log_to_str¶

langchain.agents.format_scratchpad.log.format_log_to_str(intermediate_steps: List[Tuple[AgentAction, str]], observation_prefix: str = 'Observation: ', llm_prefix: str = 'Thought: ') str[source]¶

Construct the scratchpad that lets the agent continue its thought process.

Parameters
  • intermediate_steps (List[Tuple[AgentAction, str]]) –

  • observation_prefix (str) –

  • llm_prefix (str) –

Return type

str