agent-afk 5.103.0 → 5.103.1
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/shared/truncation.d.ts +5 -0
- package/dist/agent/session/closure-reason.d.ts +2 -1
- package/dist/cli.mjs +525 -521
- package/dist/index.mjs +197 -193
- package/dist/telegram.mjs +251 -247
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const TRUNCATION_STOP_REASONS: readonly ["max_tokens", "length", "max_output_tokens"];
|
|
2
|
+
export declare function isTruncationStopReason(stopReason: string | null | undefined): boolean;
|
|
3
|
+
export declare function truncationNotice(droppedToolNames: string[], stopReason?: string | null, options?: {
|
|
4
|
+
canIncreaseOutputLimit?: boolean;
|
|
5
|
+
}): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ClosureReason } from '../trace/index.js';
|
|
2
|
-
|
|
2
|
+
import { isTruncationStopReason } from '../providers/shared/truncation.js';
|
|
3
|
+
export { isTruncationStopReason };
|
|
3
4
|
export interface ClosureReasonInputs {
|
|
4
5
|
dispatchReason: string;
|
|
5
6
|
maxTurnsHit: boolean;
|