Skip to content

项目列表输出解析器节点#

¥Item List Output Parser node

使用“项目列表输出解析器”节点,返回具有特定长度和分隔符的项目列表。

¥Use the Item List Output Parser node to return a list of items with a specific length and separator.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点选项#

¥Node options

  • 项目数量:输入要返回的最大项数。设置为 -1 可处理无限数量的项目。

¥Number of Items: Enter the maximum items to return. Set to -1 for unlimited items.

  • 分隔符:选择用于将结果拆分为单独项的分隔符。默认为换行符。

¥Separator: Select the separator used to split the results into separate items. Defaults to a new line.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

有关服务的更多信息,请参阅 LangChain 的输出解析器文档

¥Refer to LangChain's output parser documentation for more information about the service.

View n8n's Advanced AI documentation.