MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / with_conditional_handlers

Method with_conditional_handlers

core/src/workflow.rs:228–234  ·  view source on GitHub ↗

Register handlers for [`NodeType::Condition`] nodes (e.g. from Python callables).

(
        mut self,
        handlers: HashMap<String, ConditionalRouteFn>,
    )

Source from the content-addressed store, hash-verified

226
227 /// Register handlers for [`NodeType::Condition`] nodes (e.g. from Python callables).
228 pub fn with_conditional_handlers(
229 mut self,
230 handlers: HashMap<String, ConditionalRouteFn>,
231 ) -> Self {
232 self.conditional_handlers = Arc::new(handlers);
233 self
234 }
235
236 /// Disable retries
237 pub fn without_retries(mut self) -> Self {

Calls

no outgoing calls

Tested by

no test coverage detected