@lloyal-labs/rig 1.5.0 → 1.5.1
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/report.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import type { Operation } from 'effection';
|
|
|
2
2
|
import { Tool } from '@lloyal-labs/lloyal-agents';
|
|
3
3
|
import type { JsonSchema } from '@lloyal-labs/lloyal-agents';
|
|
4
4
|
/**
|
|
5
|
-
* Terminal tool for submitting
|
|
5
|
+
* Terminal tool for submitting agent results
|
|
6
6
|
*
|
|
7
|
-
* Used as the `terminalTool` in agent pools
|
|
8
|
-
* this tool, the pool records the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* Used as the `terminalTool` in agent pools — when an agent calls
|
|
8
|
+
* this tool, the pool records the result string and marks the agent
|
|
9
|
+
* as finished. The tool itself is a no-op; the agent pool intercepts
|
|
10
|
+
* the call and extracts the `result` argument.
|
|
11
11
|
*
|
|
12
12
|
* @category Rig
|
|
13
13
|
*/
|
|
14
14
|
export declare class ReportTool extends Tool<{
|
|
15
|
-
|
|
15
|
+
result: string;
|
|
16
16
|
}> {
|
|
17
17
|
readonly name = "report";
|
|
18
18
|
readonly description: string;
|
|
@@ -20,8 +20,8 @@ export declare class ReportTool extends Tool<{
|
|
|
20
20
|
constructor(opts?: {
|
|
21
21
|
/** Override the tool description shown in the agent's tool schema. */
|
|
22
22
|
description?: string;
|
|
23
|
-
/** Override the
|
|
24
|
-
|
|
23
|
+
/** Override the result parameter description. */
|
|
24
|
+
resultDescription?: string;
|
|
25
25
|
});
|
|
26
26
|
execute(): Operation<unknown>;
|
|
27
27
|
}
|
|
@@ -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;;;;;;;;;GASG;AACH,qBAAa,UAAW,SAAQ,IAAI,CAAC;IAAE,
|
|
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;;;;;;;;;GASG;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
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ReportTool = void 0;
|
|
4
4
|
const lloyal_agents_1 = require("@lloyal-labs/lloyal-agents");
|
|
5
5
|
/**
|
|
6
|
-
* Terminal tool for submitting
|
|
6
|
+
* Terminal tool for submitting agent results
|
|
7
7
|
*
|
|
8
|
-
* Used as the `terminalTool` in agent pools
|
|
9
|
-
* this tool, the pool records the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Used as the `terminalTool` in agent pools — when an agent calls
|
|
9
|
+
* this tool, the pool records the result string and marks the agent
|
|
10
|
+
* as finished. The tool itself is a no-op; the agent pool intercepts
|
|
11
|
+
* the call and extracts the `result` argument.
|
|
12
12
|
*
|
|
13
13
|
* @category Rig
|
|
14
14
|
*/
|
|
@@ -23,13 +23,13 @@ class ReportTool extends lloyal_agents_1.Tool {
|
|
|
23
23
|
this.parameters = {
|
|
24
24
|
type: 'object',
|
|
25
25
|
properties: {
|
|
26
|
-
|
|
26
|
+
result: {
|
|
27
27
|
type: 'string',
|
|
28
|
-
description: opts?.
|
|
28
|
+
description: opts?.resultDescription ??
|
|
29
29
|
'Detailed findings with direct quotes, data points, and source URLs. Include what was found and what was not found.',
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
required: ['
|
|
32
|
+
required: ['result'],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
*execute() { return {}; }
|
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;;;;;;;;;GASG;AACH,MAAa,UAAW,SAAQ,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":";;;AACA,8DAAkD;AAGlD;;;;;;;;;GASG;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"}
|