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

+2 -2
View File
@@ -408,7 +408,7 @@ describe("task execution service", () => {
dataPolicy: PROVIDER_DATA_POLICY.STANDARD,
backgroundEnabled: false,
monthlyRequestLimit: 5,
workspaceScope: "organization",
workspaceScope: "organization", contextWindowTokens: 128_000,
});
const agentId = organization.createAgent({
orgId,
@@ -452,7 +452,7 @@ describe("task execution service", () => {
dataPolicy: PROVIDER_DATA_POLICY.STANDARD,
backgroundEnabled: false,
monthlyRequestLimit: 50,
workspaceScope: "organization",
workspaceScope: "organization", contextWindowTokens: 128_000,
}));
const enqueued = connection.transaction(() => execution.enqueueHeartbeatRuns());
expect(enqueued).toHaveLength(1);