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]