pub struct CompileConfig {
pub interrupt_before: Vec<String>,
pub interrupt_after: Vec<String>,
}Expand description
Configuration for graph compilation
Controls compile-time settings that become defaults for every execution
of the compiled graph. Runtime RunnableConfig
values override these when present.
§Examples
ⓘ
use juncture_core::graph::CompileConfig;
let config = CompileConfig {
interrupt_before: vec!["human_review".into()],
interrupt_after: vec!["llm_call".into()],
};
let compiled = graph.compile_with_config(config)?;Fields§
§interrupt_before: Vec<String>Nodes that should interrupt before execution (HITL)
When a node listed here is about to execute, the graph pauses and
returns control to the caller. Runtime interrupt_before in
[RunnableConfig] takes precedence over this list.
interrupt_after: Vec<String>Nodes that should interrupt after execution (HITL)
After a node listed here finishes executing, the graph pauses and
returns control to the caller. Runtime interrupt_after in
[RunnableConfig] takes precedence over this list.
Trait Implementations§
Source§impl Clone for CompileConfig
impl Clone for CompileConfig
Source§fn clone(&self) -> CompileConfig
fn clone(&self) -> CompileConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileConfig
impl Debug for CompileConfig
Source§impl Default for CompileConfig
impl Default for CompileConfig
Source§fn default() -> CompileConfig
fn default() -> CompileConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompileConfig
impl RefUnwindSafe for CompileConfig
impl Send for CompileConfig
impl Sync for CompileConfig
impl Unpin for CompileConfig
impl UnsafeUnpin for CompileConfig
impl UnwindSafe for CompileConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more