Struct BedrockCacheStrategy
pub struct BedrockCacheStrategy {
pub system: Option<BedrockCachePoint>,
pub tools: Option<BedrockCachePoint>,
pub messages: Vec<BedrockMessageCachePoint>,
}Expand description
Explicit Bedrock Converse cache-point placement strategy.
Current Converse models with manual cache points allow at most four points per request. The adapter enforces that shared request ceiling without inferring behavior from the model ID.
Fields§
§system: Option<BedrockCachePoint>Cache point appended after top-level system content.
tools: Option<BedrockCachePoint>Cache point appended after tool specifications.
messages: Vec<BedrockMessageCachePoint>Cache points appended after selected normalized history turns.
Trait Implementations§
§impl Clone for BedrockCacheStrategy
impl Clone for BedrockCacheStrategy
§fn clone(&self) -> BedrockCacheStrategy
fn clone(&self) -> BedrockCacheStrategy
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 more§impl Debug for BedrockCacheStrategy
impl Debug for BedrockCacheStrategy
§impl Default for BedrockCacheStrategy
impl Default for BedrockCacheStrategy
§fn default() -> BedrockCacheStrategy
fn default() -> BedrockCacheStrategy
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for BedrockCacheStrategy
impl<'de> Deserialize<'de> for BedrockCacheStrategy
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BedrockCacheStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BedrockCacheStrategy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BedrockCacheStrategy
§impl PartialEq for BedrockCacheStrategy
impl PartialEq for BedrockCacheStrategy
§fn eq(&self, other: &BedrockCacheStrategy) -> bool
fn eq(&self, other: &BedrockCacheStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for BedrockCacheStrategy
impl Serialize for BedrockCacheStrategy
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BedrockCacheStrategy
Auto Trait Implementations§
impl Freeze for BedrockCacheStrategy
impl RefUnwindSafe for BedrockCacheStrategy
impl Send for BedrockCacheStrategy
impl Sync for BedrockCacheStrategy
impl Unpin for BedrockCacheStrategy
impl UnsafeUnpin for BedrockCacheStrategy
impl UnwindSafe for BedrockCacheStrategy
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