SDK reference / Models / AgentService

AiAgentApproval

Kind: class

Namespace: Egulu.Sdk.Models.AgentService

A tool call a run is waiting on: the plan a person accepts or refuses (ADR-0902, ADR-0906). It is bound to the digest of its arguments: what wasaccepted is exactly what runs. The tool's name, arguments and the reason are the platform's record, not the model's words about itself.

Properties

NameTypeJSON nameDescription
Argumentsstring?argumentsThe arguments of the call (redacted, capped at 4 KiB); what runs once approved.
ArgumentsSha256string?argumentsSha256The SHA-256 of `arguments`: send it back with `:accept` to say you saw exactly this.
CreateTimeDateTimeOffset?createTimeThe createTime property
DecideTimeDateTimeOffset?decideTimeThe decideTime property
DecidedBystring?decidedByThe decidedBy property
ExpireTimeDateTimeOffset?expireTimeThe expireTime property
Namestring?nameprojects/{project}/locations/{location}/aiAgents/{agent}/runs/{run}/approvals/{step}.
Notestring?noteThe note property
Reasonstring?reasonWhy a person is needed: the risk class, the Rule of Two, or the agent's own setting.
Riskstring?risk`R0` to `R3`.
Runstring?runThe run.
Sponsorstring?sponsorThe agent's sponsor, who may decide it; so may a holder of `agents.approvals.decide`.
StateModels.AgentService.AiAgentApprovalState?stateThe state of an approval.
Stepint?stepThe step of the tool call.
Toolstring?toolThe tool property