pub trait FinalSamplingContextExt {
// Required method
fn final_sampling(
&self,
input_key: impl Into<String>,
parameters: FinalEmbeddedCreateMessageParams,
) -> McpResult<FinalSampling>;
}Expand description
Final-only sampling construction for McpContext.
Import this trait to build a final embedded sampling request inside a final
handler. Return it through FinalToolOutcome::InputRequired, then read
the typed final response with MrtrCompletedInputs::sampling after retry.
Required Methods§
Sourcefn final_sampling(
&self,
input_key: impl Into<String>,
parameters: FinalEmbeddedCreateMessageParams,
) -> McpResult<FinalSampling>
fn final_sampling( &self, input_key: impl Into<String>, parameters: FinalEmbeddedCreateMessageParams, ) -> McpResult<FinalSampling>
Builds one capability-gated final MRTR sampling descriptor.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".