Skip to main content

Crate synaptic_runnables

Crate synaptic_runnables 

Source

Structs§

BoxRunnable
A type-erased runnable that supports the | pipe operator for composition.
RetryPolicy
Retry policy configuration for RunnableRetry.
RunnableAssign
Runs named branches in parallel on the input, then merges results into the input object. Input must be a JSON object. Each branch receives a clone of the full input.
RunnableBranch
Routes input to different runnables based on condition functions. The first matching condition’s runnable is invoked. If none match, the default runnable is used.
RunnableEach
Maps a runnable over each element in a list input, producing a list of outputs.
RunnableGenerator
A runnable built from a generator function that yields streaming output.
RunnableLambda
Wraps an async closure as a Runnable.
RunnableParallel
Runs multiple named runnables concurrently on the same (cloned) input, merging outputs into a JSON object keyed by branch name.
RunnablePassthrough
Passes the input through unchanged. Useful in parallel compositions where one branch should preserve the original input.
RunnablePick
Extracts specified keys from a JSON object input.
RunnableRetry
Wraps a runnable with configurable retry logic and exponential backoff.
RunnableSequence
Chains two runnables: output of first feeds into second. Created automatically via the | operator on BoxRunnable.
RunnableWithFallbacks
Tries the primary runnable first. If it fails, tries each fallback in order. Input must be Clone so it can be retried on fallbacks.

Traits§

Runnable
The core composition trait. All LCEL components implement this.

Type Aliases§

IdentityRunnable
Backward-compatible alias for RunnablePassthrough.
RunnableOutputStream
A stream of results from a runnable.