agent-afk 5.275.6 → 5.276.0
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/dist/agent/providers/openai-compatible/query/overload-pause-tier.d.ts +13 -0
- package/dist/cli.mjs +301 -301
- package/dist/index.mjs +125 -125
- package/dist/telegram.mjs +144 -144
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProviderEvent } from '../../../provider.js';
|
|
2
|
+
import type { TraceSink } from '../../../trace/index.js';
|
|
3
|
+
import type { IterationResult } from './stream-drive.js';
|
|
4
|
+
export declare const OPENAI_COMPAT_OVERLOAD_EXHAUSTED_NOTICE: string;
|
|
5
|
+
export declare function isOverloadErrorEvent(event: ProviderEvent): boolean;
|
|
6
|
+
export interface OverloadPauseTierContext {
|
|
7
|
+
surface: string | undefined;
|
|
8
|
+
traceWriter: TraceSink | undefined;
|
|
9
|
+
signal: AbortSignal;
|
|
10
|
+
isClosed: () => boolean;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function runIterationWithOverloadPause(makeIteration: () => AsyncGenerator<ProviderEvent, IterationResult | null>, ctx: OverloadPauseTierContext): AsyncGenerator<ProviderEvent, IterationResult | null>;
|