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 LlmRequestwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
Bytes: Send,
BoxRaw<Schema>: Send,
NodeRef<Owned, String, Schema, LeafOrInternal>: Send,
BoxRaw<(String, Schema)>: Send,
NonZero<i32>: Send,
Utc: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
BoxRaw<[Pos]>: Send,
Arc<dyn Fn(Map<String, Value>) -> Map<String, Value> + Sync + Send>: Send,
RawTable<(String, Arc<dyn Any + Sync + Send>)>: Send,
impl Sync for LlmRequestwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
Bytes: Sync,
BoxRaw<Schema>: Sync,
NodeRef<Owned, String, Schema, LeafOrInternal>: Sync,
BoxRaw<(String, Schema)>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
BoxRaw<[Pos]>: Sync,
Arc<dyn Fn(Map<String, Value>) -> Map<String, Value> + Sync + Send>: Sync,
RawTable<(String, Arc<dyn Any + Sync + Send>)>: Sync,
impl Unpin for LlmRequestwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
Box<Schema>: Unpin,
*const LeafNode<String, Schema> is !null: Unpin,
Box<(String, Schema)>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Box<[Pos]>: Unpin,
Arc<dyn Fn(Map<String, Value>) -> Map<String, Value> + Sync + Send>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
impl UnsafeUnpin for LlmRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Content>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Schema>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const Schema is !null: UnsafeUnpin,
*const LeafNode<String, Schema> is !null: UnsafeUnpin,
PhantomData<Box<(String, Schema)>>: UnsafeUnpin,
PhantomData<SafetySetting>: UnsafeUnpin,
PhantomData<Tool>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
PhantomData<SpeakerVoiceConfig>: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
*const ArcInner<dyn Fn(Map<String, Value>) -> Map<String, Value> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(Map<String, Value>) -> Map<String, Value> + Sync + Send>>: UnsafeUnpin,
PhantomData<(String, Arc<dyn Any + Sync + Send>)>: UnsafeUnpin,
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