pub struct LlmCacheKeyInput {
pub model: String,
pub messages: Vec<Value>,
pub tools: Vec<Value>,
pub config: Option<()>,
}Expand description
Input for LLM cache key generation
Contains the parameters that influence cache key generation for LLM calls.
§Examples
use juncture_tracing::types::LlmCacheKeyInput;
use serde_json::json;
let input = LlmCacheKeyInput {
model: "gpt-4".to_string(),
messages: vec![json!({"role": "user", "content": "Hello"})],
tools: vec![],
config: None,
};Fields§
§model: StringModel name
messages: Vec<Value>Messages in the conversation
tools: Vec<Value>Tools available in the call
config: Option<()>Optional call configuration
Reserved for future use with CallOptions type.
Currently unused but kept for API compatibility.
Trait Implementations§
Source§impl Clone for LlmCacheKeyInput
impl Clone for LlmCacheKeyInput
Source§fn clone(&self) -> LlmCacheKeyInput
fn clone(&self) -> LlmCacheKeyInput
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 LlmCacheKeyInput
impl RefUnwindSafe for LlmCacheKeyInput
impl Send for LlmCacheKeyInput
impl Sync for LlmCacheKeyInput
impl Unpin for LlmCacheKeyInput
impl UnsafeUnpin for LlmCacheKeyInput
impl UnwindSafe for LlmCacheKeyInput
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