pub struct GraphBuilder { /* private fields */ }Expand description
Builder for constructing a Graph with optional components
Implementations§
Source§impl GraphBuilder
impl GraphBuilder
pub fn new() -> Self
Sourcepub fn llm_client(self, client: Arc<dyn LLMClient>) -> Self
pub fn llm_client(self, client: Arc<dyn LLMClient>) -> Self
Set the LLM client
Sourcepub fn reasoning_client(self, client: Arc<dyn ReasoningClient>) -> Self
pub fn reasoning_client(self, client: Arc<dyn ReasoningClient>) -> Self
Set the Reasoning client (for gpt-5, o1 models)
Sourcepub fn mcp_executor(self, executor: Arc<MCPToolExecutor>) -> Self
pub fn mcp_executor(self, executor: Arc<MCPToolExecutor>) -> Self
Set the MCP tool executor
Sourcepub fn config(self, config: GraphConfig) -> Self
pub fn config(self, config: GraphConfig) -> Self
Set the graph configuration
Sourcepub fn with_persistence(self, client: Arc<dyn PersistenceClient>) -> Self
pub fn with_persistence(self, client: Arc<dyn PersistenceClient>) -> Self
Enable persistence with a PersistenceClient
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphBuilder
impl !RefUnwindSafe for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl !UnwindSafe for GraphBuilder
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