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.
A list of AgentSteps to format.
A list of BaseMessages.
Use formatToOpenAIFunctionMessages instead.
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Generated using TypeDoc
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.