跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / datatransformation

Limit

Cap the number of items that flow through the workflow

数据 扩展程序网页应用

此内容尚不支持你的语言。

Cap the number of items that flow through the workflow.

Limit takes the whole list of incoming items at once and keeps at most Max Items of them: either the first ones or the last ones. Everything beyond the limit is dropped.

If the list already has fewer items than the limit, it passes through unchanged. A single object counts as a list of one.

  • Try a workflow on a small sample of a large list before running it on everything.
  • Keep only the most recent (or earliest) records, for example the last 5 rows after a Sort.
  • Protect an AI model or an outside service from being called for hundreds of items at once.
  • To drop items by a condition rather than by count, use Filter instead.
设置项类型作用
Max Items NumberThe maximum number of items to keep. 默认值:10
Keep ChoiceWhether to keep the first or the last items. Options: First items, Last items. 默认值:First items

Max Items must be a whole number of at least 1.

  • Output

The kept items, unchanged and in their original order. The next node runs once per kept item.

None. This node needs no connection and has no slots for other nodes.

  1. Get All Link collects every link on the current page.
  2. Limit with Max Items 5 and Keep First items.
  3. Get All Text from Link reads only those five pages.
  • “No source node is connected to this node.” Limit has no input. Connect the node that produces the list.
  • Limit seems to have no effect. The node before it sends one object that contains a list, not a list of items. Use Split Out first to turn that list into items.
  • Filter: keep items that match a condition.
  • Sort: order items before keeping the first or last.
  • Split Out: turn a list inside one item into separate items.
  • Remove Duplicates: drop repeated items.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Limit”