pub struct EffectIntent {
pub target_key: String,
pub effect_class: ToolSideEffectClass,
pub scope: EffectScope,
pub canonical_args_digest: ContentDigest,
}Expand description
Canonical, typed description of the effect a tool call intends to perform.
Fields§
§target_key: String§effect_class: ToolSideEffectClass§scope: EffectScope§canonical_args_digest: ContentDigestImplementations§
Source§impl EffectIntent
impl EffectIntent
Sourcepub fn digest(&self) -> ContentDigest
pub fn digest(&self) -> ContentDigest
Digests the complete typed effect rather than any provider-specific JSON spelling.
Trait Implementations§
Source§impl Clone for EffectIntent
impl Clone for EffectIntent
Source§fn clone(&self) -> EffectIntent
fn clone(&self) -> EffectIntent
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 moreSource§impl Debug for EffectIntent
impl Debug for EffectIntent
Source§impl<'de> Deserialize<'de> for EffectIntent
impl<'de> Deserialize<'de> for EffectIntent
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 EffectIntent
Source§impl PartialEq for EffectIntent
impl PartialEq for EffectIntent
Source§impl Serialize for EffectIntent
impl Serialize for EffectIntent
impl StructuralPartialEq for EffectIntent
Auto Trait Implementations§
impl Freeze for EffectIntent
impl RefUnwindSafe for EffectIntent
impl Send for EffectIntent
impl Sync for EffectIntent
impl Unpin for EffectIntent
impl UnsafeUnpin for EffectIntent
impl UnwindSafe for EffectIntent
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