pub enum AfterInferenceAction {
Terminate(TerminationReason),
State(AnyStateAction),
}Expand description
Actions valid in AfterInference.
Variants§
Terminate(TerminationReason)
Request run termination after seeing the LLM response.
State(AnyStateAction)
Emit a persistent state change.
Trait Implementations§
Source§impl From<AfterInferenceAction> for ActionSet<AfterInferenceAction>
impl From<AfterInferenceAction> for ActionSet<AfterInferenceAction>
Source§fn from(a: AfterInferenceAction) -> Self
fn from(a: AfterInferenceAction) -> Self
Converts to this type from the input type.
Source§impl From<AnyStateAction> for AfterInferenceAction
impl From<AnyStateAction> for AfterInferenceAction
Source§fn from(sa: AnyStateAction) -> Self
fn from(sa: AnyStateAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AfterInferenceAction
impl !RefUnwindSafe for AfterInferenceAction
impl Send for AfterInferenceAction
impl !Sync for AfterInferenceAction
impl Unpin for AfterInferenceAction
impl UnsafeUnpin for AfterInferenceAction
impl !UnwindSafe for AfterInferenceAction
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