@lloyal-labs/rig 1.5.0 → 1.5.2

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.
@@ -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 research findings
5
+ * Terminal tool for submitting agent results
6
6
  *
7
- * Used as the `terminalTool` in agent pools -- when an agent calls
8
- * this tool, the pool records the findings string and marks the
9
- * agent as finished. The tool itself is a no-op; the agent pool
10
- * intercepts the call and extracts the `findings` argument.
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
- findings: string;
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 findings parameter description. */
24
- findingsDescription?: string;
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,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;IACxD,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,mDAAmD;QACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;IAiBA,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC;CAC/B"}
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"}
@@ -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 research findings
6
+ * Terminal tool for submitting agent results
7
7
  *
8
- * Used as the `terminalTool` in agent pools -- when an agent calls
9
- * this tool, the pool records the findings string and marks the
10
- * agent as finished. The tool itself is a no-op; the agent pool
11
- * intercepts the call and extracts the `findings` argument.
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
- findings: {
26
+ result: {
27
27
  type: 'string',
28
- description: opts?.findingsDescription ??
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: ['findings'],
32
+ required: ['result'],
33
33
  };
34
34
  }
35
35
  *execute() { return {}; }
@@ -1 +1 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/tools/report.ts"],"names":[],"mappings":";;;AACA,8DAAkD;AAGlD;;;;;;;;;GASG;AACH,MAAa,UAAW,SAAQ,oBAA0B;IAC/C,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,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,IAAI,EAAE,mBAAmB;wBACpC,oHAAoH;iBACvH;aACF;YACD,QAAQ,EAAE,CAAC,UAAU,CAAC;SACvB,CAAC;IACJ,CAAC;IAED,CAAC,OAAO,KAAyB,OAAO,EAAE,CAAC,CAAC,CAAC;CAC9C;AA5BD,gCA4BC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lloyal-labs/rig",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Retrieval-Interleaved Generation for lloyal-agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",