Planear límite de solicitudes
rate-limit-planCalcula, para un límite de N solicitudes por ventana, el espaciado mínimo, la duración total mínima y la espera del próximo llamado. Cuándo: un flujo de agente necesita un resultado exacto y repetible para un paso auxiliar (tokens, costos, reintentos, fragmentos, ranking, limpieza de JSON). No para: calcular los tiempos de espera entre reintentos (backoff-schedule). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Computes, for a limit of N requests per window and a number of calls to make, the minimum spacing between calls, the minimum total duration and a token-bucket wait time for the next call. When: an agent loop needs an exact, repeatable result for a bookkeeping step (tokens, costs, retries, chunking, ranking, JSON clean-up). [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| burst | No | Bucket capacity (default = limit) (integer; optional; min 1; max 1000000000). | |
| calls | No | Calls you need to make (integer; optional; default 0; min 0; max 1000000000). | |
| limit | Yes | Requests allowed per window (integer; required; min 1; max 1000000000). | |
| window_seconds | Yes | Window length in seconds (number; required; > 0; max 31536000). | |
| tokens_available | No | Tokens currently in bucket (number; optional; min 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windows_needed | No | ||
| rate_per_second | No | ||
| min_total_seconds | No | ||
| min_spacing_seconds | No | ||
| next_call_wait_seconds | No |