merge_content#
- langchain_core.messages.base.merge_content(first_content: str | list[str | dict], *contents: str | list[str | dict]) str | list[str | dict] [source]#
Merge two message contents.
- Parameters:
first_content (str | list[str | dict]) – The first content. Can be a string or a list.
second_content – The second content. Can be a string or a list.
contents (str | list[str | dict])
- Returns:
The merged content.
- Return type:
str | list[str | dict]