format_to_openai_function_messages(
intermediate_steps: Sequence[tuple[AgentAction, str]]
) -> list[BaseMessage| Name | Type | Description |
|---|---|---|
intermediate_steps* | Sequence[tuple[AgentAction, str]] |
Convert (AgentAction, tool output) tuples into FunctionMessages.
Raises: ValueError: if the observation cannot be converted to a string.
Steps the LLM has taken to date, along with observations