openloops 0.3.0 → 0.3.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/loops/agi/loop.js +1 -2
- package/dist/loops/agi/loop.mjs +1 -2
- package/docs/loops.md +1 -1
- package/package.json +1 -1
package/dist/loops/agi/loop.js
CHANGED
|
@@ -50,7 +50,7 @@ class AgiLoop extends import_harness.AgentLoop {
|
|
|
50
50
|
return "agi";
|
|
51
51
|
}
|
|
52
52
|
get version() {
|
|
53
|
-
return "1.8.
|
|
53
|
+
return "1.8.1";
|
|
54
54
|
}
|
|
55
55
|
get author() {
|
|
56
56
|
return {
|
|
@@ -129,7 +129,6 @@ class AgiLoop extends import_harness.AgentLoop {
|
|
|
129
129
|
const { rawText, ...callInfo } = result.callInfo;
|
|
130
130
|
const activity = (0, import_activity.cleanActivity)(result.activity);
|
|
131
131
|
if (activity) ctx.chat.state?.setCurrentActivity(activity, "model");
|
|
132
|
-
else if (ctx.chat.state?.hasModelActivity) ctx.chat.state?.setCurrentActivity("Thinking...");
|
|
133
132
|
task.addTurn({ ...result, activity }, {
|
|
134
133
|
author: "reasoning_engine",
|
|
135
134
|
declaredTools: catalog.tools.map((tool) => tool.name),
|
package/dist/loops/agi/loop.mjs
CHANGED
|
@@ -28,7 +28,7 @@ class AgiLoop extends AgentLoop {
|
|
|
28
28
|
return "agi";
|
|
29
29
|
}
|
|
30
30
|
get version() {
|
|
31
|
-
return "1.8.
|
|
31
|
+
return "1.8.1";
|
|
32
32
|
}
|
|
33
33
|
get author() {
|
|
34
34
|
return {
|
|
@@ -107,7 +107,6 @@ class AgiLoop extends AgentLoop {
|
|
|
107
107
|
const { rawText, ...callInfo } = result.callInfo;
|
|
108
108
|
const activity = cleanActivity(result.activity);
|
|
109
109
|
if (activity) ctx.chat.state?.setCurrentActivity(activity, "model");
|
|
110
|
-
else if (ctx.chat.state?.hasModelActivity) ctx.chat.state?.setCurrentActivity("Thinking...");
|
|
111
110
|
task.addTurn({ ...result, activity }, {
|
|
112
111
|
author: "reasoning_engine",
|
|
113
112
|
declaredTools: catalog.tools.map((tool) => tool.name),
|
package/docs/loops.md
CHANGED
|
@@ -17,7 +17,7 @@ import { AgiLoop } from 'openloops/loops'
|
|
|
17
17
|
| `reasoning_engine` | Reads the situation or the results of the last actions, rewrites its working state, decides the next actions, reports the language of the conversation and says in one sentence what is happening until its next answer. |
|
|
18
18
|
| `action_engine` | Runs the actions the reasoning engine asked for, asks the user for confirmation when needed, delivers the final answer. |
|
|
19
19
|
|
|
20
|
-
The sentences of both nodes are what [`agent.onActivity`](agent.md#activity-updates) tells, written in the language of the conversation, so a client can show what the agent is doing instead of a generic `Thinking...`. They are optional: when a node leaves it out or writes something unusable (not a text, empty, `running`, `stopped`), the loop shows the generic activity of that moment. The text is cleaned of markup and line breaks and cut at 80 characters, and each one is kept in the turn that produced it (`turns[].activity`) to audit what the user saw.
|
|
20
|
+
The sentences of both nodes are what [`agent.onActivity`](agent.md#activity-updates) tells, written in the language of the conversation, so a client can show what the agent is doing instead of a generic `Thinking...`. They are optional: when a node leaves it out or writes something unusable (not a text, empty, `running`, `stopped`), the loop keeps the last one the model gave, also when the answer of a turn is not valid and the model has to try again, and it shows the generic activity of that moment (`Thinking...`, `Running search...`) only while there is none. The text is cleaned of markup and line breaks and cut at 80 characters, and each one is kept in the turn that produced it (`turns[].activity`) to audit what the user saw.
|
|
21
21
|
|
|
22
22
|
The loop works within a budget per task (20 reasoning turns and 40 tool calls) and stops with an honest answer when the model repeats itself, keeps only reading notes, or runs out of budget. It also rejects final answers that cite identifiers that never appeared in a result or in the user's words.
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openloops",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Open source harness for AI agents: a TypeScript runtime with persistence, tools, MCP trust, approvals and autonomous jobs, where the loop is pluggable",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jose Barcos",
|