pub struct LLMStreamInput {
pub model: LLMModel,
pub messages: Vec<LLMMessage>,
pub max_tokens: u32,
pub stream_channel_tx: Sender<GenerationDelta>,
pub tools: Option<Vec<LLMTool>>,
pub provider_options: Option<LLMProviderOptions>,
pub headers: Option<HashMap<String, String>>,
}Fields§
§model: LLMModel§messages: Vec<LLMMessage>§max_tokens: u32§stream_channel_tx: Sender<GenerationDelta>§tools: Option<Vec<LLMTool>>§provider_options: Option<LLMProviderOptions>§headers: Option<HashMap<String, String>>Custom headers to pass to the inference provider
Trait Implementations§
Source§impl Debug for LLMStreamInput
impl Debug for LLMStreamInput
Source§impl From<&LLMStreamInput> for LLMInput
impl From<&LLMStreamInput> for LLMInput
Source§fn from(value: &LLMStreamInput) -> Self
fn from(value: &LLMStreamInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LLMStreamInput
impl RefUnwindSafe for LLMStreamInput
impl Send for LLMStreamInput
impl Sync for LLMStreamInput
impl Unpin for LLMStreamInput
impl UnwindSafe for LLMStreamInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more