pub struct LlmRequest {
pub model: String,
pub contents: Vec<Content>,
pub config: Option<GenerateContentConfig>,
pub http_options: Option<HttpOptions>,
pub tools: HashMap<String, Arc<dyn Any + Send + Sync>>,
}Expand description
The raw LLM request.
Fields§
§model: StringThe model name.
contents: Vec<Content>The conversation contents.
config: Option<GenerateContentConfig>Generation config.
http_options: Option<HttpOptions>HTTP options for this request.
tools: HashMap<String, Arc<dyn Any + Send + Sync>>Tools available to this request, keyed by name (not serialized).
Trait Implementations§
Source§impl Clone for LlmRequest
impl Clone for LlmRequest
Source§impl Debug for LlmRequest
impl Debug for LlmRequest
Auto Trait Implementations§
impl !Freeze for LlmRequest
impl !RefUnwindSafe for LlmRequest
impl !UnwindSafe for LlmRequest
impl Forget for LlmRequest
impl Move for LlmRequest
impl Send for LlmRequest
impl Sync for LlmRequest
impl Unpin for LlmRequest
impl UnsafeUnpin 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