langchain.agents.format_scratchpad.log_to_messages
.format_log_to_messages¶
- langchain.agents.format_scratchpad.log_to_messages.format_log_to_messages(intermediate_steps: List[Tuple[AgentAction, str]], template_tool_response: str = '{observation}') List[BaseMessage] [source]¶
构建一个草稿本,让代理继续其思考过程。
- Parameters
intermediate_steps (List[Tuple[AgentAction, str]]) –
template_tool_response (str) –
- Return type
List[BaseMessage]