pub trait RoutedDecisionClient: Send + Sync {
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
request: DecisionRequest,
) -> Pin<Box<dyn Future<Output = Result<DecisionResponse, LlmClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Serves typed decision calls over a host-owned transport. Implementations may be shared across targets and called concurrently.
Required Methods§
Sourcefn call<'life0, 'async_trait>(
&'life0 self,
request: DecisionRequest,
) -> Pin<Box<dyn Future<Output = Result<DecisionResponse, LlmClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
request: DecisionRequest,
) -> Pin<Box<dyn Future<Output = Result<DecisionResponse, LlmClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Evaluate the request using its selected model.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".