langchain_community.adapters.openai
.convert_openai_messages¶
- langchain_community.adapters.openai.convert_openai_messages(messages: Sequence[Dict[str, Any]]) List[BaseMessage] [source]¶
Convert dictionaries representing OpenAI messages to LangChain format.
- Parameters
messages – List of dictionaries representing OpenAI messages
- Returns
List of LangChain BaseMessage objects.