@mindstudio-ai/agent 0.1.133 → 0.1.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -599,9 +599,8 @@ const agent = new MindStudioAgent({
599
599
 
600
600
  Handled automatically:
601
601
 
602
- - **Concurrency queue** — requests beyond the server's concurrent limit are queued and proceed as slots open up
603
- - **Auto-retry on 429** — rate-limited responses are retried using the `Retry-After` header (default: 3 retries, configurable via `maxRetries`)
604
- - **Call cap** — internal tokens are capped at 500 calls per execution
602
+ - **Concurrency queue** — requests beyond the server's concurrent limit are queued and proceed as slots open up. A step holds its slot until it finishes. Inside a MindStudio app each method execution has its own queue, matching the server's per-execution limit (10 in flight)
603
+ - **Auto-retry on 429** — rate-limited responses are retried using the `Retry-After` header (default: 3 retries, configurable via `maxRetries`). An app's method execution may make 500 calls in any 5 minutes; past that the server answers 429, and once the retries are spent the call throws `rate_limit_exceeded`
605
604
 
606
605
  Every result includes `$rateLimitRemaining` so you can throttle proactively.
607
606
 
@@ -625,7 +624,7 @@ try {
625
624
  } catch (err) {
626
625
  if (err instanceof MindStudioError) {
627
626
  console.error(err.message); // Human-readable message
628
- console.error(err.code); // "invalid_step_config", "api_error", "call_cap_exceeded", etc.
627
+ console.error(err.code); // "invalid_step_config", "api_error", "rate_limit_exceeded", etc.
629
628
  console.error(err.status); // HTTP status (400, 401, 429, etc.)
630
629
  console.error(err.details); // Raw API error body
631
630
  }