Q17: budget every model request against the provider's context window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 04:40:02 -04:00
1 parent f42ab62dbd
commit f4d16eb46a
26 files changed
+247 -52

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ export interface UpdateProviderPolicyInput {
backgroundEnabled: boolean;
monthlyRequestLimit: number;
workspaceScope: "organization" | "workspace";
contextWindowTokens: number;
}
export interface CreateProviderResponseInput {
+2
View File
@@ -19,6 +19,8 @@ export interface ResolveAgentSkillsInput {
orgId: string;
agentId: string;
runId: string;
/** Token budget for the compiled skills. */
maxTokens: number;
}
export interface RunSkillTestsInput {
+2
View File
@@ -284,6 +284,8 @@ export interface ProviderRecord {
backgroundEnabled: boolean;
monthlyRequestLimit: number;
workspaceScope: string;
/** Model context window the run budget is computed against. */
contextWindowTokens: number;
createdAt: string;
}