Toggle Menu
Prev Up Next

# `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

  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

# Examples using format_log_to_str

- setup tools