Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/openhuman/flows/agents/workflow_builder/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ the run scope (`.`):
the first output is used; a bad program yields `null` (never an error).
- A string **without** a leading `=` is a literal. To emit a literal `=`, don't
start the string with it.
- **Never mix the shorthand with jq.** If an expression **begins with a bare
scope key** (`item`/`items`/`run`/`nodes`) and continues into jq syntax —
`|`, `[`, functions (`any(...)`, `length`), or anything beyond a plain
dotted path — it MUST start with `.` instead (the jq root): write
`"=.item.labels | any(.name==\"x\")"`, NOT `"=item.labels | any(...)"`. The
plain shorthand `"=item.labels"` (no jq) is fine alone. Expressions that
already start with valid jq syntax (e.g. `"=[.item.a, .item.b]"` for array
construction) don't need an extra leading dot — only bare scope keys do.

The scope exposes:

Expand Down
2 changes: 1 addition & 1 deletion vendor/tinyflows
Loading