Skip to main content

call_digest

Function call_digest 

Source
pub fn call_digest(
    tool: &str,
    arguments: &Value,
    tenant: Option<&str>,
    principal: Option<&str>,
    task: Option<&str>,
) -> String
Available on crate feature tool-loop only.
Expand description

sha256:<hex> of a call as an action: the tool, its arguments in canonical form, and who it is for (tenant, requester, task).

What an approval is bound to: a decision for this digest approves this call from this requester in this tenant and task, and not the same call from another, nor another call by the same.