@dexto/core 1.5.3 → 1.5.5
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/DextoAgent.cjs +190 -1
- package/dist/agent/DextoAgent.d.ts +71 -0
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +181 -1
- package/dist/agent/schemas.d.ts +51 -21
- package/dist/agent/schemas.d.ts.map +1 -1
- package/dist/context/compaction/overflow.cjs +6 -10
- package/dist/context/compaction/overflow.d.ts +14 -11
- package/dist/context/compaction/overflow.d.ts.map +1 -1
- package/dist/context/compaction/overflow.js +6 -10
- package/dist/context/compaction/providers/reactive-overflow-provider.cjs +15 -0
- package/dist/context/compaction/providers/reactive-overflow-provider.d.ts +15 -0
- package/dist/context/compaction/providers/reactive-overflow-provider.d.ts.map +1 -1
- package/dist/context/compaction/providers/reactive-overflow-provider.js +15 -0
- package/dist/context/compaction/schemas.cjs +22 -2
- package/dist/context/compaction/schemas.d.ts +45 -0
- package/dist/context/compaction/schemas.d.ts.map +1 -1
- package/dist/context/compaction/schemas.js +22 -2
- package/dist/context/compaction/strategies/reactive-overflow.cjs +168 -26
- package/dist/context/compaction/strategies/reactive-overflow.d.ts +22 -0
- package/dist/context/compaction/strategies/reactive-overflow.d.ts.map +1 -1
- package/dist/context/compaction/strategies/reactive-overflow.js +168 -26
- package/dist/context/compaction/types.d.ts +13 -1
- package/dist/context/compaction/types.d.ts.map +1 -1
- package/dist/context/manager.cjs +278 -31
- package/dist/context/manager.d.ts +192 -5
- package/dist/context/manager.d.ts.map +1 -1
- package/dist/context/manager.js +285 -32
- package/dist/context/types.d.ts +6 -0
- package/dist/context/types.d.ts.map +1 -1
- package/dist/context/utils.cjs +77 -11
- package/dist/context/utils.d.ts +86 -8
- package/dist/context/utils.d.ts.map +1 -1
- package/dist/context/utils.js +71 -11
- package/dist/errors/types.cjs +0 -2
- package/dist/errors/types.d.ts +1 -5
- package/dist/errors/types.d.ts.map +1 -1
- package/dist/errors/types.js +0 -2
- package/dist/events/index.cjs +2 -0
- package/dist/events/index.d.ts +21 -6
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +2 -0
- package/dist/llm/executor/stream-processor.cjs +104 -28
- package/dist/llm/executor/stream-processor.d.ts +7 -0
- package/dist/llm/executor/stream-processor.d.ts.map +1 -1
- package/dist/llm/executor/stream-processor.js +104 -28
- package/dist/llm/executor/turn-executor.cjs +147 -30
- package/dist/llm/executor/turn-executor.d.ts +28 -10
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.js +147 -30
- package/dist/llm/formatters/vercel.cjs +36 -28
- package/dist/llm/formatters/vercel.d.ts.map +1 -1
- package/dist/llm/formatters/vercel.js +36 -28
- package/dist/llm/services/factory.cjs +3 -2
- package/dist/llm/services/factory.d.ts +3 -1
- package/dist/llm/services/factory.d.ts.map +1 -1
- package/dist/llm/services/factory.js +3 -2
- package/dist/llm/services/vercel.cjs +31 -6
- package/dist/llm/services/vercel.d.ts +18 -3
- package/dist/llm/services/vercel.d.ts.map +1 -1
- package/dist/llm/services/vercel.js +31 -6
- package/dist/session/chat-session.cjs +29 -13
- package/dist/session/chat-session.d.ts +6 -4
- package/dist/session/chat-session.d.ts.map +1 -1
- package/dist/session/chat-session.js +29 -13
- package/dist/session/session-manager.cjs +11 -0
- package/dist/session/session-manager.d.ts +7 -0
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/session/session-manager.js +11 -0
- package/dist/session/title-generator.cjs +2 -2
- package/dist/session/title-generator.js +2 -2
- package/dist/systemPrompt/in-built-prompts.cjs +36 -0
- package/dist/systemPrompt/in-built-prompts.d.ts +18 -1
- package/dist/systemPrompt/in-built-prompts.d.ts.map +1 -1
- package/dist/systemPrompt/in-built-prompts.js +25 -0
- package/dist/systemPrompt/manager.cjs +22 -0
- package/dist/systemPrompt/manager.d.ts +10 -0
- package/dist/systemPrompt/manager.d.ts.map +1 -1
- package/dist/systemPrompt/manager.js +22 -0
- package/dist/systemPrompt/registry.cjs +2 -1
- package/dist/systemPrompt/registry.d.ts +1 -1
- package/dist/systemPrompt/registry.d.ts.map +1 -1
- package/dist/systemPrompt/registry.js +2 -1
- package/dist/systemPrompt/schemas.cjs +7 -0
- package/dist/systemPrompt/schemas.d.ts +13 -13
- package/dist/systemPrompt/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.js +7 -0
- package/dist/telemetry/telemetry.cjs +12 -5
- package/dist/telemetry/telemetry.d.ts.map +1 -1
- package/dist/telemetry/telemetry.js +12 -5
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +15 -5
- package/dist/filesystem/error-codes.cjs +0 -53
- package/dist/filesystem/error-codes.d.ts +0 -31
- package/dist/filesystem/error-codes.d.ts.map +0 -1
- package/dist/filesystem/error-codes.js +0 -30
- package/dist/filesystem/errors.cjs +0 -303
- package/dist/filesystem/errors.d.ts +0 -109
- package/dist/filesystem/errors.d.ts.map +0 -1
- package/dist/filesystem/errors.js +0 -280
- package/dist/filesystem/filesystem-service.cjs +0 -534
- package/dist/filesystem/filesystem-service.d.ts +0 -97
- package/dist/filesystem/filesystem-service.d.ts.map +0 -1
- package/dist/filesystem/filesystem-service.js +0 -501
- package/dist/filesystem/index.cjs +0 -37
- package/dist/filesystem/index.d.ts +0 -11
- package/dist/filesystem/index.d.ts.map +0 -1
- package/dist/filesystem/index.js +0 -11
- package/dist/filesystem/path-validator.cjs +0 -250
- package/dist/filesystem/path-validator.d.ts +0 -103
- package/dist/filesystem/path-validator.d.ts.map +0 -1
- package/dist/filesystem/path-validator.js +0 -217
- package/dist/filesystem/types.cjs +0 -16
- package/dist/filesystem/types.d.ts +0 -175
- package/dist/filesystem/types.d.ts.map +0 -1
- package/dist/filesystem/types.js +0 -0
- package/dist/process/command-validator.cjs +0 -554
- package/dist/process/command-validator.d.ts +0 -49
- package/dist/process/command-validator.d.ts.map +0 -1
- package/dist/process/command-validator.js +0 -531
- package/dist/process/error-codes.cjs +0 -47
- package/dist/process/error-codes.d.ts +0 -25
- package/dist/process/error-codes.d.ts.map +0 -1
- package/dist/process/error-codes.js +0 -24
- package/dist/process/errors.cjs +0 -244
- package/dist/process/errors.d.ts +0 -87
- package/dist/process/errors.d.ts.map +0 -1
- package/dist/process/errors.js +0 -221
- package/dist/process/index.cjs +0 -37
- package/dist/process/index.d.ts +0 -11
- package/dist/process/index.d.ts.map +0 -1
- package/dist/process/index.js +0 -11
- package/dist/process/process-service.cjs +0 -497
- package/dist/process/process-service.d.ts +0 -69
- package/dist/process/process-service.d.ts.map +0 -1
- package/dist/process/process-service.js +0 -464
- package/dist/process/types.cjs +0 -16
- package/dist/process/types.d.ts +0 -107
- package/dist/process/types.d.ts.map +0 -1
- package/dist/process/types.js +0 -0
package/dist/agent/schemas.d.ts
CHANGED
|
@@ -1138,18 +1138,18 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1138
1138
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1139
1139
|
} & {
|
|
1140
1140
|
type: z.ZodLiteral<"dynamic">;
|
|
1141
|
-
source: z.ZodEnum<["date", "resources"]>;
|
|
1141
|
+
source: z.ZodEnum<["date", "env", "resources"]>;
|
|
1142
1142
|
}, "strict", z.ZodTypeAny, {
|
|
1143
1143
|
type: "dynamic";
|
|
1144
1144
|
enabled: boolean;
|
|
1145
1145
|
id: string;
|
|
1146
1146
|
priority: number;
|
|
1147
|
-
source: "date" | "resources";
|
|
1147
|
+
source: "date" | "env" | "resources";
|
|
1148
1148
|
}, {
|
|
1149
1149
|
type: "dynamic";
|
|
1150
1150
|
id: string;
|
|
1151
1151
|
priority: number;
|
|
1152
|
-
source: "date" | "resources";
|
|
1152
|
+
source: "date" | "env" | "resources";
|
|
1153
1153
|
enabled?: boolean | undefined;
|
|
1154
1154
|
}>, z.ZodObject<{
|
|
1155
1155
|
id: z.ZodString;
|
|
@@ -1216,7 +1216,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1216
1216
|
enabled: boolean;
|
|
1217
1217
|
id: string;
|
|
1218
1218
|
priority: number;
|
|
1219
|
-
source: "date" | "resources";
|
|
1219
|
+
source: "date" | "env" | "resources";
|
|
1220
1220
|
} | {
|
|
1221
1221
|
type: "file";
|
|
1222
1222
|
options: {
|
|
@@ -1242,7 +1242,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
1242
1242
|
type: "dynamic";
|
|
1243
1243
|
id: string;
|
|
1244
1244
|
priority: number;
|
|
1245
|
-
source: "date" | "resources";
|
|
1245
|
+
source: "date" | "env" | "resources";
|
|
1246
1246
|
enabled?: boolean | undefined;
|
|
1247
1247
|
} | {
|
|
1248
1248
|
type: "file";
|
|
@@ -3183,12 +3183,18 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3183
3183
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
3184
3184
|
type: z.ZodString;
|
|
3185
3185
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3186
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
3187
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
3186
3188
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3187
3189
|
type: z.ZodString;
|
|
3188
3190
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3191
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
3192
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
3189
3193
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3190
3194
|
type: z.ZodString;
|
|
3191
3195
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3196
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
3197
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
3192
3198
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
3193
3199
|
}, "strict", z.ZodTypeAny, {
|
|
3194
3200
|
llm: {
|
|
@@ -3312,7 +3318,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3312
3318
|
enabled: boolean;
|
|
3313
3319
|
id: string;
|
|
3314
3320
|
priority: number;
|
|
3315
|
-
source: "date" | "resources";
|
|
3321
|
+
source: "date" | "env" | "resources";
|
|
3316
3322
|
} | {
|
|
3317
3323
|
type: "file";
|
|
3318
3324
|
options: {
|
|
@@ -3417,6 +3423,8 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3417
3423
|
compaction: {
|
|
3418
3424
|
type: string;
|
|
3419
3425
|
enabled: boolean;
|
|
3426
|
+
thresholdPercent: number;
|
|
3427
|
+
maxContextTokens?: number | undefined;
|
|
3420
3428
|
} & {
|
|
3421
3429
|
[k: string]: unknown;
|
|
3422
3430
|
};
|
|
@@ -3629,7 +3637,7 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
3629
3637
|
type: "dynamic";
|
|
3630
3638
|
id: string;
|
|
3631
3639
|
priority: number;
|
|
3632
|
-
source: "date" | "resources";
|
|
3640
|
+
source: "date" | "env" | "resources";
|
|
3633
3641
|
enabled?: boolean | undefined;
|
|
3634
3642
|
} | {
|
|
3635
3643
|
type: "file";
|
|
@@ -4018,6 +4026,8 @@ export declare function createAgentConfigSchema(options?: LLMValidationOptions):
|
|
|
4018
4026
|
compaction?: z.objectInputType<{
|
|
4019
4027
|
type: z.ZodString;
|
|
4020
4028
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4029
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
4030
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
4021
4031
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4022
4032
|
}>, "ValidatedAgentConfig">;
|
|
4023
4033
|
/**
|
|
@@ -4059,18 +4069,18 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4059
4069
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4060
4070
|
} & {
|
|
4061
4071
|
type: z.ZodLiteral<"dynamic">;
|
|
4062
|
-
source: z.ZodEnum<["date", "resources"]>;
|
|
4072
|
+
source: z.ZodEnum<["date", "env", "resources"]>;
|
|
4063
4073
|
}, "strict", z.ZodTypeAny, {
|
|
4064
4074
|
type: "dynamic";
|
|
4065
4075
|
enabled: boolean;
|
|
4066
4076
|
id: string;
|
|
4067
4077
|
priority: number;
|
|
4068
|
-
source: "date" | "resources";
|
|
4078
|
+
source: "date" | "env" | "resources";
|
|
4069
4079
|
}, {
|
|
4070
4080
|
type: "dynamic";
|
|
4071
4081
|
id: string;
|
|
4072
4082
|
priority: number;
|
|
4073
|
-
source: "date" | "resources";
|
|
4083
|
+
source: "date" | "env" | "resources";
|
|
4074
4084
|
enabled?: boolean | undefined;
|
|
4075
4085
|
}>, z.ZodObject<{
|
|
4076
4086
|
id: z.ZodString;
|
|
@@ -4137,7 +4147,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4137
4147
|
enabled: boolean;
|
|
4138
4148
|
id: string;
|
|
4139
4149
|
priority: number;
|
|
4140
|
-
source: "date" | "resources";
|
|
4150
|
+
source: "date" | "env" | "resources";
|
|
4141
4151
|
} | {
|
|
4142
4152
|
type: "file";
|
|
4143
4153
|
options: {
|
|
@@ -4163,7 +4173,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
4163
4173
|
type: "dynamic";
|
|
4164
4174
|
id: string;
|
|
4165
4175
|
priority: number;
|
|
4166
|
-
source: "date" | "resources";
|
|
4176
|
+
source: "date" | "env" | "resources";
|
|
4167
4177
|
enabled?: boolean | undefined;
|
|
4168
4178
|
} | {
|
|
4169
4179
|
type: "file";
|
|
@@ -6104,12 +6114,18 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6104
6114
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
6105
6115
|
type: z.ZodString;
|
|
6106
6116
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6117
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
6118
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
6107
6119
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
6108
6120
|
type: z.ZodString;
|
|
6109
6121
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6122
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
6123
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
6110
6124
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
6111
6125
|
type: z.ZodString;
|
|
6112
6126
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6127
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
6128
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
6113
6129
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
6114
6130
|
}, "strict", z.ZodTypeAny, {
|
|
6115
6131
|
llm: {
|
|
@@ -6233,7 +6249,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6233
6249
|
enabled: boolean;
|
|
6234
6250
|
id: string;
|
|
6235
6251
|
priority: number;
|
|
6236
|
-
source: "date" | "resources";
|
|
6252
|
+
source: "date" | "env" | "resources";
|
|
6237
6253
|
} | {
|
|
6238
6254
|
type: "file";
|
|
6239
6255
|
options: {
|
|
@@ -6338,6 +6354,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6338
6354
|
compaction: {
|
|
6339
6355
|
type: string;
|
|
6340
6356
|
enabled: boolean;
|
|
6357
|
+
thresholdPercent: number;
|
|
6358
|
+
maxContextTokens?: number | undefined;
|
|
6341
6359
|
} & {
|
|
6342
6360
|
[k: string]: unknown;
|
|
6343
6361
|
};
|
|
@@ -6550,7 +6568,7 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6550
6568
|
type: "dynamic";
|
|
6551
6569
|
id: string;
|
|
6552
6570
|
priority: number;
|
|
6553
|
-
source: "date" | "resources";
|
|
6571
|
+
source: "date" | "env" | "resources";
|
|
6554
6572
|
enabled?: boolean | undefined;
|
|
6555
6573
|
} | {
|
|
6556
6574
|
type: "file";
|
|
@@ -6939,6 +6957,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
6939
6957
|
compaction?: z.objectInputType<{
|
|
6940
6958
|
type: z.ZodString;
|
|
6941
6959
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6960
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
6961
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
6942
6962
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
6943
6963
|
}>, "ValidatedAgentConfig">;
|
|
6944
6964
|
/**
|
|
@@ -6980,18 +7000,18 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
6980
7000
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6981
7001
|
} & {
|
|
6982
7002
|
type: z.ZodLiteral<"dynamic">;
|
|
6983
|
-
source: z.ZodEnum<["date", "resources"]>;
|
|
7003
|
+
source: z.ZodEnum<["date", "env", "resources"]>;
|
|
6984
7004
|
}, "strict", z.ZodTypeAny, {
|
|
6985
7005
|
type: "dynamic";
|
|
6986
7006
|
enabled: boolean;
|
|
6987
7007
|
id: string;
|
|
6988
7008
|
priority: number;
|
|
6989
|
-
source: "date" | "resources";
|
|
7009
|
+
source: "date" | "env" | "resources";
|
|
6990
7010
|
}, {
|
|
6991
7011
|
type: "dynamic";
|
|
6992
7012
|
id: string;
|
|
6993
7013
|
priority: number;
|
|
6994
|
-
source: "date" | "resources";
|
|
7014
|
+
source: "date" | "env" | "resources";
|
|
6995
7015
|
enabled?: boolean | undefined;
|
|
6996
7016
|
}>, z.ZodObject<{
|
|
6997
7017
|
id: z.ZodString;
|
|
@@ -7058,7 +7078,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7058
7078
|
enabled: boolean;
|
|
7059
7079
|
id: string;
|
|
7060
7080
|
priority: number;
|
|
7061
|
-
source: "date" | "resources";
|
|
7081
|
+
source: "date" | "env" | "resources";
|
|
7062
7082
|
} | {
|
|
7063
7083
|
type: "file";
|
|
7064
7084
|
options: {
|
|
@@ -7084,7 +7104,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
7084
7104
|
type: "dynamic";
|
|
7085
7105
|
id: string;
|
|
7086
7106
|
priority: number;
|
|
7087
|
-
source: "date" | "resources";
|
|
7107
|
+
source: "date" | "env" | "resources";
|
|
7088
7108
|
enabled?: boolean | undefined;
|
|
7089
7109
|
} | {
|
|
7090
7110
|
type: "file";
|
|
@@ -9025,12 +9045,18 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9025
9045
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
9026
9046
|
type: z.ZodString;
|
|
9027
9047
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9048
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
9049
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
9028
9050
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9029
9051
|
type: z.ZodString;
|
|
9030
9052
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9053
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
9054
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
9031
9055
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9032
9056
|
type: z.ZodString;
|
|
9033
9057
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9058
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
9059
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
9034
9060
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
9035
9061
|
}, "strict", z.ZodTypeAny, {
|
|
9036
9062
|
llm: {
|
|
@@ -9154,7 +9180,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9154
9180
|
enabled: boolean;
|
|
9155
9181
|
id: string;
|
|
9156
9182
|
priority: number;
|
|
9157
|
-
source: "date" | "resources";
|
|
9183
|
+
source: "date" | "env" | "resources";
|
|
9158
9184
|
} | {
|
|
9159
9185
|
type: "file";
|
|
9160
9186
|
options: {
|
|
@@ -9259,6 +9285,8 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9259
9285
|
compaction: {
|
|
9260
9286
|
type: string;
|
|
9261
9287
|
enabled: boolean;
|
|
9288
|
+
thresholdPercent: number;
|
|
9289
|
+
maxContextTokens?: number | undefined;
|
|
9262
9290
|
} & {
|
|
9263
9291
|
[k: string]: unknown;
|
|
9264
9292
|
};
|
|
@@ -9471,7 +9499,7 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9471
9499
|
type: "dynamic";
|
|
9472
9500
|
id: string;
|
|
9473
9501
|
priority: number;
|
|
9474
|
-
source: "date" | "resources";
|
|
9502
|
+
source: "date" | "env" | "resources";
|
|
9475
9503
|
enabled?: boolean | undefined;
|
|
9476
9504
|
} | {
|
|
9477
9505
|
type: "file";
|
|
@@ -9860,6 +9888,8 @@ export declare const AgentConfigSchemaRelaxed: z.ZodBranded<z.ZodObject<{
|
|
|
9860
9888
|
compaction?: z.objectInputType<{
|
|
9861
9889
|
type: z.ZodString;
|
|
9862
9890
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9891
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
9892
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
9863
9893
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
9864
9894
|
}>, "ValidatedAgentConfig">;
|
|
9865
9895
|
export type AgentConfig = z.input<typeof AgentConfigSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAkBxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM/B,CAAC;AAkEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA6C,CAAC;AAGnF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAGtE,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -22,19 +22,15 @@ __export(overflow_exports, {
|
|
|
22
22
|
isOverflow: () => isOverflow
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(overflow_exports);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
const outputBuffer = Math.min(maxOutput, DEFAULT_OUTPUT_BUFFER);
|
|
29
|
-
const usableTokens = contextWindow - outputBuffer;
|
|
25
|
+
function isOverflow(tokens, modelLimits, thresholdPercent = 0.9) {
|
|
26
|
+
const { contextWindow } = modelLimits;
|
|
27
|
+
const effectiveLimit = Math.floor(contextWindow * thresholdPercent);
|
|
30
28
|
const inputTokens = tokens.inputTokens ?? 0;
|
|
31
|
-
return inputTokens >
|
|
29
|
+
return inputTokens > effectiveLimit;
|
|
32
30
|
}
|
|
33
31
|
function getCompactionTarget(modelLimits, targetPercentage = 0.7) {
|
|
34
|
-
const { contextWindow
|
|
35
|
-
|
|
36
|
-
const usableTokens = contextWindow - outputBuffer;
|
|
37
|
-
return Math.floor(usableTokens * targetPercentage);
|
|
32
|
+
const { contextWindow } = modelLimits;
|
|
33
|
+
return Math.floor(contextWindow * targetPercentage);
|
|
38
34
|
}
|
|
39
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
36
|
0 && (module.exports = {
|
|
@@ -4,29 +4,32 @@ import type { TokenUsage } from '../../llm/types.js';
|
|
|
4
4
|
* These limits define the context window boundaries.
|
|
5
5
|
*/
|
|
6
6
|
export interface ModelLimits {
|
|
7
|
-
/** Maximum context window size in tokens */
|
|
7
|
+
/** Maximum context window size in tokens (the model's input limit) */
|
|
8
8
|
contextWindow: number;
|
|
9
|
-
/** Maximum output tokens the model can generate */
|
|
10
|
-
maxOutput: number;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
13
|
-
* Determines if the context has overflowed based on
|
|
11
|
+
* Determines if the context has overflowed based on token usage.
|
|
14
12
|
*
|
|
15
13
|
* Overflow is detected when:
|
|
16
|
-
*
|
|
14
|
+
* inputTokens > contextWindow * thresholdPercent
|
|
17
15
|
*
|
|
18
|
-
* The
|
|
16
|
+
* The thresholdPercent allows triggering compaction before hitting 100% (e.g., at 90%).
|
|
17
|
+
* This provides a safety margin for estimation errors and prevents hitting hard limits.
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Note: We don't reserve space for "output" because input and output have separate limits
|
|
20
|
+
* in LLM APIs. The model's output doesn't consume from the input context window.
|
|
21
|
+
*
|
|
22
|
+
* @param tokens The token usage (actual from API or estimated)
|
|
23
|
+
* @param modelLimits The model's context window limit
|
|
24
|
+
* @param thresholdPercent Percentage of context window at which to trigger (default 0.9 = 90%)
|
|
22
25
|
* @returns true if context has overflowed and compaction is needed
|
|
23
26
|
*/
|
|
24
|
-
export declare function isOverflow(tokens: TokenUsage, modelLimits: ModelLimits): boolean;
|
|
27
|
+
export declare function isOverflow(tokens: TokenUsage, modelLimits: ModelLimits, thresholdPercent?: number): boolean;
|
|
25
28
|
/**
|
|
26
29
|
* Calculate the compaction target - how many tokens we need to reduce to.
|
|
27
30
|
*
|
|
28
|
-
* @param modelLimits The model's context window
|
|
29
|
-
* @param targetPercentage What percentage of
|
|
31
|
+
* @param modelLimits The model's context window limit
|
|
32
|
+
* @param targetPercentage What percentage of context to target (default 70%)
|
|
30
33
|
* @returns The target token count after compaction
|
|
31
34
|
*/
|
|
32
35
|
export declare function getCompactionTarget(modelLimits: ModelLimits, targetPercentage?: number): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overflow.d.ts","sourceRoot":"","sources":["../../../src/context/compaction/overflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,
|
|
1
|
+
{"version":3,"file":"overflow.d.ts","sourceRoot":"","sources":["../../../src/context/compaction/overflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,sEAAsE;IACtE,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,WAAW,EACxB,gBAAgB,GAAE,MAAY,GAC/B,OAAO,CAWT;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAC/B,WAAW,EAAE,WAAW,EACxB,gBAAgB,GAAE,MAAY,GAC/B,MAAM,CAGR"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import "../../chunk-PTJYTZNU.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const outputBuffer = Math.min(maxOutput, DEFAULT_OUTPUT_BUFFER);
|
|
6
|
-
const usableTokens = contextWindow - outputBuffer;
|
|
2
|
+
function isOverflow(tokens, modelLimits, thresholdPercent = 0.9) {
|
|
3
|
+
const { contextWindow } = modelLimits;
|
|
4
|
+
const effectiveLimit = Math.floor(contextWindow * thresholdPercent);
|
|
7
5
|
const inputTokens = tokens.inputTokens ?? 0;
|
|
8
|
-
return inputTokens >
|
|
6
|
+
return inputTokens > effectiveLimit;
|
|
9
7
|
}
|
|
10
8
|
function getCompactionTarget(modelLimits, targetPercentage = 0.7) {
|
|
11
|
-
const { contextWindow
|
|
12
|
-
|
|
13
|
-
const usableTokens = contextWindow - outputBuffer;
|
|
14
|
-
return Math.floor(usableTokens * targetPercentage);
|
|
9
|
+
const { contextWindow } = modelLimits;
|
|
10
|
+
return Math.floor(contextWindow * targetPercentage);
|
|
15
11
|
}
|
|
16
12
|
export {
|
|
17
13
|
getCompactionTarget,
|
|
@@ -27,6 +27,21 @@ var import_reactive_overflow = require("../strategies/reactive-overflow.js");
|
|
|
27
27
|
const ReactiveOverflowConfigSchema = import_zod.z.object({
|
|
28
28
|
type: import_zod.z.literal("reactive-overflow"),
|
|
29
29
|
enabled: import_zod.z.boolean().default(true).describe("Enable or disable compaction"),
|
|
30
|
+
/**
|
|
31
|
+
* Maximum context tokens before compaction triggers.
|
|
32
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
33
|
+
* Useful for capping context size below the model's maximum limit.
|
|
34
|
+
*/
|
|
35
|
+
maxContextTokens: import_zod.z.number().positive().optional().describe(
|
|
36
|
+
"Maximum context tokens before compaction triggers. Overrides model context window when set."
|
|
37
|
+
),
|
|
38
|
+
/**
|
|
39
|
+
* Percentage of context window that triggers compaction (0.1 to 1.0).
|
|
40
|
+
* Default is 1.0 (100%), meaning compaction triggers when context is full.
|
|
41
|
+
*/
|
|
42
|
+
thresholdPercent: import_zod.z.number().min(0.1).max(1).default(1).describe(
|
|
43
|
+
"Percentage of context window that triggers compaction (0.1 to 1.0, default 1.0)"
|
|
44
|
+
),
|
|
30
45
|
preserveLastNTurns: import_zod.z.number().int().positive().default(2).describe("Number of recent turns (user+assistant pairs) to preserve"),
|
|
31
46
|
maxSummaryTokens: import_zod.z.number().int().positive().default(2e3).describe("Maximum tokens for the summary output"),
|
|
32
47
|
summaryPrompt: import_zod.z.string().optional().describe("Custom summary prompt template. Use {conversation} as placeholder")
|
|
@@ -6,18 +6,33 @@ import type { CompactionProvider } from '../provider.js';
|
|
|
6
6
|
export declare const ReactiveOverflowConfigSchema: z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"reactive-overflow">;
|
|
8
8
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum context tokens before compaction triggers.
|
|
11
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
12
|
+
* Useful for capping context size below the model's maximum limit.
|
|
13
|
+
*/
|
|
14
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
/**
|
|
16
|
+
* Percentage of context window that triggers compaction (0.1 to 1.0).
|
|
17
|
+
* Default is 1.0 (100%), meaning compaction triggers when context is full.
|
|
18
|
+
*/
|
|
19
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
9
20
|
preserveLastNTurns: z.ZodDefault<z.ZodNumber>;
|
|
10
21
|
maxSummaryTokens: z.ZodDefault<z.ZodNumber>;
|
|
11
22
|
summaryPrompt: z.ZodOptional<z.ZodString>;
|
|
12
23
|
}, "strict", z.ZodTypeAny, {
|
|
13
24
|
type: "reactive-overflow";
|
|
14
25
|
enabled: boolean;
|
|
26
|
+
thresholdPercent: number;
|
|
15
27
|
preserveLastNTurns: number;
|
|
16
28
|
maxSummaryTokens: number;
|
|
29
|
+
maxContextTokens?: number | undefined;
|
|
17
30
|
summaryPrompt?: string | undefined;
|
|
18
31
|
}, {
|
|
19
32
|
type: "reactive-overflow";
|
|
20
33
|
enabled?: boolean | undefined;
|
|
34
|
+
maxContextTokens?: number | undefined;
|
|
35
|
+
thresholdPercent?: number | undefined;
|
|
21
36
|
preserveLastNTurns?: number | undefined;
|
|
22
37
|
maxSummaryTokens?: number | undefined;
|
|
23
38
|
summaryPrompt?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactive-overflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/context/compaction/providers/reactive-overflow-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD;;GAEG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"reactive-overflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/context/compaction/providers/reactive-overflow-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;IAIjC;;;;OAIG;;IAQH;;;OAGG;;;;;;;;;;;;;;;;;;;;;EA0BE,CAAC;AAEd,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEnF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CACrD,mBAAmB,EACnB,sBAAsB,CA2BzB,CAAC"}
|
|
@@ -4,6 +4,21 @@ import { ReactiveOverflowStrategy } from "../strategies/reactive-overflow.js";
|
|
|
4
4
|
const ReactiveOverflowConfigSchema = z.object({
|
|
5
5
|
type: z.literal("reactive-overflow"),
|
|
6
6
|
enabled: z.boolean().default(true).describe("Enable or disable compaction"),
|
|
7
|
+
/**
|
|
8
|
+
* Maximum context tokens before compaction triggers.
|
|
9
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
10
|
+
* Useful for capping context size below the model's maximum limit.
|
|
11
|
+
*/
|
|
12
|
+
maxContextTokens: z.number().positive().optional().describe(
|
|
13
|
+
"Maximum context tokens before compaction triggers. Overrides model context window when set."
|
|
14
|
+
),
|
|
15
|
+
/**
|
|
16
|
+
* Percentage of context window that triggers compaction (0.1 to 1.0).
|
|
17
|
+
* Default is 1.0 (100%), meaning compaction triggers when context is full.
|
|
18
|
+
*/
|
|
19
|
+
thresholdPercent: z.number().min(0.1).max(1).default(1).describe(
|
|
20
|
+
"Percentage of context window that triggers compaction (0.1 to 1.0, default 1.0)"
|
|
21
|
+
),
|
|
7
22
|
preserveLastNTurns: z.number().int().positive().default(2).describe("Number of recent turns (user+assistant pairs) to preserve"),
|
|
8
23
|
maxSummaryTokens: z.number().int().positive().default(2e3).describe("Maximum tokens for the summary output"),
|
|
9
24
|
summaryPrompt: z.string().optional().describe("Custom summary prompt template. Use {conversation} as placeholder")
|
|
@@ -25,11 +25,31 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
25
25
|
var import_zod = require("zod");
|
|
26
26
|
const CompactionConfigSchema = import_zod.z.object({
|
|
27
27
|
type: import_zod.z.string().describe("Compaction provider type"),
|
|
28
|
-
enabled: import_zod.z.boolean().default(true).describe("Enable or disable compaction")
|
|
28
|
+
enabled: import_zod.z.boolean().default(true).describe("Enable or disable compaction"),
|
|
29
|
+
/**
|
|
30
|
+
* Maximum context tokens before compaction triggers.
|
|
31
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
32
|
+
* Useful for capping context size below the model's maximum limit.
|
|
33
|
+
* Example: Set to 50000 to trigger compaction at 50K tokens even if
|
|
34
|
+
* the model supports 200K tokens.
|
|
35
|
+
*/
|
|
36
|
+
maxContextTokens: import_zod.z.number().positive().optional().describe(
|
|
37
|
+
"Maximum context tokens before compaction triggers. Overrides model context window when set."
|
|
38
|
+
),
|
|
39
|
+
/**
|
|
40
|
+
* Percentage of context window that triggers compaction (0.0 to 1.0).
|
|
41
|
+
* Default is 0.9 (90%), leaving a 10% buffer to avoid context degradation.
|
|
42
|
+
* Set lower values to trigger compaction earlier.
|
|
43
|
+
* Example: 0.8 triggers compaction when 80% of context is used.
|
|
44
|
+
*/
|
|
45
|
+
thresholdPercent: import_zod.z.number().min(0.1).max(1).default(0.9).describe(
|
|
46
|
+
"Percentage of context window that triggers compaction (0.1 to 1.0, default 0.9)"
|
|
47
|
+
)
|
|
29
48
|
}).passthrough().describe("Context compaction configuration");
|
|
30
49
|
const DEFAULT_COMPACTION_CONFIG = {
|
|
31
50
|
type: "reactive-overflow",
|
|
32
|
-
enabled: true
|
|
51
|
+
enabled: true,
|
|
52
|
+
thresholdPercent: 0.9
|
|
33
53
|
};
|
|
34
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
35
55
|
0 && (module.exports = {
|
|
@@ -9,12 +9,57 @@ import { z } from 'zod';
|
|
|
9
9
|
export declare const CompactionConfigSchema: z.ZodObject<{
|
|
10
10
|
type: z.ZodString;
|
|
11
11
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum context tokens before compaction triggers.
|
|
14
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
15
|
+
* Useful for capping context size below the model's maximum limit.
|
|
16
|
+
* Example: Set to 50000 to trigger compaction at 50K tokens even if
|
|
17
|
+
* the model supports 200K tokens.
|
|
18
|
+
*/
|
|
19
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
/**
|
|
21
|
+
* Percentage of context window that triggers compaction (0.0 to 1.0).
|
|
22
|
+
* Default is 0.9 (90%), leaving a 10% buffer to avoid context degradation.
|
|
23
|
+
* Set lower values to trigger compaction earlier.
|
|
24
|
+
* Example: 0.8 triggers compaction when 80% of context is used.
|
|
25
|
+
*/
|
|
26
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
12
27
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
13
28
|
type: z.ZodString;
|
|
14
29
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum context tokens before compaction triggers.
|
|
32
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
33
|
+
* Useful for capping context size below the model's maximum limit.
|
|
34
|
+
* Example: Set to 50000 to trigger compaction at 50K tokens even if
|
|
35
|
+
* the model supports 200K tokens.
|
|
36
|
+
*/
|
|
37
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
/**
|
|
39
|
+
* Percentage of context window that triggers compaction (0.0 to 1.0).
|
|
40
|
+
* Default is 0.9 (90%), leaving a 10% buffer to avoid context degradation.
|
|
41
|
+
* Set lower values to trigger compaction earlier.
|
|
42
|
+
* Example: 0.8 triggers compaction when 80% of context is used.
|
|
43
|
+
*/
|
|
44
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
15
45
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
16
46
|
type: z.ZodString;
|
|
17
47
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum context tokens before compaction triggers.
|
|
50
|
+
* When set, overrides the model's context window for compaction threshold.
|
|
51
|
+
* Useful for capping context size below the model's maximum limit.
|
|
52
|
+
* Example: Set to 50000 to trigger compaction at 50K tokens even if
|
|
53
|
+
* the model supports 200K tokens.
|
|
54
|
+
*/
|
|
55
|
+
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
/**
|
|
57
|
+
* Percentage of context window that triggers compaction (0.0 to 1.0).
|
|
58
|
+
* Default is 0.9 (90%), leaving a 10% buffer to avoid context degradation.
|
|
59
|
+
* Set lower values to trigger compaction earlier.
|
|
60
|
+
* Example: 0.8 triggers compaction when 80% of context is used.
|
|
61
|
+
*/
|
|
62
|
+
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
18
63
|
}, z.ZodTypeAny, "passthrough">>;
|
|
19
64
|
export type CompactionConfigInput = z.output<typeof CompactionConfigSchema>;
|
|
20
65
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/context/compaction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/context/compaction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;IAI3B;;;;;;OAMG;;IAQH;;;;;OAKG;;;;;IAnBH;;;;;;OAMG;;IAQH;;;;;OAKG;;;;;IAnBH;;;;;;OAMG;;IAQH;;;;;OAKG;;gCAWsC,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,qBAIvC,CAAC"}
|