pub struct M2IntegrationService { /* private fields */ }Expand description
Primary M2 integration service.
The full interleaved-thinking engine is not yet wired in.
Implementations§
Source§impl M2IntegrationService
impl M2IntegrationService
Sourcepub async fn new(
config: M2Config,
integration_config: M2IntegrationConfig,
) -> Result<Self, Error>
pub async fn new( config: M2Config, integration_config: M2IntegrationConfig, ) -> Result<Self, Error>
Create a new service.
Sourcepub async fn execute_for_use_case(
&self,
_use_case: UseCase,
_input: ProtocolInput,
_framework: Option<AgentFramework>,
) -> Result<InterleavedResult, Error>
pub async fn execute_for_use_case( &self, _use_case: UseCase, _input: ProtocolInput, _framework: Option<AgentFramework>, ) -> Result<InterleavedResult, Error>
Execute an M2 run for a UseCase.
Currently returns Error::M2ExecutionError because the integration is a stub.
Sourcepub fn classify_use_case(
&self,
use_case: UseCase,
_input: &ProtocolInput,
) -> Result<TaskClassification, Error>
pub fn classify_use_case( &self, use_case: UseCase, _input: &ProtocolInput, ) -> Result<TaskClassification, Error>
Map a high-level UseCase to a TaskClassification.
Trait Implementations§
Source§impl Clone for M2IntegrationService
impl Clone for M2IntegrationService
Source§fn clone(&self) -> M2IntegrationService
fn clone(&self) -> M2IntegrationService
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 moreAuto Trait Implementations§
impl Freeze for M2IntegrationService
impl RefUnwindSafe for M2IntegrationService
impl Send for M2IntegrationService
impl Sync for M2IntegrationService
impl Unpin for M2IntegrationService
impl UnwindSafe for M2IntegrationService
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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