pub struct CacheKeyInput {
pub model: String,
pub messages: Vec<Message>,
pub tools: Vec<ToolDefinition>,
pub config: Option<CallOptions>,
}Expand description
Cache key input for LLM response caching
Used to generate cache keys for LLM responses.
Fields§
§model: StringModel name
messages: Vec<Message>Messages
tools: Vec<ToolDefinition>Tools
config: Option<CallOptions>Call options
Implementations§
Source§impl CacheKeyInput
impl CacheKeyInput
Trait Implementations§
Source§impl Clone for CacheKeyInput
impl Clone for CacheKeyInput
Source§fn clone(&self) -> CacheKeyInput
fn clone(&self) -> CacheKeyInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheKeyInput
impl RefUnwindSafe for CacheKeyInput
impl Send for CacheKeyInput
impl Sync for CacheKeyInput
impl Unpin for CacheKeyInput
impl UnsafeUnpin for CacheKeyInput
impl UnwindSafe for CacheKeyInput
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