Skip to content
Proud to collaborate with Microsoft for Startups

agents.model-capacity.acquire ​

Atomically reserve one agent model call against admitted RPM and TPM

Reserve one model request against session and provider rolling limits.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal model-call capacity admission

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
organization_uuidstringYes——
turnintegerYes——
requested_tokensintegerYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
permittedbooleanYes——
blocker_codestringNo——
retry_after_secondsintegerNo——
idempotentbooleanNo——
session_rpm_usedintegerNo——
session_tpm_usedintegerNo——
provider_rpm_usedintegerNo——
provider_tpm_usedintegerNo——
session_uuidstringNo——
errorstringNo——
error_typestringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.model-capacity.acquire",
  "initial_data": {
    "session_uuid": "value",
    "organization_uuid": "value",
    "turn": 123,
    "requested_tokens": 123
  }
}