some more ops

could we make subgraphs as ops or patterns like this?
This commit is contained in:
lda
2026-05-29 22:19:55 +07:00 Verified
parent c3ce74dd7b
commit 4211d1b7fa
7 changed files with 225 additions and 1 deletions
+6 -1
View File
@@ -2,7 +2,8 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Any
from wf_authoring import NodeSpec, coalesce, constant, default_if_none, first_item
from wf_authoring import NodeSpec, coalesce, concat, constant, default_if_none
from wf_authoring import extract_field, filter_items, filter_items_present, first_item
from wf_authoring import first_item_maybe, first_item_or_none, is_empty, last_item
from wf_authoring import last_item_or_none, length, node, pick_key, pick_path
from wf_authoring import project_fields, rename_fields, runtime_error, truthy
@@ -43,6 +44,10 @@ AUTHORING_STD_SPECS: tuple[NodeSpec[Any, Any], ...] = (
last_item_or_none,
length,
is_empty,
filter_items,
filter_items_present,
extract_field,
concat,
)
"""Existing authoring ops that are also exposed through the workflow stdlib."""