pub enum SessionGraphAction {
Accept {
node_id: String,
output_id: String,
},
Cancel,
ExtendBudget {
additional_calls: usize,
budget_id: String,
},
Reply {
message: String,
node_id: String,
},
Resume,
Retry {
node_id: String,
},
}Expand description
What a SessionGraphActionRequest does.
Variants§
Accept
Accepts output_id, one output of node_id’s latest execution.
Fields
§
output_id: Stringcrate::GraphResultRef::id of the output.
Cancel
Cancels the graph permanently, without cancelling other session work.
ExtendBudget
Adds provider calls to budget_id, a spent budget of the graph.
Fields
§
additional_calls: usizeCalls to add, from one to
crate::ExtendGraphBudgetRequest::MAX_ADDITIONAL_CALLS.
§
budget_id: StringThe spent budget to extend, as SessionGraph::exhausted_budget
named it; a pending node of the snapshot must wait for it.
Reply
Sends message as guidance that revises node_id’s output.
Resume
Restarts dispatch of a paused graph.
Retry
Runs node_id again after it failed or was cancelled.
Trait Implementations§
Source§impl Clone for SessionGraphAction
impl Clone for SessionGraphAction
Source§impl Debug for SessionGraphAction
impl Debug for SessionGraphAction
impl Eq for SessionGraphAction
Source§impl PartialEq for SessionGraphAction
impl PartialEq for SessionGraphAction
impl StructuralPartialEq for SessionGraphAction
Auto Trait Implementations§
impl Forget for SessionGraphAction
impl Freeze for SessionGraphAction
impl Move for SessionGraphAction
impl RefUnwindSafe for SessionGraphAction
impl Send for SessionGraphAction
impl Sync for SessionGraphAction
impl Unpin for SessionGraphAction
impl UnsafeUnpin for SessionGraphAction
impl UnwindSafe for SessionGraphAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.