langchain_core.messages.base
.merge_content¶
- langchain_core.messages.base.merge_content(first_content: Union[str, List[Union[str, Dict]]], second_content: Union[str, List[Union[str, Dict]]]) Union[str, List[Union[str, Dict]]] [source]¶
Merge two message contents.
- Parameters
first_content (Union[str, List[Union[str, Dict]]]) – The first content.
second_content (Union[str, List[Union[str, Dict]]]) – The second content.
- Returns
The merged content.
- Return type
Union[str, List[Union[str, Dict]]]