Skip to content

Type Alias: WorkflowStep

@kortexya/reasoninglayer


@kortexya/reasoninglayer / WorkflowStep

WorkflowStep = object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | { else?: string | null; kind: "condition"; left: unknown; op: WorkflowConditionOp; right?: unknown; then?: string | null; } | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | object & Next | OpaqueWorkflowStep

Defined in: src/types/workflows.ts:33

One step of a workflow. kind keeps the engine’s names. request bodies (an action, an inference request) are the engine routes’ bodies as they are, in their snake_case wire shape.

object & Next

A read-only RLQL query on a private snapshot. Output: count, rows.


object & Next

Read an authorized native record by its supplied UUID. Project up to 32 feature names, or omit the list for all visible features. The engine caps the tagged term output at 1 MiB.


object & Next

Read authorized stored media through the existing parse-only transcription pipeline. A linked attachment requires both its supplied identity and the source’s current link feature. Output contains text and reported segments, plus their exact JSON string, without original media bytes. No URL fetch.


object & Next

An RLQL program that may write. Output: count, rows, created, updated.


object & Next

Stable native term write. request is a wire-shaped term body or one whole-object binding.


object & Next

Wait for a literal page observation from the explicitly selected browser session.


{ else?: string | null; kind: "condition"; left: unknown; op: WorkflowConditionOp; right?: unknown; then?: string | null; }

Go to then or else by comparing left with right.


object & Next

Send through one of the tenant’s channel adapters. Output: message_id.


object & Next

Put a review in the action-review queue and wait for its decision. Output: review_id, then approved, decided_by, note.


object & Next

POST /actions/apply with request. Output: the route’s response and status.


object & Next

One cycle of one of the tenant’s agents. Output: the cycle’s response.


object & Next

An inference job, waited for. Output: job_id, status, result, error.


object & Next

POST /generate: a text grounded in rootTermId and the terms around it, following template (a Markdown skeleton) and instructions (tone, language, length). Every citation is checked against the material; with requireVerified (the engine’s default) a text whose check fails fails the step. Writes nothing. Output: content, verified, drafted_by, coverage, provenance.


object & Next

Park the run for seconds (1 s to 30 days). Output: until.


object & Next

Ask one of the tenant’s agents a task: the agent runs skill as a child run with inputs. agentId, inputs and the task’s text take placeholders.


object & Next

Wait for the ask_agent steps named in asks.


object & Next

Search the web for query (the Space’s web_search setting applies).


object & Next

Split the goal term goalId with the declared HTN methods into task records.


OpaqueWorkflowStep