@epoch-agent/core 2.4.0 → 2.5.0
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/index.js +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17733,12 +17733,14 @@ function parseTurnFacts(json) {
|
|
|
17733
17733
|
const model = str3(raw["model"]);
|
|
17734
17734
|
const requestedModel = str3(raw["requestedModel"]);
|
|
17735
17735
|
const durationMs = num2(raw["durationMs"]);
|
|
17736
|
+
const error = str3(raw["error"])?.trim() || void 0;
|
|
17736
17737
|
return {
|
|
17737
17738
|
toolCalls,
|
|
17738
17739
|
...usage ? { usage } : {},
|
|
17739
17740
|
...model ? { model } : {},
|
|
17740
17741
|
...requestedModel ? { requestedModel } : {},
|
|
17741
|
-
...durationMs !== void 0 ? { durationMs } : {}
|
|
17742
|
+
...durationMs !== void 0 ? { durationMs } : {},
|
|
17743
|
+
...error ? { error } : {}
|
|
17742
17744
|
};
|
|
17743
17745
|
}
|
|
17744
17746
|
function encodeTurnFacts(facts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "epoch-agent 核心引擎:ReAct 循环、Provider 路由、工具调度、记忆管理",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"gpt-tokenizer": "^3.4.0",
|
|
28
28
|
"js-yaml": "^5.2.3",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@epoch-agent/
|
|
31
|
-
"@epoch-agent/
|
|
30
|
+
"@epoch-agent/protocol": "2.5.0",
|
|
31
|
+
"@epoch-agent/infra": "2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@ai-sdk/alibaba": "^2.0.69",
|