@flutchai/flutch-sdk 0.6.1 → 0.6.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/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1644,7 +1644,8 @@ exports.UniversalGraphService = class _UniversalGraphService {
|
|
|
1644
1644
|
text: result.text || "",
|
|
1645
1645
|
attachments: result.attachments || [],
|
|
1646
1646
|
metadata: result.metadata || {},
|
|
1647
|
-
reasoningChains: result.reasoningChains || []
|
|
1647
|
+
reasoningChains: result.reasoningChains || [],
|
|
1648
|
+
contentChains: result.contentChains
|
|
1648
1649
|
};
|
|
1649
1650
|
} finally {
|
|
1650
1651
|
this.unregisterActiveGeneration(payload.requestId);
|
|
@@ -1683,7 +1684,8 @@ exports.UniversalGraphService = class _UniversalGraphService {
|
|
|
1683
1684
|
text: result.text || "",
|
|
1684
1685
|
attachments: result.attachments || [],
|
|
1685
1686
|
metadata: result.metadata || {},
|
|
1686
|
-
reasoningChains: result.reasoningChains || []
|
|
1687
|
+
reasoningChains: result.reasoningChains || [],
|
|
1688
|
+
contentChains: result.contentChains
|
|
1687
1689
|
};
|
|
1688
1690
|
} catch (error) {
|
|
1689
1691
|
this.logger.error(`Error in streamAnswer: ${error.message}`);
|
|
@@ -7267,6 +7269,13 @@ var ModelInitializer = class _ModelInitializer {
|
|
|
7267
7269
|
modelName,
|
|
7268
7270
|
temperature: defaultTemperature,
|
|
7269
7271
|
maxTokens: defaultMaxTokens,
|
|
7272
|
+
// Stream tokens even under `.invoke()` so LangGraph `streamEvents`
|
|
7273
|
+
// emits `on_chat_model_stream`. Without it, nodes that call
|
|
7274
|
+
// `model.invoke()` (e.g. campaigns DefaultBehaviorNode) surface only
|
|
7275
|
+
// coarse `on_chain_*` events: no live SSE deltas, a sparse trace, and
|
|
7276
|
+
// a content chain collapsed into one text block (no tool_use
|
|
7277
|
+
// boundaries). Matches the Bedrock path, which already sets this.
|
|
7278
|
+
streaming: true,
|
|
7270
7279
|
anthropicApiKey: apiToken || this.resolveApiKey(ModelProvider.ANTHROPIC),
|
|
7271
7280
|
...routerURL && {
|
|
7272
7281
|
anthropicApiUrl: routerURL,
|