#[non_exhaustive]pub enum ToolMemoryPolicy {
Normal,
Protected,
}Expand description
Memory handling policy for model-visible tool/effect output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
Record normally.
Protected
Record as protected memory when supported by the memory implementation.
Implementations§
Source§impl ToolMemoryPolicy
impl ToolMemoryPolicy
Sourcepub fn is_protected(self) -> bool
pub fn is_protected(self) -> bool
Whether the output should be recorded as protected memory.
Trait Implementations§
Source§impl Clone for ToolMemoryPolicy
impl Clone for ToolMemoryPolicy
Source§fn clone(&self) -> ToolMemoryPolicy
fn clone(&self) -> ToolMemoryPolicy
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 moreimpl Copy for ToolMemoryPolicy
Source§impl Debug for ToolMemoryPolicy
impl Debug for ToolMemoryPolicy
Source§impl Default for ToolMemoryPolicy
impl Default for ToolMemoryPolicy
Source§fn default() -> ToolMemoryPolicy
fn default() -> ToolMemoryPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolMemoryPolicy
impl<'de> Deserialize<'de> for ToolMemoryPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolMemoryPolicy
Source§impl PartialEq for ToolMemoryPolicy
impl PartialEq for ToolMemoryPolicy
Source§impl Serialize for ToolMemoryPolicy
impl Serialize for ToolMemoryPolicy
impl StructuralPartialEq for ToolMemoryPolicy
Auto Trait Implementations§
impl Freeze for ToolMemoryPolicy
impl RefUnwindSafe for ToolMemoryPolicy
impl Send for ToolMemoryPolicy
impl Sync for ToolMemoryPolicy
impl Unpin for ToolMemoryPolicy
impl UnsafeUnpin for ToolMemoryPolicy
impl UnwindSafe for ToolMemoryPolicy
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