pub struct LlmRequest {
pub model: Option<String>,
pub contents: Vec<Content>,
pub config: Option<Value>,
pub live_connect_config: Value,
pub tools_dict: String,
}Expand description
LLM request class that allows passing in tools, output schema and system instructions to the model.
Fields§
§model: Option<String>The model name.
contents: Vec<Content>The contents to send to the model.
config: Option<Value>Additional config for the generate content request. Tools in generateContentConfig should not be set directly; use appendTools.
live_connect_config: Value§tools_dict: StringThe tools dictionary. Excluded from JSON serialization.
Trait Implementations§
Source§impl Clone for LlmRequest
impl Clone for LlmRequest
Source§fn clone(&self) -> LlmRequest
fn clone(&self) -> LlmRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LlmRequest
impl RefUnwindSafe for LlmRequest
impl Send for LlmRequest
impl Sync for LlmRequest
impl Unpin for LlmRequest
impl UnwindSafe for LlmRequest
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