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) -> ToolCallSemantics
pub fn with_untyped_change(&self) -> ToolCallSemantics
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() -> ToolCallSemantics
pub fn observation() -> ToolCallSemantics
pub fn mutation() -> ToolCallSemantics
pub fn observation_and_mutation() -> ToolCallSemantics
pub fn mutation_with(mutation_effects: ToolMutationEffects) -> ToolCallSemantics
pub fn observation_and_mutation_with( mutation_effects: ToolMutationEffects, ) -> ToolCallSemantics
pub fn with_verification_mode( self, verification_mode: ToolVerificationMode, ) -> ToolCallSemantics
pub fn with_target_hint( self, kind: ToolTargetHintKind, value: impl Into<String>, ) -> ToolCallSemantics
pub fn with_operation(self, operation: ToolCallOperation) -> ToolCallSemantics
pub fn with_evidence( self, evidence: Vec<ToolEvidenceCapability>, ) -> ToolCallSemantics
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: ToolCallSemantics)
Trait Implementations§
Source§impl Clone for ToolCallSemantics
impl Clone for ToolCallSemantics
Source§fn clone(&self) -> ToolCallSemantics
fn clone(&self) -> ToolCallSemantics
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 ToolCallSemantics
impl Debug for ToolCallSemantics
Source§impl Default for ToolCallSemantics
impl Default for ToolCallSemantics
Source§fn default() -> ToolCallSemantics
fn default() -> ToolCallSemantics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallSemantics
impl<'de> Deserialize<'de> for ToolCallSemantics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallSemantics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallSemantics, <__D as Deserializer<'de>>::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
Source§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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more