@olane/o-intelligence 0.7.19 → 0.7.21
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.
|
@@ -31,7 +31,7 @@ export const INTELLIGENCE_PARAMS = {
|
|
|
31
31
|
value: 'string',
|
|
32
32
|
description: 'The prompt to send to the AI model',
|
|
33
33
|
},
|
|
34
|
-
{ name: '
|
|
34
|
+
{ name: 'userMessage',
|
|
35
35
|
type: 'string',
|
|
36
36
|
value: 'string',
|
|
37
37
|
description: 'The user message to send to the AI model',
|
|
@@ -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 {
|
|
219
|
+
const { userMessage, 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,14 +225,14 @@ export class IntelligenceTool extends oLaneTool {
|
|
|
225
225
|
params: {
|
|
226
226
|
_isStreaming: _isStreaming,
|
|
227
227
|
apiKey: intelligence.apiKey,
|
|
228
|
-
messages: !!
|
|
228
|
+
messages: !!userMessage ? [
|
|
229
229
|
{
|
|
230
230
|
role: 'system',
|
|
231
231
|
content: prompt
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
role: 'user',
|
|
235
|
-
content:
|
|
235
|
+
content: userMessage,
|
|
236
236
|
},
|
|
237
237
|
] : [
|
|
238
238
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-intelligence",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
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.21",
|
|
58
|
+
"@olane/o-core": "0.7.21",
|
|
59
|
+
"@olane/o-lane": "0.7.21",
|
|
60
|
+
"@olane/o-protocol": "0.7.21",
|
|
61
|
+
"@olane/o-tool": "0.7.21",
|
|
62
62
|
"debug": "^4.4.1",
|
|
63
63
|
"dotenv": "^16.5.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "71b58668445e27fc3285e36cee34f3264fc35d98"
|
|
66
66
|
}
|