@apotech-os/support-kit 10.1.0 → 10.1.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/{chunk-KEPXRZ7R.js → chunk-G3Q4P4OA.js} +9 -14
- package/dist/chunk-G3Q4P4OA.js.map +1 -0
- package/dist/index.cjs +10 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KEPXRZ7R.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -665,9 +665,8 @@ ${last}`);
|
|
|
665
665
|
try {
|
|
666
666
|
const result = await deps.ports.llm.complete({
|
|
667
667
|
label: TRIAGE_LABEL,
|
|
668
|
-
// The
|
|
669
|
-
|
|
670
|
-
model: resolvedPrompt.config?.model ?? node.model,
|
|
668
|
+
// The model stored in the OS wins; the prompt's Langfuse config is ignored.
|
|
669
|
+
model: node.model,
|
|
671
670
|
reasoning: node.reasoning,
|
|
672
671
|
messages: [
|
|
673
672
|
{ role: "system", content: resolvedPrompt.text },
|
|
@@ -725,7 +724,7 @@ ${conversation.customer.orderContext}`);
|
|
|
725
724
|
${message}`);
|
|
726
725
|
const result = await deps.ports.llm.complete({
|
|
727
726
|
label: ESCALATION_LABEL,
|
|
728
|
-
model:
|
|
727
|
+
model: node.model,
|
|
729
728
|
reasoning: node.reasoning,
|
|
730
729
|
messages: [
|
|
731
730
|
{ role: "system", content: resolvedPrompt.text },
|
|
@@ -894,7 +893,7 @@ async function runToolCall(profile, call, ctx) {
|
|
|
894
893
|
// src/graph/draft.ts
|
|
895
894
|
var MAX_LOOP_ROUNDS = 25;
|
|
896
895
|
async function draftWithTools(params) {
|
|
897
|
-
const { profile, llm, budget, toolContext, messages, label,
|
|
896
|
+
const { profile, llm, budget, toolContext, messages, label, promptRef } = params;
|
|
898
897
|
const node = profile.nodes.draft;
|
|
899
898
|
if (!node) throw new Error("draftWithTools requires profile.nodes.draft to be configured.");
|
|
900
899
|
const conversation = [...messages];
|
|
@@ -904,7 +903,7 @@ async function draftWithTools(params) {
|
|
|
904
903
|
const tools = offerTools ? toolsOrUndefined(buildToolSpecs(profile)) : [];
|
|
905
904
|
const result = await llm.complete({
|
|
906
905
|
label,
|
|
907
|
-
model:
|
|
906
|
+
model: node.model,
|
|
908
907
|
reasoning: node.reasoning,
|
|
909
908
|
messages: conversation,
|
|
910
909
|
tools,
|
|
@@ -982,9 +981,6 @@ var draft = async (state, deps) => {
|
|
|
982
981
|
toolContext: deps.toolContext,
|
|
983
982
|
messages,
|
|
984
983
|
label: LABEL,
|
|
985
|
-
// The resolved Langfuse prompt's own model config WINS over the
|
|
986
|
-
// profile's fallback (I16) — see `PromptPort.resolve`'s doc.
|
|
987
|
-
model: resolvedPrompt.config?.model ?? node.model,
|
|
988
984
|
promptRef: { name: resolvedPrompt.name, version: resolvedPrompt.version, resolve: false }
|
|
989
985
|
});
|
|
990
986
|
return { draft: result };
|
|
@@ -1023,9 +1019,8 @@ var evaluate = async (state, deps) => {
|
|
|
1023
1019
|
try {
|
|
1024
1020
|
const result = await (deps.ports.evaluator ?? deps.ports.llm).complete({
|
|
1025
1021
|
label: "evaluation",
|
|
1026
|
-
// The
|
|
1027
|
-
|
|
1028
|
-
model: evaluatePrompt.config?.model ?? node.model,
|
|
1022
|
+
// The model stored in the OS wins; the prompt's Langfuse config is ignored.
|
|
1023
|
+
model: node.model,
|
|
1029
1024
|
reasoning: node.reasoning,
|
|
1030
1025
|
messages: buildMessages({
|
|
1031
1026
|
conversation: state.conversation,
|
|
@@ -5812,11 +5807,9 @@ async function executeChat(ctx, userId, input) {
|
|
|
5812
5807
|
const chatMessages = systemContent ? [{ role: "system", content: systemContent }, ...contextMessages] : contextMessages;
|
|
5813
5808
|
const result = await ctx.api.llm.complete({
|
|
5814
5809
|
messages: chatMessages,
|
|
5815
|
-
//
|
|
5816
|
-
//
|
|
5817
|
-
|
|
5818
|
-
// .resolve` consumer in the repo that dropped it.
|
|
5819
|
-
options: { model: resolvedPrompt.config?.model ?? agent.modelId },
|
|
5810
|
+
// The agent's modelId stored in the OS wins; the prompt's Langfuse
|
|
5811
|
+
// config is ignored, like every graph node (`draft.ts`, `triage.ts`, …).
|
|
5812
|
+
options: { model: agent.modelId },
|
|
5820
5813
|
// Link-only (D-LF follow-up, option (b)): this function already resolved
|
|
5821
5814
|
// its own prompt two lines above via `PromptPort` — `resolve: false`
|
|
5822
5815
|
// links the completion to it in Langfuse WITHOUT re-triggering the
|