Skip to main content

StreamingPrompt

Trait StreamingPrompt 

Source
pub trait StreamingPrompt {
    // Required method
    fn stream_prompt(
        &self,
        prompt: impl Into<Message> + WasmCompatSend,
    ) -> StreamingPromptRequest;
}
Expand description

High-level one-shot streaming prompt interface.

Required Methods§

Source

fn stream_prompt( &self, prompt: impl Into<Message> + WasmCompatSend, ) -> StreamingPromptRequest

Create a classic streaming request for prompt.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§