Struct SopEngineAdapters
pub struct SopEngineAdapters {
pub route: Option<Arc<dyn ApprovalRouteAdapter>>,
pub forge: Option<Arc<dyn ForgeCommentAdapter>>,
pub llm: Option<Arc<dyn LlmGenerateAdapter>>,
}Expand description
Injected side-effect adapters for build_sop_engine. Each is optional and
fail-closed when absent: the route falls back to the log-only no-op adapter,
and the forge.comment / llm.generate capabilities report a clear failure
instead of acting. The daemon injects real implementations; CLI / standalone
callers pass SopEngineAdapters::default().
Fields§
§route: Option<Arc<dyn ApprovalRouteAdapter>>Delivers approval request / escalation notices to a channel.
forge: Option<Arc<dyn ForgeCommentAdapter>>Posts a SOP step’s comment to a git forge (forge.comment).
llm: Option<Arc<dyn LlmGenerateAdapter>>Runs one bounded model call as a pipeline step (llm.generate).
Trait Implementations§
Source§impl Default for SopEngineAdapters
impl Default for SopEngineAdapters
Source§fn default() -> SopEngineAdapters
fn default() -> SopEngineAdapters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SopEngineAdapters
impl !RefUnwindSafe for SopEngineAdapters
impl Send for SopEngineAdapters
impl Sync for SopEngineAdapters
impl Unpin for SopEngineAdapters
impl UnsafeUnpin for SopEngineAdapters
impl !UnwindSafe for SopEngineAdapters
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more