pub trait CompletionFeaturesDyn:
Send
+ Sync
+ 'static {
// Required methods
fn completion(
&self,
req: CompletionRequest,
) -> BoxPinFut<Result<AgentOutput, BoxError>>;
fn model_name(&self) -> String;
}Expand description
Object-safe completion provider interface.
Required Methods§
Sourcefn completion(
&self,
req: CompletionRequest,
) -> BoxPinFut<Result<AgentOutput, BoxError>>
fn completion( &self, req: CompletionRequest, ) -> BoxPinFut<Result<AgentOutput, BoxError>>
Performs a completion request and returns the agent-facing output.
Sourcefn model_name(&self) -> String
fn model_name(&self) -> String
Returns the provider model name used for diagnostics and usage reports.