pub struct LlmNode(pub NodeIndex);
Tuple Fields§
§0: NodeIndex
Implementations§
Source§impl LlmNode
impl LlmNode
pub fn new<T: LlmBackend>(graph: &mut Graph, weight: LlmWeight<T>) -> Self
pub fn prompt(&self, graph: &Graph) -> Result<StoreWrapper, GetStoreError>
pub fn response(&self, graph: &Graph) -> Result<StoreWrapper, GetStoreError>
Trait Implementations§
Source§impl NodeWrapper for LlmNode
impl NodeWrapper for LlmNode
fn input_stores( self, graph: &Graph<GraphNode, GraphEdge>, ) -> impl Iterator<Item = StoreWrapper>
fn output_stores( self, graph: &Graph<GraphNode, GraphEdge>, ) -> impl Iterator<Item = StoreWrapper>
fn input_execution( self, graph: &Graph<GraphNode, GraphEdge>, ) -> impl Iterator<Item = NodeIndex>
fn output_execution( self, graph: &Graph<GraphNode, GraphEdge>, ) -> impl Iterator<Item = NodeIndex>
impl Copy for LlmNode
Auto Trait Implementations§
impl Freeze for LlmNode
impl RefUnwindSafe for LlmNode
impl Send for LlmNode
impl Sync for LlmNode
impl Unpin for LlmNode
impl UnwindSafe for LlmNode
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