Skip to main content

StreamingPrompt

Trait StreamingPrompt 

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

High-level one-shot streaming prompt interface.

Required Methods§

Source

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

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§