Q71: rate limits seen on successful calls are recorded and park an exhausted provider

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 12:18:40 -04:00
1 parent bb279ff85a
commit 05e296bd5d
8 files changed
+79 -21

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
import type { ProviderObservedRateLimitState } from "../../shared/provider-runtime-domain";
/**
* Shared contract for a single tool-use ("function calling") turn against any
* provider backend. The agent loop maintains a normalized conversation
@@ -30,6 +31,8 @@ export interface AgentTurnResult {
text: string;
toolCalls: ToolCall[];
rawResponseJson: string;
/** Rate-limit headers of the response, when the provider sent any. */
rateLimitState?: ProviderObservedRateLimitState | null;
}
/** Resolved per-request credential, already refreshed if it was an OAuth token. */