@ai-setting/roy-agent-core 1.6.30 → 1.6.41
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/env/agent/index.js +1 -1
- package/dist/env/index.js +4 -4
- package/dist/env/workflow/engine/index.js +2 -2
- package/dist/env/workflow/index.js +3 -3
- package/dist/index.js +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-ef486rdm.js → roy-agent-core-6qvgvbg1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-xwnpygva.js → roy-agent-core-9yf6we04.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-cjraf54z.js → roy-agent-core-ec4djnzd.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8yt1v68m.js → roy-agent-core-fzyn4fxx.js} +16 -1
- package/dist/shared/@ai-setting/{roy-agent-core-16dqrewm.js → roy-agent-core-s4r8f6se.js} +1 -1
- package/package.json +1 -1
package/dist/env/agent/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AgentComponent,
|
|
3
3
|
AgentComponentConfigSchema,
|
|
4
4
|
SummaryAgent
|
|
5
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-fzyn4fxx.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-c1stgqnw.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-h28gcd77.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-br7dmedr.js";
|
package/dist/env/index.js
CHANGED
|
@@ -21,11 +21,11 @@ import"../shared/@ai-setting/roy-agent-core-gns3wa97.js";
|
|
|
21
21
|
import"../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowComponent
|
|
24
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
} from "../shared/@ai-setting/roy-agent-core-9yf6we04.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-3e0w0ekw.js";
|
|
26
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
26
|
+
import"../shared/@ai-setting/roy-agent-core-s4r8f6se.js";
|
|
27
27
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
28
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
28
|
+
import"../shared/@ai-setting/roy-agent-core-ec4djnzd.js";
|
|
29
29
|
import"../shared/@ai-setting/roy-agent-core-h1cb2jzh.js";
|
|
30
30
|
import"../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
@@ -41,7 +41,7 @@ import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
41
41
|
import {
|
|
42
42
|
AgentComponent,
|
|
43
43
|
AgentComponentConfigSchema
|
|
44
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
44
|
+
} from "../shared/@ai-setting/roy-agent-core-fzyn4fxx.js";
|
|
45
45
|
import"../shared/@ai-setting/roy-agent-core-c1stgqnw.js";
|
|
46
46
|
import"../shared/@ai-setting/roy-agent-core-h28gcd77.js";
|
|
47
47
|
import"../shared/@ai-setting/roy-agent-core-br7dmedr.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
Scheduler,
|
|
6
6
|
WorkflowEngine,
|
|
7
7
|
init_engine
|
|
8
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-s4r8f6se.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
10
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-ec4djnzd.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-h1cb2jzh.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-0qjw25e8.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-9yf6we04.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-3e0w0ekw.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-s4r8f6se.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-ec4djnzd.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-h1cb2jzh.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
package/dist/index.js
CHANGED
|
@@ -102,14 +102,14 @@ import {
|
|
|
102
102
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
103
103
|
import {
|
|
104
104
|
WorkflowComponent
|
|
105
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
105
|
+
} from "./shared/@ai-setting/roy-agent-core-9yf6we04.js";
|
|
106
106
|
import {
|
|
107
107
|
init_node_registry_helper,
|
|
108
108
|
registerDecoratorNodeType
|
|
109
109
|
} from "./shared/@ai-setting/roy-agent-core-3e0w0ekw.js";
|
|
110
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
110
|
+
import"./shared/@ai-setting/roy-agent-core-s4r8f6se.js";
|
|
111
111
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
112
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
112
|
+
import"./shared/@ai-setting/roy-agent-core-ec4djnzd.js";
|
|
113
113
|
import"./shared/@ai-setting/roy-agent-core-h1cb2jzh.js";
|
|
114
114
|
import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
115
115
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
@@ -131,7 +131,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
131
131
|
import {
|
|
132
132
|
AgentComponent,
|
|
133
133
|
AgentComponentConfigSchema
|
|
134
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
134
|
+
} from "./shared/@ai-setting/roy-agent-core-fzyn4fxx.js";
|
|
135
135
|
import {
|
|
136
136
|
createInvokeConfig,
|
|
137
137
|
invoke,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponentAdapter,
|
|
3
3
|
init_agent_component_adapter
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-ec4djnzd.js";
|
|
5
5
|
import"./roy-agent-core-1db4vpc6.js";
|
|
6
6
|
import"./roy-agent-core-e25xkv53.js";
|
|
7
7
|
import"./roy-agent-core-j29yg06n.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WorkflowEngine,
|
|
7
7
|
exports_engine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-s4r8f6se.js";
|
|
10
10
|
import {
|
|
11
11
|
askUserTool,
|
|
12
12
|
createRunWorkflowTool,
|
|
@@ -141,7 +141,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
141
141
|
if (!agentRunner && this._workflowEnv) {
|
|
142
142
|
const agentComponent = this._workflowEnv.getComponent("agent");
|
|
143
143
|
if (agentComponent) {
|
|
144
|
-
const { AgentComponentAdapter } = await import("./roy-agent-core-
|
|
144
|
+
const { AgentComponentAdapter } = await import("./roy-agent-core-6qvgvbg1.js");
|
|
145
145
|
agentRunner = new AgentComponentAdapter(agentComponent, {}, this.sessionComponent);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -332,7 +332,7 @@ var init_agent_component_adapter = __esm(() => {
|
|
|
332
332
|
context.workflowHistory = config.workflowHistory;
|
|
333
333
|
}
|
|
334
334
|
let additionInfo = config.prompt;
|
|
335
|
-
let userInput = resumeOptions?.userQuery ||
|
|
335
|
+
let userInput = resumeOptions?.userQuery || additionInfo;
|
|
336
336
|
if (agentSessionId && this._sessionComponent && !isResume) {
|
|
337
337
|
try {
|
|
338
338
|
const priorMessages = await this._sessionComponent.getMessages(agentSessionId);
|
|
@@ -1328,12 +1328,24 @@ class AgentComponent extends BaseComponent {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
logger2.info(`All agents aborted (${this.abortControllers.size} runs)`);
|
|
1330
1330
|
}
|
|
1331
|
+
async _buildAdditionInfo(ctx) {
|
|
1332
|
+
let additionInfo = ctx.context?.additionInfo || "";
|
|
1333
|
+
return additionInfo;
|
|
1334
|
+
}
|
|
1331
1335
|
async buildMessages(ctx) {
|
|
1332
1336
|
const messages = [];
|
|
1337
|
+
const additionInfo = await this._buildAdditionInfo(ctx);
|
|
1333
1338
|
if (ctx.systemPrompt) {
|
|
1334
1339
|
messages.push({
|
|
1335
1340
|
role: "system",
|
|
1336
|
-
content: ctx.systemPrompt
|
|
1341
|
+
content: `${ctx.systemPrompt}
|
|
1342
|
+
|
|
1343
|
+
${additionInfo}`
|
|
1344
|
+
});
|
|
1345
|
+
} else {
|
|
1346
|
+
messages.push({
|
|
1347
|
+
role: "system",
|
|
1348
|
+
content: `${additionInfo}`
|
|
1337
1349
|
});
|
|
1338
1350
|
}
|
|
1339
1351
|
messages.push(...ctx.messages);
|
|
@@ -1677,6 +1689,9 @@ __legacyDecorateClassTS([
|
|
|
1677
1689
|
__legacyDecorateClassTS([
|
|
1678
1690
|
TracedAs("agent.component.run", { recordParams: true, recordResult: true, log: true })
|
|
1679
1691
|
], AgentComponent.prototype, "_run", null);
|
|
1692
|
+
__legacyDecorateClassTS([
|
|
1693
|
+
TracedAs("agent.component.buildAdditionInfo", { recordParams: true, recordResult: true, log: true })
|
|
1694
|
+
], AgentComponent.prototype, "_buildAdditionInfo", null);
|
|
1680
1695
|
__legacyDecorateClassTS([
|
|
1681
1696
|
TracedAs("agent.component.invokeLLM", { recordParams: true, recordResult: true, log: true })
|
|
1682
1697
|
], AgentComponent.prototype, "invokeLLM", null);
|