Table of Contents

Class ToolApprovalDecision

Namespace
LMKit.Agents.Runs
Assembly
LM-Kit.NET.dll

A person's decision on a tool call a run stopped for: approve it (as asked, or with edited arguments where the host allows it) or deny it with a reason. Bound to one call and to the exact arguments it was shown (ArgumentsHash): a decision for another call, or for arguments that changed, is refused. Only the host produces decisions; nothing the model says becomes one.

public sealed class ToolApprovalDecision
Inheritance
ToolApprovalDecision
Inherited Members

Properties

Approved

Gets or sets whether the call is approved.

ArgumentsHash

Gets or sets the hash of the arguments the person was shown (ArgumentsHash).

CallId

Gets or sets the call the decision is for.

DecidedBy

Gets or sets who decided, for the record.

EditedArgumentsJson

Gets or sets arguments that replace the model's, as JSON, for an approval that edits them; null keeps them.

Reason

Gets or sets why the call was denied; the model is told it.

Methods

Approve(AgentRunToolCall, string)

Approves a call as it was asked.

Deny(AgentRunToolCall, string, string)

Denies a call; the model is told the reason and the call never runs.

Share