@lloyal-labs/rig 2.0.1 → 2.1.0
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/tools/delegate.js
CHANGED
|
@@ -157,7 +157,7 @@ class DelegateTool extends lloyal_agents_1.Tool {
|
|
|
157
157
|
...(this._createPolicy ? { policy: this._createPolicy() } : {}),
|
|
158
158
|
orchestrate: (0, lloyal_agents_1.parallel)(tasks.map(t => ({ systemPrompt: this._systemPrompt, content: t }))),
|
|
159
159
|
parent: context?.branch,
|
|
160
|
-
|
|
160
|
+
pruneOnReturn: opts.pruneOnReturn ?? true,
|
|
161
161
|
scorer: context?.scorer,
|
|
162
162
|
});
|
|
163
163
|
const result = {
|
package/dist/tools/report.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ import type { JsonSchema } from '@lloyal-labs/lloyal-agents';
|
|
|
4
4
|
/**
|
|
5
5
|
* Terminal tool for submitting agent results
|
|
6
6
|
*
|
|
7
|
-
* Used as the `
|
|
7
|
+
* Used as the `terminalToolName` in agent pools — when an agent calls
|
|
8
8
|
* this tool, the pool records the result string and marks the agent
|
|
9
|
-
* as finished. The tool
|
|
10
|
-
* the call and extracts the
|
|
9
|
+
* as finished. The tool's `execute()` code-path is not reached; the
|
|
10
|
+
* agent pool intercepts the call at the policy layer and extracts the
|
|
11
|
+
* `result` argument as the agent's return value.
|
|
11
12
|
*
|
|
12
13
|
* @category Rig
|
|
13
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,SAAQ,IAAI,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;IACtD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;gBAEpB,IAAI,CAAC,EAAE;QACjB,sEAAsE;QACtE,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,iDAAiD;QACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAiBA,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC;CAC/B"}
|
package/dist/tools/report.js
CHANGED
|
@@ -5,10 +5,11 @@ const lloyal_agents_1 = require("@lloyal-labs/lloyal-agents");
|
|
|
5
5
|
/**
|
|
6
6
|
* Terminal tool for submitting agent results
|
|
7
7
|
*
|
|
8
|
-
* Used as the `
|
|
8
|
+
* Used as the `terminalToolName` in agent pools — when an agent calls
|
|
9
9
|
* this tool, the pool records the result string and marks the agent
|
|
10
|
-
* as finished. The tool
|
|
11
|
-
* the call and extracts the
|
|
10
|
+
* as finished. The tool's `execute()` code-path is not reached; the
|
|
11
|
+
* agent pool intercepts the call at the policy layer and extracts the
|
|
12
|
+
* `result` argument as the agent's return value.
|
|
12
13
|
*
|
|
13
14
|
* @category Rig
|
|
14
15
|
*/
|
package/dist/tools/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":";;;AACA,8DAAkD;AAGlD
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":";;;AACA,8DAAkD;AAGlD;;;;;;;;;;GAUG;AACH,MAAa,UAAW,SAAQ,oBAAwB;IAC7C,IAAI,GAAG,QAAQ,CAAC;IAChB,WAAW,CAAS;IACpB,UAAU,CAAa;IAEhC,YAAY,IAKX;QACC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,IAAI,EAAE,WAAW;YAClC,oOAAoO,CAAC;QACvO,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,IAAI,EAAE,iBAAiB;wBAClC,oHAAoH;iBACvH;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB,CAAC;IACJ,CAAC;IAED,CAAC,OAAO,KAAyB,OAAO,EAAE,CAAC,CAAC,CAAC;CAC9C;AA5BD,gCA4BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lloyal-labs/rig",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Retrieval-Interleaved Generation for lloyal-agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"build": "tsc -b"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@lloyal-labs/lloyal-agents": "^2.
|
|
44
|
-
"@lloyal-labs/sdk": "^2.
|
|
43
|
+
"@lloyal-labs/lloyal-agents": "^2.1.0",
|
|
44
|
+
"@lloyal-labs/sdk": "^2.1.0",
|
|
45
45
|
"@mozilla/readability": "^0.6.0",
|
|
46
46
|
"effection": "^4.0.2",
|
|
47
47
|
"ignore": "^7.0.5",
|