Skip to content

PendingApproval

← All HTTP schemas

The pending tool approval request of a run that executes from the queue.

Shape: object

Property Required Type Description Rules
id yes string (uuid) Gets the record id.
tenantId yes string Gets the tenant id.
runId yes string (uuid) Gets the run that produced this request and closed with RunStatus.AwaitingApproval.
sessionId yes string Gets the session of the run. While the decision is applied, the continuing run is put on the queue with this session.
requestId yes string Gets the ToolApprovalRequestContent.RequestId value produced by MAF.
toolName yes string Gets the name of the tool that asks for approval.
arguments no string Gets the arguments of the tool call as key=value pairs (reflection-based JSON serialization is NOT USED, to stay AOT compatible). It stays null when RecordToolPayloads is turned off in the recording settings.
status yes ApprovalStatus Gets the status of the request.
decidedBy no string Gets the actor that made the decision, or null when no decision was made.
decidedAt no string (date-time) Gets the time of the decision, or null when no decision was made.
expiresAt yes string (date-time) Gets the time after which the request counts as ApprovalStatus.Expired.
createdAt yes string (date-time) Gets the creation time.