@eko-ai/eko 3.0.6-alpha.2 → 3.0.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser_labels.d.ts","sourceRoot":"","sources":["../../../src/agent/browser/browser_labels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EAErB,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAG3D,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,sBAAuB,SAAQ,gBAAgB;gBAC/D,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"browser_labels.d.ts","sourceRoot":"","sources":["../../../src/agent/browser/browser_labels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EAErB,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAG3D,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,sBAAuB,SAAQ,gBAAgB;gBAC/D,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;cAkDvD,UAAU,CACxB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,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,EAAE,qBAAqB,EAC/B,KAAK,EAAE,IAAI,EAAE,GACZ,OAAO,CAAC,IAAI,CAAC;IA2ChB,OAAO,CAAC,oBAAoB;IAkC5B,OAAO,CAAC,oBAAoB;CA0B7B;AA4SD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -35336,7 +35336,7 @@ During the task execution process, you can use the \`${TOOL_NAME$5}\` tool to in
|
|
|
35336
35336
|
const VARIABLE_PROMPT = `
|
|
35337
35337
|
* VARIABLE STORAGE
|
|
35338
35338
|
When a step node has input/output variable attributes, use the \`${TOOL_NAME$3}\` tool to read from and write to these variables, these variables enable context sharing and coordination between multiple agents.
|
|
35339
|
-
|
|
35339
|
+
\`${TOOL_NAME$3}\` tool does not support parallel processing.
|
|
35340
35340
|
`;
|
|
35341
35341
|
const FOR_EACH_NODE = `
|
|
35342
35342
|
<!-- duplicate task node, items support list and variable -->
|
|
@@ -35397,9 +35397,9 @@ function getAgentSystemPrompt(agent, agentNode, context, tools, extSysPrompt) {
|
|
|
35397
35397
|
prompt += "\n Main task: " + context.chain.taskPrompt;
|
|
35398
35398
|
prompt += "\n\n# Pre-task execution results";
|
|
35399
35399
|
for (let i = 0; i < context.chain.agents.length; i++) {
|
|
35400
|
-
|
|
35400
|
+
let agentChain = context.chain.agents[i];
|
|
35401
35401
|
if (agentChain.agentResult) {
|
|
35402
|
-
prompt += `\n## ${agentChain.agent.task || agentChain.agent.name}\n
|
|
35402
|
+
prompt += `\n## ${agentChain.agent.task || agentChain.agent.name}\n${sub(agentChain.agentResult, 800, true)}`;
|
|
35403
35403
|
}
|
|
35404
35404
|
}
|
|
35405
35405
|
}
|
|
@@ -35412,7 +35412,7 @@ function getAgentSystemPrompt(agent, agentNode, context, tools, extSysPrompt) {
|
|
|
35412
35412
|
.trim();
|
|
35413
35413
|
sysPrompt += "\n";
|
|
35414
35414
|
if (agent.canParallelToolCalls()) {
|
|
35415
|
-
sysPrompt += "\nFor maximum efficiency,
|
|
35415
|
+
sysPrompt += "\nFor maximum efficiency, whenever you need to perform multiple independent operations, invoke all relevant tools simultaneously rather than sequentially. Parallel execution should only be used when operations are truly independent and won't cause conflicts or race conditions.";
|
|
35416
35416
|
}
|
|
35417
35417
|
sysPrompt += "\nThe output language should follow the language corresponding to the user's task.";
|
|
35418
35418
|
return sysPrompt;
|
|
@@ -37203,9 +37203,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
|
|
|
37203
37203
|
if (config$1.parallelToolCalls) {
|
|
37204
37204
|
description += `
|
|
37205
37205
|
* Parallelism:
|
|
37206
|
-
-
|
|
37207
|
-
- Operations that support parallelism generally only include clicking and input operations
|
|
37208
|
-
- When filling out a form, fields that are not dependent on each other should be filled simultaneously
|
|
37206
|
+
- When performing multiple independent steps, they should be executed in parallel whenever possible. For example, when filling out a form, fields that are not dependent on each other should be filled simultaneously.
|
|
37209
37207
|
- Avoid parallel processing for dependent operations, such as those that need to wait for page loading, DOM changes, redirects, subsequent operations that depend on the results of previous operations, or operations that may interfere with each other and affect the same page elements. In these cases, please do not use parallelization.`;
|
|
37210
37208
|
}
|
|
37211
37209
|
const _tools_ = [];
|