pub trait Prompt: WasmCompatSend + WasmCompatSync {
// Required method
fn prompt(
&self,
prompt: impl Into<Message> + WasmCompatSend,
) -> impl IntoFuture<Output = Result<String, PromptError>, IntoFuture: WasmCompatSend>;
}Expand description
High-level one-shot prompting for the classic runtime.
Required Methods§
Sourcefn prompt(
&self,
prompt: impl Into<Message> + WasmCompatSend,
) -> impl IntoFuture<Output = Result<String, PromptError>, IntoFuture: WasmCompatSend>
fn prompt( &self, prompt: impl Into<Message> + WasmCompatSend, ) -> impl IntoFuture<Output = Result<String, PromptError>, IntoFuture: WasmCompatSend>
Send a prompt and return accepted assistant text after runtime orchestration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".