Skip to main content

Module value

Module value 

Source
Expand description

Runtime values.

Value is the single dynamic value type flowing through a workflow. Large payloads (strings, arrays, objects, files) are reference-counted, so cloning a value — and therefore cloning a crate::pool::VariablePool — is O(1) per entry instead of a deep copy.

Secrets are a distinct variant. They render in plaintext only where a node explicitly asks for the raw value (Value::expose_secret); every serialization path (events, logs, snapshots) masks them.

Structs§

File
A reference to a file. Content is resolved by the host.
TypeMismatch
Error returned when a value does not match a declared ValueType.

Enums§

FileKind
Coarse file category used for routing (e.g. vision inputs).
FileTransfer
How a file’s bytes are reachable. The runtime never reads file bytes itself; nodes that need content ask a host-provided resolver.
SecretError
Error returned when a secret’s plaintext is required but unavailable.
Value
A dynamic runtime value.
ValueType
Declared type of a variable. Wire names are stable and used in workflow documents.

Constants§

FILE_MARKER_KEY
Marker key used to serialize File values as plain JSON objects.
SECRET_MARKER_KEY
Marker key used for secrets inside snapshots: {"$secret": "redacted"}.
SECRET_MASK
Text shown instead of a secret’s contents.

Type Aliases§

Map
Ordered string-keyed map used for object values.