pub struct ToolInvocationIntent { /* private fields */ }Expand description
Immutable preparation intent for one logical tool invocation.
Implementations§
Source§impl ToolInvocationIntent
impl ToolInvocationIntent
Sourcepub fn new(
activation: NodeActivation,
invocation_id: InvocationId,
descriptor: ToolDescriptor,
input: ToolInput,
effective_limits: ToolExecutionLimits,
) -> Result<Self, ToolInvocationIntentError>
pub fn new( activation: NodeActivation, invocation_id: InvocationId, descriptor: ToolDescriptor, input: ToolInput, effective_limits: ToolExecutionLimits, ) -> Result<Self, ToolInvocationIntentError>
Constructs and checksums a durable invocation intent.
effective_limits is the already resolved intersection of system,
tenant, policy, run-budget, and descriptor ceilings. It may only narrow
the immutable descriptor.
§Errors
Returns ToolInvocationIntentError for schema substitution, widened
limits, oversized arguments, or an integrity serialization failure.
Sourcepub fn restore(
activation: NodeActivation,
invocation_id: InvocationId,
descriptor: ToolDescriptor,
input: ToolInput,
effective_limits: ToolExecutionLimits,
intent_digest: Digest,
) -> Result<Self, ToolInvocationIntentError>
pub fn restore( activation: NodeActivation, invocation_id: InvocationId, descriptor: ToolDescriptor, input: ToolInput, effective_limits: ToolExecutionLimits, intent_digest: Digest, ) -> Result<Self, ToolInvocationIntentError>
Restores an intent and verifies its invariant and checksum layers.
§Errors
Returns ToolInvocationIntentError when validation or integrity fails.
Sourcepub const fn activation(&self) -> &NodeActivation
pub const fn activation(&self) -> &NodeActivation
Returns the owning graph-node activation.
Sourcepub const fn invocation_id(&self) -> InvocationId
pub const fn invocation_id(&self) -> InvocationId
Returns the stable logical invocation identifier.
Sourcepub const fn descriptor(&self) -> &ToolDescriptor
pub const fn descriptor(&self) -> &ToolDescriptor
Returns the exact registered tool-version snapshot.
Sourcepub const fn effective_limits(&self) -> &ToolExecutionLimits
pub const fn effective_limits(&self) -> &ToolExecutionLimits
Returns the invocation’s resolved effective ceilings.
Sourcepub const fn intent_digest(&self) -> Digest
pub const fn intent_digest(&self) -> Digest
Returns the domain-separated preparation fingerprint.
Trait Implementations§
Source§impl Clone for ToolInvocationIntent
impl Clone for ToolInvocationIntent
Source§impl Debug for ToolInvocationIntent
impl Debug for ToolInvocationIntent
Source§impl<'de> Deserialize<'de> for ToolInvocationIntent
impl<'de> Deserialize<'de> for ToolInvocationIntent
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>,
impl Eq for ToolInvocationIntent
Source§impl JsonSchema for ToolInvocationIntent
impl JsonSchema for ToolInvocationIntent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more