@olane/o-intelligence 0.7.17 → 0.7.19
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/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/methods/intelligence.methods.d.ts.map +1 -1
- package/dist/src/methods/intelligence.methods.js +6 -0
- package/dist/src/o-intelligence.tool.d.ts.map +1 -1
- package/dist/src/o-intelligence.tool.js +12 -3
- package/package.json +7 -7
package/dist/src/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export * from './anthropic-intelligence.tool.js';
|
|
|
4
4
|
export * from './gemini-intelligence.tool.js';
|
|
5
5
|
export * from './grok-intelligence.tool.js';
|
|
6
6
|
export * from './o-intelligence.tool.js';
|
|
7
|
+
export * from './methods/intelligence.methods.js';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intelligence.methods.d.ts","sourceRoot":"","sources":["../../../src/methods/intelligence.methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"intelligence.methods.d.ts","sourceRoot":"","sources":["../../../src/methods/intelligence.methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAiDzD,CAAC"}
|
|
@@ -31,6 +31,12 @@ export const INTELLIGENCE_PARAMS = {
|
|
|
31
31
|
value: 'string',
|
|
32
32
|
description: 'The prompt to send to the AI model',
|
|
33
33
|
},
|
|
34
|
+
{ name: 'user',
|
|
35
|
+
type: 'string',
|
|
36
|
+
value: 'string',
|
|
37
|
+
description: 'The user message to send to the AI model',
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
34
40
|
{
|
|
35
41
|
name: 'stream',
|
|
36
42
|
type: 'boolean',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/o-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAa,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AAE7D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAO,C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gBAAgB,IAAI,OAAO,CAAC;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IA6DvD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAsEtE,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC;QACxD,MAAM,EAAE,QAAQ,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,GAAG,CAAC;KACd,CAAC;IAWI,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC;IA6C/D,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;IAwCzD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAuClC"}
|
|
@@ -216,7 +216,7 @@ export class IntelligenceTool extends oLaneTool {
|
|
|
216
216
|
}
|
|
217
217
|
// we cannot wrap this tool use in a plan because it is a core dependency in all planning
|
|
218
218
|
async _tool_prompt(request) {
|
|
219
|
-
const { prompt, _isStreaming = false } = request.params;
|
|
219
|
+
const { user, prompt, _isStreaming = false } = request.params;
|
|
220
220
|
const stream = request.stream;
|
|
221
221
|
const intelligence = await this.chooseIntelligence(request);
|
|
222
222
|
const child = this.hierarchyManager.getChild(intelligence.choice);
|
|
@@ -225,10 +225,19 @@ export class IntelligenceTool extends oLaneTool {
|
|
|
225
225
|
params: {
|
|
226
226
|
_isStreaming: _isStreaming,
|
|
227
227
|
apiKey: intelligence.apiKey,
|
|
228
|
-
messages: [
|
|
228
|
+
messages: !!user ? [
|
|
229
|
+
{
|
|
230
|
+
role: 'system',
|
|
231
|
+
content: prompt
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
role: 'user',
|
|
235
|
+
content: user,
|
|
236
|
+
},
|
|
237
|
+
] : [
|
|
229
238
|
{
|
|
230
239
|
role: 'user',
|
|
231
|
-
content: prompt
|
|
240
|
+
content: prompt
|
|
232
241
|
},
|
|
233
242
|
],
|
|
234
243
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-intelligence",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"typescript": "5.4.5"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@olane/o-config": "0.7.
|
|
58
|
-
"@olane/o-core": "0.7.
|
|
59
|
-
"@olane/o-lane": "0.7.
|
|
60
|
-
"@olane/o-protocol": "0.7.
|
|
61
|
-
"@olane/o-tool": "0.7.
|
|
57
|
+
"@olane/o-config": "0.7.19",
|
|
58
|
+
"@olane/o-core": "0.7.19",
|
|
59
|
+
"@olane/o-lane": "0.7.19",
|
|
60
|
+
"@olane/o-protocol": "0.7.19",
|
|
61
|
+
"@olane/o-tool": "0.7.19",
|
|
62
62
|
"debug": "^4.4.1",
|
|
63
63
|
"dotenv": "^16.5.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "956ef7a726e5ac2efb7028ffca707ec1cf6ea131"
|
|
66
66
|
}
|