@fractal-solutions/qflow 1.0.31 → 1.0.32
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/agent.js +5 -5
- package/dist/nodes/agent_llm.js +1 -1
- package/dist/nodes/index.d.ts +1 -0
- package/dist/nodes/index.js +1 -0
- package/package.json +1 -1
package/dist/agent/agent.js
CHANGED
|
@@ -14,7 +14,7 @@ export class AgentNode extends AsyncNode {
|
|
|
14
14
|
this.summarizeLLM = summarizeLLM;
|
|
15
15
|
this.flowRegistry = flowRegistry;
|
|
16
16
|
this.conversationHistory = [];
|
|
17
|
-
this.maxSteps =
|
|
17
|
+
this.maxSteps = 70;
|
|
18
18
|
this.requireFinishConfirmation = requireFinishConfirmation;
|
|
19
19
|
this.maxConversationHistoryTokens = maxConversationHistoryTokens;
|
|
20
20
|
}
|
|
@@ -102,7 +102,7 @@ export class AgentNode extends AsyncNode {
|
|
|
102
102
|
try {
|
|
103
103
|
logger.toolCall(toolCall.tool, toolCall.parameters);
|
|
104
104
|
// If the tool is a sub-flow or iterator, look up the flow in the registry
|
|
105
|
-
if (toolCall.tool === 'sub_flow' || toolCall.tool === 'iterator') {
|
|
105
|
+
if (toolCall.tool === 'sub_flow' || toolCall.tool === 'iterator' || toolCall.tool === 'scheduler') {
|
|
106
106
|
const flowName = toolCall.parameters.flow;
|
|
107
107
|
if (!this.flowRegistry[flowName]) {
|
|
108
108
|
throw new Error(`Flow '${flowName}' not found in registry.`);
|
|
@@ -265,9 +265,9 @@ Parameters: ${params}`;
|
|
|
265
265
|
throw new Error("Missing required keys or invalid format in LLM response (thought, tool_calls array).");
|
|
266
266
|
}
|
|
267
267
|
catch (e) {
|
|
268
|
-
// If it's not valid JSON for tool calls, assume it's a direct text response from LLM
|
|
269
|
-
//
|
|
270
|
-
return { thought:
|
|
268
|
+
// If it's not valid JSON for tool calls, assume it's a direct text response from the LLM.
|
|
269
|
+
// Treat the whole response as a "thought".
|
|
270
|
+
return { thought: llmResponse, toolCalls: [], parallel: false };
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
// Prioritize tool_calls if present (OpenAI function calling format)
|
package/dist/nodes/agent_llm.js
CHANGED
|
@@ -43,7 +43,7 @@ export class AgentDeepSeekLLMNode extends DeepSeekLLMNode {
|
|
|
43
43
|
throw new Error(`DeepSeek API error: ${response.status} - ${errorData.error.message}`);
|
|
44
44
|
}
|
|
45
45
|
const data = await response.json();
|
|
46
|
-
console.log("DeepSeek Raw Data:", JSON.stringify(data, null, 2)); // Added logging
|
|
46
|
+
//console.log("DeepSeek Raw Data:", JSON.stringify(data, null, 2)); // Added logging
|
|
47
47
|
if (!data.choices || data.choices.length === 0 || !data.choices[0].message || typeof data.choices[0].message.content !== 'string') {
|
|
48
48
|
throw new Error('Invalid response structure from DeepSeek API or missing content.');
|
|
49
49
|
}
|
package/dist/nodes/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./hackernews.js";
|
|
|
6
6
|
export * from "./github.js";
|
|
7
7
|
export * from "./stripe.js";
|
|
8
8
|
export * from "./webscraper.js";
|
|
9
|
+
export * from "./browser_control.js";
|
|
9
10
|
export * from "./system_notification.js";
|
|
10
11
|
export * from "./interactive_input.js";
|
|
11
12
|
export * from "./pdf_processor.js";
|
package/dist/nodes/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './hackernews.js';
|
|
|
6
6
|
export * from './github.js';
|
|
7
7
|
export * from './stripe.js';
|
|
8
8
|
export * from './webscraper.js';
|
|
9
|
+
export * from './browser_control.js';
|
|
9
10
|
export * from './system_notification.js';
|
|
10
11
|
export * from './interactive_input.js';
|
|
11
12
|
export * from './pdf_processor.js';
|
package/package.json
CHANGED