@dexto/core 1.8.0 → 1.8.2
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 +10 -16
- package/dist/agent/DextoAgent.d.ts +2 -2
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +8 -5
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/context/compaction/overflow.d.ts +1 -1
- package/dist/context/compaction/overflow.d.ts.map +1 -1
- package/dist/context/manager.cjs +8 -8
- package/dist/context/manager.d.ts +1 -1
- package/dist/context/manager.d.ts.map +1 -1
- package/dist/context/manager.js +1 -1
- package/dist/context/types.d.ts +1 -1
- package/dist/context/types.d.ts.map +1 -1
- package/dist/context/utils.cjs +3 -3
- package/dist/context/utils.d.ts +1 -1
- package/dist/context/utils.d.ts.map +1 -1
- package/dist/context/utils.js +1 -1
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/index.browser.cjs +9 -9
- package/dist/index.browser.d.ts +4 -4
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/llm/auth/index.cjs +16 -0
- package/dist/llm/auth/index.d.ts +2 -0
- package/dist/llm/auth/index.d.ts.map +1 -0
- package/dist/llm/auth/index.js +0 -0
- package/dist/llm/auth/types.cjs +16 -0
- package/dist/llm/auth/types.d.ts +25 -0
- package/dist/llm/auth/types.d.ts.map +1 -0
- package/dist/llm/auth/types.js +0 -0
- package/dist/llm/curation-config.cjs +3 -3
- package/dist/llm/curation-config.d.ts +1 -1
- package/dist/llm/curation-config.js +3 -3
- package/dist/llm/curation.cjs +2 -2
- package/dist/llm/curation.d.ts +2 -2
- package/dist/llm/curation.d.ts.map +1 -1
- package/dist/llm/curation.js +1 -1
- package/dist/llm/errors.cjs +3 -3
- package/dist/llm/errors.d.ts +1 -1
- package/dist/llm/errors.d.ts.map +1 -1
- package/dist/llm/errors.js +1 -1
- package/dist/llm/executor/provider-options.cjs +22 -25
- package/dist/llm/executor/provider-options.d.ts +1 -1
- package/dist/llm/executor/provider-options.d.ts.map +1 -1
- package/dist/llm/executor/provider-options.js +17 -16
- package/dist/llm/executor/stream-processor.d.ts +1 -1
- package/dist/llm/executor/stream-processor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.d.ts +1 -1
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/types.d.ts +1 -1
- package/dist/llm/executor/types.d.ts.map +1 -1
- package/dist/llm/formatters/vercel.cjs +2 -2
- package/dist/llm/formatters/vercel.d.ts +1 -1
- package/dist/llm/formatters/vercel.d.ts.map +1 -1
- package/dist/llm/index.cjs +0 -4
- package/dist/llm/index.d.ts +1 -2
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +0 -2
- package/dist/llm/registry/auto-update.cjs +5 -5
- package/dist/llm/registry/auto-update.d.ts.map +1 -1
- package/dist/llm/registry/auto-update.js +2 -2
- package/dist/llm/registry/index.cjs +96 -789
- package/dist/llm/registry/index.d.ts +4 -323
- package/dist/llm/registry/index.d.ts.map +1 -1
- package/dist/llm/registry/index.js +99 -762
- package/dist/llm/registry/sync.d.ts +2 -2
- package/dist/llm/registry/sync.d.ts.map +1 -1
- package/dist/llm/resolver.cjs +7 -6
- package/dist/llm/resolver.d.ts +1 -1
- package/dist/llm/resolver.js +4 -4
- package/dist/llm/schemas.cjs +14 -14
- package/dist/llm/schemas.d.ts +1 -1
- package/dist/llm/schemas.d.ts.map +1 -1
- package/dist/llm/schemas.js +5 -4
- package/dist/llm/services/factory.cjs +124 -33
- package/dist/llm/services/factory.d.ts.map +1 -1
- package/dist/llm/services/factory.js +128 -35
- package/dist/llm/services/types.d.ts +8 -1
- package/dist/llm/services/types.d.ts.map +1 -1
- package/dist/llm/usage-metadata.cjs +3 -3
- package/dist/llm/usage-metadata.d.ts +2 -2
- package/dist/llm/usage-metadata.d.ts.map +1 -1
- package/dist/llm/usage-metadata.js +1 -4
- package/dist/llm/usage-summary.d.ts +1 -1
- package/dist/llm/validation.cjs +4 -4
- package/dist/llm/validation.d.ts +1 -1
- package/dist/llm/validation.js +1 -1
- package/dist/session/chat-session.cjs +2 -12
- package/dist/session/chat-session.d.ts +2 -0
- package/dist/session/chat-session.d.ts.map +1 -1
- package/dist/session/chat-session.js +2 -13
- package/dist/session/session-manager.cjs +4 -1
- package/dist/session/session-manager.d.ts +5 -1
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/session/session-manager.js +4 -1
- package/dist/utils/api-key-resolver.d.ts +1 -1
- package/dist/utils/api-key-resolver.d.ts.map +1 -1
- package/dist/utils/result.cjs +1 -1
- package/dist/utils/result.js +1 -1
- package/dist/utils/service-initializer.cjs +3 -0
- package/dist/utils/service-initializer.d.ts +2 -0
- package/dist/utils/service-initializer.d.ts.map +1 -1
- package/dist/utils/service-initializer.js +3 -0
- package/package.json +3 -2
- package/dist/llm/reasoning/anthropic-betas.cjs +0 -31
- package/dist/llm/reasoning/anthropic-betas.d.ts +0 -3
- package/dist/llm/reasoning/anthropic-betas.d.ts.map +0 -1
- package/dist/llm/reasoning/anthropic-betas.js +0 -7
- package/dist/llm/reasoning/anthropic-thinking.cjs +0 -79
- package/dist/llm/reasoning/anthropic-thinking.d.ts +0 -15
- package/dist/llm/reasoning/anthropic-thinking.d.ts.map +0 -1
- package/dist/llm/reasoning/anthropic-thinking.js +0 -52
- package/dist/llm/reasoning/openai-reasoning-effort.cjs +0 -86
- package/dist/llm/reasoning/openai-reasoning-effort.d.ts +0 -5
- package/dist/llm/reasoning/openai-reasoning-effort.d.ts.map +0 -1
- package/dist/llm/reasoning/openai-reasoning-effort.js +0 -61
- package/dist/llm/reasoning/profile.cjs +0 -113
- package/dist/llm/reasoning/profile.d.ts +0 -13
- package/dist/llm/reasoning/profile.d.ts.map +0 -1
- package/dist/llm/reasoning/profile.js +0 -92
- package/dist/llm/reasoning/profiles/anthropic.cjs +0 -61
- package/dist/llm/reasoning/profiles/anthropic.d.ts +0 -8
- package/dist/llm/reasoning/profiles/anthropic.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/anthropic.js +0 -45
- package/dist/llm/reasoning/profiles/bedrock.cjs +0 -54
- package/dist/llm/reasoning/profiles/bedrock.d.ts +0 -3
- package/dist/llm/reasoning/profiles/bedrock.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/bedrock.js +0 -36
- package/dist/llm/reasoning/profiles/google.cjs +0 -45
- package/dist/llm/reasoning/profiles/google.d.ts +0 -9
- package/dist/llm/reasoning/profiles/google.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/google.js +0 -21
- package/dist/llm/reasoning/profiles/openai-compatible.cjs +0 -39
- package/dist/llm/reasoning/profiles/openai-compatible.d.ts +0 -3
- package/dist/llm/reasoning/profiles/openai-compatible.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openai-compatible.js +0 -16
- package/dist/llm/reasoning/profiles/openai.cjs +0 -41
- package/dist/llm/reasoning/profiles/openai.d.ts +0 -3
- package/dist/llm/reasoning/profiles/openai.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openai.js +0 -18
- package/dist/llm/reasoning/profiles/openrouter.cjs +0 -83
- package/dist/llm/reasoning/profiles/openrouter.d.ts +0 -10
- package/dist/llm/reasoning/profiles/openrouter.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/openrouter.js +0 -59
- package/dist/llm/reasoning/profiles/shared.cjs +0 -80
- package/dist/llm/reasoning/profiles/shared.d.ts +0 -25
- package/dist/llm/reasoning/profiles/shared.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/shared.js +0 -53
- package/dist/llm/reasoning/profiles/vertex.cjs +0 -46
- package/dist/llm/reasoning/profiles/vertex.d.ts +0 -3
- package/dist/llm/reasoning/profiles/vertex.d.ts.map +0 -1
- package/dist/llm/reasoning/profiles/vertex.js +0 -23
- package/dist/llm/registry/models.generated.cjs +0 -10741
- package/dist/llm/registry/models.generated.d.ts +0 -2945
- package/dist/llm/registry/models.generated.d.ts.map +0 -1
- package/dist/llm/registry/models.generated.js +0 -10717
- package/dist/llm/registry/models.manual.cjs +0 -44
- package/dist/llm/registry/models.manual.d.ts +0 -22
- package/dist/llm/registry/models.manual.d.ts.map +0 -1
- package/dist/llm/registry/models.manual.js +0 -21
- package/dist/llm/types.cjs +0 -55
- package/dist/llm/types.d.ts +0 -39
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/llm/types.js +0 -30
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
const OPENROUTER_REASONING_EXCLUDED_FAMILIES = [
|
|
3
|
-
"deepseek",
|
|
4
|
-
"minimax",
|
|
5
|
-
"glm",
|
|
6
|
-
"mistral",
|
|
7
|
-
"kimi",
|
|
8
|
-
// Temporary workaround for OpenRouter models that intermittently error with reasoning params.
|
|
9
|
-
// Keep this explicit so it's easy to remove once upstream stabilizes.
|
|
10
|
-
"k2p5"
|
|
11
|
-
];
|
|
12
|
-
const OPENROUTER_REASONING_TARGET_RULES = {
|
|
13
|
-
openai: {
|
|
14
|
-
upstreamProvider: "openai",
|
|
15
|
-
acceptsModelId: () => true
|
|
16
|
-
},
|
|
17
|
-
anthropic: {
|
|
18
|
-
upstreamProvider: "anthropic",
|
|
19
|
-
acceptsModelId: () => true
|
|
20
|
-
},
|
|
21
|
-
google: {
|
|
22
|
-
upstreamProvider: "google",
|
|
23
|
-
acceptsModelId: (modelId) => modelId.includes("gemini-3")
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
function isOpenRouterGatewayProvider(provider) {
|
|
27
|
-
return provider === "openrouter" || provider === "dexto-nova";
|
|
28
|
-
}
|
|
29
|
-
function isOpenRouterReasoningAllowlistedFamily(modelLower) {
|
|
30
|
-
return modelLower.includes("gpt") || modelLower.includes("claude") || modelLower.includes("gemini-3");
|
|
31
|
-
}
|
|
32
|
-
function splitGatewayModelId(modelLower) {
|
|
33
|
-
const slashIndex = modelLower.indexOf("/");
|
|
34
|
-
if (slashIndex <= 0 || slashIndex >= modelLower.length - 1) return null;
|
|
35
|
-
const providerPrefix = modelLower.slice(0, slashIndex);
|
|
36
|
-
const modelId = modelLower.slice(slashIndex + 1);
|
|
37
|
-
return { providerPrefix, modelId };
|
|
38
|
-
}
|
|
39
|
-
function getOpenRouterReasoningTarget(model) {
|
|
40
|
-
const modelLower = model.toLowerCase();
|
|
41
|
-
for (const family of OPENROUTER_REASONING_EXCLUDED_FAMILIES) {
|
|
42
|
-
if (modelLower.includes(family)) return null;
|
|
43
|
-
}
|
|
44
|
-
if (!isOpenRouterReasoningAllowlistedFamily(modelLower)) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
const split = splitGatewayModelId(modelLower);
|
|
48
|
-
if (!split) return null;
|
|
49
|
-
const { providerPrefix, modelId } = split;
|
|
50
|
-
const rule = OPENROUTER_REASONING_TARGET_RULES[providerPrefix];
|
|
51
|
-
if (!rule || !rule.acceptsModelId(modelId, modelLower)) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
return { upstreamProvider: rule.upstreamProvider, modelId };
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
getOpenRouterReasoningTarget,
|
|
58
|
-
isOpenRouterGatewayProvider
|
|
59
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var shared_exports = {};
|
|
20
|
-
__export(shared_exports, {
|
|
21
|
-
buildBudgetProfile: () => buildBudgetProfile,
|
|
22
|
-
buildThinkingLevelProfile: () => buildThinkingLevelProfile,
|
|
23
|
-
nonCapableProfile: () => nonCapableProfile,
|
|
24
|
-
option: () => option,
|
|
25
|
-
withDefault: () => withDefault
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(shared_exports);
|
|
28
|
-
function option(id, label) {
|
|
29
|
-
return { id, label: label ?? id };
|
|
30
|
-
}
|
|
31
|
-
function withDefault(profile, preferredDefault) {
|
|
32
|
-
const hasPreferred = profile.variants.some((variant) => variant.id === preferredDefault);
|
|
33
|
-
const defaultVariant = hasPreferred ? preferredDefault : profile.variants[0]?.id;
|
|
34
|
-
return {
|
|
35
|
-
...profile,
|
|
36
|
-
supportedVariants: profile.variants.map((variant) => variant.id),
|
|
37
|
-
...defaultVariant !== void 0 && { defaultVariant }
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function nonCapableProfile() {
|
|
41
|
-
return {
|
|
42
|
-
capable: false,
|
|
43
|
-
paradigm: "none",
|
|
44
|
-
variants: [],
|
|
45
|
-
supportedVariants: [],
|
|
46
|
-
supportsBudgetTokens: false
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function buildBudgetProfile(config) {
|
|
50
|
-
const variants = config.includeDisabled ? [option("disabled"), option("enabled")] : [option("enabled")];
|
|
51
|
-
return withDefault(
|
|
52
|
-
{
|
|
53
|
-
capable: true,
|
|
54
|
-
paradigm: "budget",
|
|
55
|
-
variants,
|
|
56
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
57
|
-
},
|
|
58
|
-
"enabled"
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
function buildThinkingLevelProfile(config) {
|
|
62
|
-
const variants = config.includeDisabled ? [option("disabled"), option("minimal"), option("low"), option("medium"), option("high")] : [option("minimal"), option("low"), option("medium"), option("high")];
|
|
63
|
-
return withDefault(
|
|
64
|
-
{
|
|
65
|
-
capable: true,
|
|
66
|
-
paradigm: "thinking-level",
|
|
67
|
-
variants,
|
|
68
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
69
|
-
},
|
|
70
|
-
"medium"
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
-
0 && (module.exports = {
|
|
75
|
-
buildBudgetProfile,
|
|
76
|
-
buildThinkingLevelProfile,
|
|
77
|
-
nonCapableProfile,
|
|
78
|
-
option,
|
|
79
|
-
withDefault
|
|
80
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type ReasoningParadigm = 'effort' | 'adaptive-effort' | 'thinking-level' | 'budget' | 'none';
|
|
2
|
-
export type ReasoningVariantOption = {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
};
|
|
6
|
-
export type ReasoningProfile = {
|
|
7
|
-
capable: boolean;
|
|
8
|
-
paradigm: ReasoningParadigm;
|
|
9
|
-
variants: ReasoningVariantOption[];
|
|
10
|
-
supportedVariants: string[];
|
|
11
|
-
defaultVariant?: string;
|
|
12
|
-
supportsBudgetTokens: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function option(id: string, label?: string): ReasoningVariantOption;
|
|
15
|
-
export declare function withDefault(profile: Omit<ReasoningProfile, 'defaultVariant' | 'supportedVariants'>, preferredDefault: string): ReasoningProfile;
|
|
16
|
-
export declare function nonCapableProfile(): ReasoningProfile;
|
|
17
|
-
export declare function buildBudgetProfile(config: {
|
|
18
|
-
includeDisabled: boolean;
|
|
19
|
-
supportsBudgetTokens: boolean;
|
|
20
|
-
}): ReasoningProfile;
|
|
21
|
-
export declare function buildThinkingLevelProfile(config: {
|
|
22
|
-
includeDisabled: boolean;
|
|
23
|
-
supportsBudgetTokens: boolean;
|
|
24
|
-
}): ReasoningProfile;
|
|
25
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/shared.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpG,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAEzE;AAED,wBAAgB,WAAW,CACvB,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,EACvE,gBAAgB,EAAE,MAAM,GACzB,gBAAgB,CAQlB;AAED,wBAAgB,iBAAiB,IAAI,gBAAgB,CAQpD;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAcnB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAC9C,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;CACjC,GAAG,gBAAgB,CAcnB"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
function option(id, label) {
|
|
3
|
-
return { id, label: label ?? id };
|
|
4
|
-
}
|
|
5
|
-
function withDefault(profile, preferredDefault) {
|
|
6
|
-
const hasPreferred = profile.variants.some((variant) => variant.id === preferredDefault);
|
|
7
|
-
const defaultVariant = hasPreferred ? preferredDefault : profile.variants[0]?.id;
|
|
8
|
-
return {
|
|
9
|
-
...profile,
|
|
10
|
-
supportedVariants: profile.variants.map((variant) => variant.id),
|
|
11
|
-
...defaultVariant !== void 0 && { defaultVariant }
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function nonCapableProfile() {
|
|
15
|
-
return {
|
|
16
|
-
capable: false,
|
|
17
|
-
paradigm: "none",
|
|
18
|
-
variants: [],
|
|
19
|
-
supportedVariants: [],
|
|
20
|
-
supportsBudgetTokens: false
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function buildBudgetProfile(config) {
|
|
24
|
-
const variants = config.includeDisabled ? [option("disabled"), option("enabled")] : [option("enabled")];
|
|
25
|
-
return withDefault(
|
|
26
|
-
{
|
|
27
|
-
capable: true,
|
|
28
|
-
paradigm: "budget",
|
|
29
|
-
variants,
|
|
30
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
31
|
-
},
|
|
32
|
-
"enabled"
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
function buildThinkingLevelProfile(config) {
|
|
36
|
-
const variants = config.includeDisabled ? [option("disabled"), option("minimal"), option("low"), option("medium"), option("high")] : [option("minimal"), option("low"), option("medium"), option("high")];
|
|
37
|
-
return withDefault(
|
|
38
|
-
{
|
|
39
|
-
capable: true,
|
|
40
|
-
paradigm: "thinking-level",
|
|
41
|
-
variants,
|
|
42
|
-
supportsBudgetTokens: config.supportsBudgetTokens
|
|
43
|
-
},
|
|
44
|
-
"medium"
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
buildBudgetProfile,
|
|
49
|
-
buildThinkingLevelProfile,
|
|
50
|
-
nonCapableProfile,
|
|
51
|
-
option,
|
|
52
|
-
withDefault
|
|
53
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var vertex_exports = {};
|
|
20
|
-
__export(vertex_exports, {
|
|
21
|
-
buildVertexReasoningProfile: () => buildVertexReasoningProfile
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(vertex_exports);
|
|
24
|
-
var import_anthropic = require("./anthropic.js");
|
|
25
|
-
var import_google = require("./google.js");
|
|
26
|
-
function buildVertexReasoningProfile(model) {
|
|
27
|
-
const modelLower = model.toLowerCase();
|
|
28
|
-
if (modelLower.includes("claude")) {
|
|
29
|
-
return (0, import_anthropic.buildAnthropicReasoningProfile)({
|
|
30
|
-
model,
|
|
31
|
-
includeDisabled: true,
|
|
32
|
-
supportsBudgetTokensForBudgetParadigm: true,
|
|
33
|
-
supportsBudgetTokensForAdaptiveParadigm: false
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return (0, import_google.buildGoogleReasoningProfile)({
|
|
37
|
-
model,
|
|
38
|
-
includeDisabled: true,
|
|
39
|
-
supportsBudgetTokensForBudgetParadigm: true,
|
|
40
|
-
supportsBudgetTokensForThinkingLevelParadigm: false
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
buildVertexReasoningProfile
|
|
46
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../../../src/llm/reasoning/profiles/vertex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAiB3E"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-C6A6W6XS.js";
|
|
2
|
-
import { buildAnthropicReasoningProfile } from "./anthropic.js";
|
|
3
|
-
import { buildGoogleReasoningProfile } from "./google.js";
|
|
4
|
-
function buildVertexReasoningProfile(model) {
|
|
5
|
-
const modelLower = model.toLowerCase();
|
|
6
|
-
if (modelLower.includes("claude")) {
|
|
7
|
-
return buildAnthropicReasoningProfile({
|
|
8
|
-
model,
|
|
9
|
-
includeDisabled: true,
|
|
10
|
-
supportsBudgetTokensForBudgetParadigm: true,
|
|
11
|
-
supportsBudgetTokensForAdaptiveParadigm: false
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
return buildGoogleReasoningProfile({
|
|
15
|
-
model,
|
|
16
|
-
includeDisabled: true,
|
|
17
|
-
supportsBudgetTokensForBudgetParadigm: true,
|
|
18
|
-
supportsBudgetTokensForThinkingLevelParadigm: false
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
buildVertexReasoningProfile
|
|
23
|
-
};
|