Tembory Action Guard icon

Tembory Action Guard

Deterministically validates and records protected tool actions before and after execution

Confirmar Sucesso

AI-generated

Summary

Records a successful completion for a previously reserved action by sending its reservation ID, conversation and user IDs, action output, and any produced IDs to Tembory. Stops the workflow with an error if Tembory cannot record the result or refuses to close the reservation.

Inputs

  • ID da Conversa (`threadId`) (required) — Stable conversation identifier; use the same value used when reserving the action. Defaults to temboryGuard.scope.threadId, then threadId or sessionId from the input item.
  • ID do Usuário (`userId`) (required) — Stable user identifier; use the same value used when reserving the action. Defaults to temboryGuard.scope.userId, then userId, customerId, threadId, or sessionId from the input item.
  • ID da Reserva (`reservationId`) (required) — Reservation identifier to close, defaulting to temboryGuard.reservationId or reservationId from the input item.
  • Saída da Ação (`actionOutput`) — JSON result of the completed action, defaulting to actionOutput or the full input item JSON.
  • IDs Produzidos (`producedIds`) — Optional JSON object of identifiers produced by the action; defaults to producedIds from the input item or an empty object.

Output shape

One output item per input item, preserving the input JSON and adding temboryGuard with Tembory's response and the threadId and userId scope.

Calls Tembory's action commit endpoint. Throws an item-scoped error if the request fails or the response does not have ok: true; no output item is returned for that failure.

Examples

Example 1: Confirm a successfully executed action

Provide the reservation ID returned by the reserve step, the same conversation and user IDs, and optionally the action output and produced IDs.

Links

Discussion