pub struct ToolCallSemantics {
pub effect: ToolCallEffect,
pub verification_mode: ToolVerificationMode,
pub mutation_effects: ToolMutationEffects,
pub target_hints: Vec<ToolTargetHint>,
pub operation: Option<ToolCallOperation>,
pub evidence: Vec<ToolEvidenceCapability>,
}Expand description
Structured completion semantics for a specific tool call.
Fields§
§effect: ToolCallEffect§verification_mode: ToolVerificationMode§mutation_effects: ToolMutationEffectsFine-grained mutation effects. Older persisted rows omit this field and continue to deserialize through the default empty set.
target_hints: Vec<ToolTargetHint>§operation: Option<ToolCallOperation>Adapter-defined canonical operation for policy matching. This is an
exact, typed identifier (for example GET or POST), not a natural-
language action inferred by the policy layer.
evidence: Vec<ToolEvidenceCapability>Typed claim-support affordances for this exact call/result. These are persisted in the durable receipt so recovery and completion do not have to reconstruct evidence from prose.
Implementations§
Source§impl ToolCallSemantics
impl ToolCallSemantics
Sourcepub fn with_untyped_change(&self) -> Self
pub fn with_untyped_change(&self) -> Self
These semantics plus a change static inspection cannot type: still
the observation they were, now also a mutation (UNSPECIFIED, which
proves only the checklist items the call carries out).
pub fn administrative() -> Self
pub fn observation() -> Self
pub fn mutation() -> Self
pub fn observation_and_mutation() -> Self
pub fn mutation_with(mutation_effects: ToolMutationEffects) -> Self
pub fn observation_and_mutation_with( mutation_effects: ToolMutationEffects, ) -> Self
pub fn with_verification_mode( self, verification_mode: ToolVerificationMode, ) -> Self
pub fn with_target_hint( self, kind: ToolTargetHintKind, value: impl Into<String>, ) -> Self
pub fn with_operation(self, operation: ToolCallOperation) -> Self
pub fn with_evidence(self, evidence: Vec<ToolEvidenceCapability>) -> Self
pub fn observes_state(&self) -> bool
pub fn mutates_state(&self) -> bool
pub fn can_verify_with_result_content(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn merge_missing_from(&mut self, fallback: Self)
Trait Implementations§
Source§impl Clone for ToolCallSemantics
impl Clone for ToolCallSemantics
Source§impl Debug for ToolCallSemantics
impl Debug for ToolCallSemantics
Source§impl Default for ToolCallSemantics
impl Default for ToolCallSemantics
Source§impl<'de> Deserialize<'de> for ToolCallSemantics
impl<'de> Deserialize<'de> for ToolCallSemantics
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 ToolCallSemantics
Source§impl PartialEq for ToolCallSemantics
impl PartialEq for ToolCallSemantics
Source§impl Serialize for ToolCallSemantics
impl Serialize for ToolCallSemantics
impl StructuralPartialEq for ToolCallSemantics
Auto Trait Implementations§
impl Forget for ToolCallSemantics
impl Freeze for ToolCallSemanticswhere
*const u8 is !null: Freeze,
PhantomData<ToolTargetHint>: Freeze,
PhantomData<ToolEvidenceCapability>: Freeze,
impl Move for ToolCallSemantics
impl RefUnwindSafe for ToolCallSemantics
impl Send for ToolCallSemanticswhere
RawVecInner: Send,
impl Sync for ToolCallSemanticswhere
RawVecInner: Sync,
impl Unpin for ToolCallSemantics
impl UnsafeUnpin for ToolCallSemanticswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ToolTargetHint>: UnsafeUnpin,
PhantomData<ToolEvidenceCapability>: UnsafeUnpin,
impl UnwindSafe for ToolCallSemanticswhere
RawVecInner: UnwindSafe,
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