pub struct GraphLoader;Implementations§
Source§impl GraphLoader
impl GraphLoader
Sourcepub fn load_from_str(yaml: &str) -> Result<StateGraph>
pub fn load_from_str(yaml: &str) -> Result<StateGraph>
Load a graph from YAML string
LLM nodes will be created as placeholders that log but don’t execute.
Use load_from_str_with_context to provide a model provider for
functional LLM nodes.
Sourcepub fn load_from_str_with_context(
yaml: &str,
ctx: &GraphLoaderContext,
) -> Result<StateGraph>
pub fn load_from_str_with_context( yaml: &str, ctx: &GraphLoaderContext, ) -> Result<StateGraph>
Load a graph from YAML string with runtime context
If the context contains a model provider, LLM nodes will be created as functional nodes that execute actual LLM calls.
Auto Trait Implementations§
impl Freeze for GraphLoader
impl RefUnwindSafe for GraphLoader
impl Send for GraphLoader
impl Sync for GraphLoader
impl Unpin for GraphLoader
impl UnsafeUnpin for GraphLoader
impl UnwindSafe for GraphLoader
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