Format a list of AgentSteps into a list of BaseMessage instances for
agents that use OpenAI's API. Helpful for passing in previous agent
step context into new iterations.
Parameters
steps: AgentStep[]
A list of AgentSteps to format.
Returns BaseMessage[]
A list of BaseMessages.
⚠️ Deprecated ⚠️
Use formatToOpenAIFunctionMessages instead.
This feature is deprecated and will be removed in the future.
Format a list of AgentSteps into a list of BaseMessage instances for agents that use OpenAI's API. Helpful for passing in previous agent step context into new iterations.