pub struct AnthropicSystemBlock {
pub block_type: &'static str,
pub text: String,
pub cache_control: Option<AnthropicCacheControl>,
}Expand description
A single block in the structured system array.
Pass cache_control on the last block to enable Anthropic prompt caching.
Fields§
§block_type: &'static str§text: String§cache_control: Option<AnthropicCacheControl>Implementations§
Trait Implementations§
Source§impl Debug for AnthropicSystemBlock
impl Debug for AnthropicSystemBlock
Auto Trait Implementations§
impl Freeze for AnthropicSystemBlock
impl RefUnwindSafe for AnthropicSystemBlock
impl Send for AnthropicSystemBlock
impl Sync for AnthropicSystemBlock
impl Unpin for AnthropicSystemBlock
impl UnsafeUnpin for AnthropicSystemBlock
impl UnwindSafe for AnthropicSystemBlock
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