pub struct StateUpdate<S>where
S: StateSchema,{
pub data: <S as StateSchema>::Update,
}Fields§
§data: <S as StateSchema>::UpdateImplementations§
Source§impl<S> StateUpdate<S>where
S: StateSchema,
impl<S> StateUpdate<S>where
S: StateSchema,
pub fn new(data: <S as StateSchema>::Update) -> StateUpdate<S>
Trait Implementations§
Source§impl<S> Clone for StateUpdate<S>
impl<S> Clone for StateUpdate<S>
Source§fn clone(&self) -> StateUpdate<S>
fn clone(&self) -> StateUpdate<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for StateUpdate<S>
impl<S> Debug for StateUpdate<S>
Source§impl<'de, S> Deserialize<'de> for StateUpdate<S>where
S: StateSchema,
impl<'de, S> Deserialize<'de> for StateUpdate<S>where
S: StateSchema,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUpdate<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUpdate<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S> PartialEq for StateUpdate<S>
impl<S> PartialEq for StateUpdate<S>
Source§impl<S: StateSchema<Update = S>> Runnable<GraphState<S>, StateUpdate<S>> for ExecutableGraph<S>
impl<S: StateSchema<Update = S>> Runnable<GraphState<S>, StateUpdate<S>> for ExecutableGraph<S>
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: GraphState<S>,
) -> Pin<Box<dyn Future<Output = Result<StateUpdate<S>, WesichainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream<'a>( &'a self, input: GraphState<S>, ) -> BoxStream<'a, Result<StreamEvent, WesichainError>>
fn batch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn abatch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn to_serializable(&self) -> Option<SerializableRunnable>
Source§impl<S> Runnable<GraphState<S>, StateUpdate<S>> for RetrieverNode
impl<S> Runnable<GraphState<S>, StateUpdate<S>> for RetrieverNode
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: GraphState<S>,
) -> Pin<Box<dyn Future<Output = Result<StateUpdate<S>, WesichainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream( &self, _input: GraphState<S>, ) -> BoxStream<'_, Result<StreamEvent, WesichainError>>
fn batch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn abatch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn to_serializable(&self) -> Option<SerializableRunnable>
Source§impl<S> Runnable<GraphState<S>, StateUpdate<S>> for ToolNodewhere
S: StateSchema<Update = S> + HasToolCalls,
impl<S> Runnable<GraphState<S>, StateUpdate<S>> for ToolNodewhere
S: StateSchema<Update = S> + HasToolCalls,
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: GraphState<S>,
) -> Pin<Box<dyn Future<Output = Result<StateUpdate<S>, WesichainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream( &self, _input: GraphState<S>, ) -> BoxStream<'_, Result<StreamEvent, WesichainError>>
fn batch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn abatch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn to_serializable(&self) -> Option<SerializableRunnable>
Source§impl<S> Serialize for StateUpdate<S>where
S: StateSchema,
impl<S> Serialize for StateUpdate<S>where
S: StateSchema,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<S> StructuralPartialEq for StateUpdate<S>where
S: StateSchema,
Auto Trait Implementations§
impl<S> Freeze for StateUpdate<S>
impl<S> RefUnwindSafe for StateUpdate<S>
impl<S> Send for StateUpdate<S>
impl<S> Sync for StateUpdate<S>
impl<S> Unpin for StateUpdate<S>
impl<S> UnsafeUnpin for StateUpdate<S>
impl<S> UnwindSafe for StateUpdate<S>
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