pub struct LLMInput {
pub model: LLMModel,
pub messages: Vec<LLMMessage>,
pub max_tokens: u32,
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§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 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 LLMInput
impl RefUnwindSafe for LLMInput
impl Send for LLMInput
impl Sync for LLMInput
impl Unpin for LLMInput
impl UnwindSafe for LLMInput
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