Expand description
Functions: the typed units of work a task runs.
Re-exports§
pub use crate::expr::ExprVisitor;pub use crate::expr::FieldKind;pub use crate::expr::FieldSpec;pub use crate::expr::Rendered;pub use crate::expr::ValueKind;
Modules§
Structs§
- Call
Info - Static facts about one call: where it sits in the program, and which iteration it is.
- Ctx
- A
Function’s view of one call. - Function
Info - One row of the
Registry::catalogue: a function, as tooling sees it. - Function
Spec - What a function says about itself, for tooling. Data only.
- Next
- The rest of a call’s chain: the run’s layers, then the registry’s, then the function. Each list runs outermost first.
- Prepare
- What
Function::prepareis told about the call site it prepares. - Reference
- A config field that names another definition, such as a connector.
- Registry
- Functions and layers, plus the
ExprEnginethey compile against. - Templated
- A plugin function’s config: the fields its manifest declared, compiled by
their kinds. The fields come from the
CompileCx’s runtime fields.
Enums§
- Outcome
- What a call tells the engine. v3’s
TaskOutcome, unchanged. - Retry
Safety - Is running a function twice the same as running it once?
Traits§
- Call
Layer - Around-call middleware for host calls.
- Function
- A host function: a typed config compiled once at build, and a call per task run.
- Function
Config - A function’s
input, compiled at build so a malformed one fails before any message runs.#[derive(FunctionConfig)]writes the implementation.
Type Aliases§
Derive Macros§
- Function
Config - Derives
FunctionConfig(andConfigField, so a derived config nests). DerivesFunctionConfigfor a function’s typed configuration, andConfigField, so a derived config nests inside another.