langchain.agents.format_scratchpad.openai_functions.format_to_openai_functions¶
langchain.agents.format_scratchpad.openai_functions.format_to_openai_functions(intermediate_steps: Sequence[Tuple[AgentAction, str]]) → List[BaseMessage][source]¶
Format intermediate steps.
:param intermediate_steps: Steps the LLM has taken to date, along with observations
Returns
list of messages to send to the LLM for the next prediction