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]

合并两个消息内容。

参数:

first_content:第一个内容。 second_content:第二个内容。

返回:

合并后的内容。

Parameters
  • first_content (Union[str, List[Union[str, Dict]]]) –

  • second_content (Union[str, List[Union[str, Dict]]]) –

Return type

Union[str, List[Union[str, Dict]]]