@elizaos/core 1.2.12 → 1.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/{chunk-EFASA4CC.js → chunk-P3YTG22Y.js} +22 -16
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/specs/v1/index.js +1 -1
- package/dist/specs/v1/messages.js +1 -1
- package/dist/specs/v1/posts.js +1 -1
- package/dist/specs/v1/runtime.js +1 -1
- package/dist/specs/v1/uuid.js +1 -1
- package/dist/specs/v2/index.js +1 -1
- package/package.json +3 -2
|
@@ -5206,20 +5206,22 @@ Agent: {{agentName}} (ID: {{agentId}})
|
|
|
5206
5206
|
5. If multiple matches exist, use context to disambiguate
|
|
5207
5207
|
6. Consider recent interactions and relationship strength when resolving ambiguity
|
|
5208
5208
|
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5209
|
+
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
5210
|
+
Go directly to the XML response format without any preamble or explanation.
|
|
5211
|
+
|
|
5212
|
+
Return an XML response with:
|
|
5213
|
+
<response>
|
|
5214
|
+
<entityId>exact-id-if-known-otherwise-null</entityId>
|
|
5215
|
+
<type>EXACT_MATCH | USERNAME_MATCH | NAME_MATCH | RELATIONSHIP_MATCH | AMBIGUOUS | UNKNOWN</type>
|
|
5216
|
+
<matches>
|
|
5217
|
+
<match>
|
|
5218
|
+
<name>matched-name</name>
|
|
5219
|
+
<reason>why this entity matches</reason>
|
|
5220
|
+
</match>
|
|
5221
|
+
</matches>
|
|
5222
|
+
</response>
|
|
5220
5223
|
|
|
5221
|
-
|
|
5222
|
-
`;
|
|
5224
|
+
IMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.`;
|
|
5223
5225
|
async function getRecentInteractions(runtime, sourceEntityId, candidateEntities, roomId, relationships) {
|
|
5224
5226
|
const results = [];
|
|
5225
5227
|
const recentMessages = await runtime.getMemories({
|
|
@@ -5310,7 +5312,7 @@ async function findEntityByName(runtime, message, state) {
|
|
|
5310
5312
|
prompt,
|
|
5311
5313
|
stopSequences: []
|
|
5312
5314
|
});
|
|
5313
|
-
const resolution =
|
|
5315
|
+
const resolution = parseKeyValueXml(result);
|
|
5314
5316
|
if (!resolution) {
|
|
5315
5317
|
logger.warn("Failed to parse entity resolution result");
|
|
5316
5318
|
return null;
|
|
@@ -5333,8 +5335,12 @@ async function findEntityByName(runtime, message, state) {
|
|
|
5333
5335
|
return entity;
|
|
5334
5336
|
}
|
|
5335
5337
|
}
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
+
let matchesArray = [];
|
|
5339
|
+
if (resolution.matches?.match) {
|
|
5340
|
+
matchesArray = Array.isArray(resolution.matches.match) ? resolution.matches.match : [resolution.matches.match];
|
|
5341
|
+
}
|
|
5342
|
+
if (matchesArray.length > 0 && matchesArray[0]?.name) {
|
|
5343
|
+
const matchName = matchesArray[0].name.toLowerCase();
|
|
5338
5344
|
const matchingEntity = allEntities.find((entity) => {
|
|
5339
5345
|
if (entity.names.some((n) => n.toLowerCase() === matchName)) return true;
|
|
5340
5346
|
return entity.components?.some(
|
package/dist/index.d.ts
CHANGED
|
@@ -1645,9 +1645,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
1645
1645
|
}, "strip", z.ZodTypeAny, {
|
|
1646
1646
|
name?: string;
|
|
1647
1647
|
content?: {
|
|
1648
|
-
thought?: string;
|
|
1649
1648
|
text?: string;
|
|
1650
1649
|
actions?: string[];
|
|
1650
|
+
thought?: string;
|
|
1651
1651
|
providers?: string[];
|
|
1652
1652
|
source?: string;
|
|
1653
1653
|
target?: string;
|
|
@@ -1661,9 +1661,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
1661
1661
|
}, {
|
|
1662
1662
|
name?: string;
|
|
1663
1663
|
content?: {
|
|
1664
|
-
thought?: string;
|
|
1665
1664
|
text?: string;
|
|
1666
1665
|
actions?: string[];
|
|
1666
|
+
thought?: string;
|
|
1667
1667
|
providers?: string[];
|
|
1668
1668
|
source?: string;
|
|
1669
1669
|
target?: string;
|
|
@@ -1730,9 +1730,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
1730
1730
|
messageExamples?: {
|
|
1731
1731
|
name?: string;
|
|
1732
1732
|
content?: {
|
|
1733
|
-
thought?: string;
|
|
1734
1733
|
text?: string;
|
|
1735
1734
|
actions?: string[];
|
|
1735
|
+
thought?: string;
|
|
1736
1736
|
providers?: string[];
|
|
1737
1737
|
source?: string;
|
|
1738
1738
|
target?: string;
|
|
@@ -1772,9 +1772,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
1772
1772
|
messageExamples?: {
|
|
1773
1773
|
name?: string;
|
|
1774
1774
|
content?: {
|
|
1775
|
-
thought?: string;
|
|
1776
1775
|
text?: string;
|
|
1777
1776
|
actions?: string[];
|
|
1777
|
+
thought?: string;
|
|
1778
1778
|
providers?: string[];
|
|
1779
1779
|
source?: string;
|
|
1780
1780
|
target?: string;
|
package/dist/index.js
CHANGED
package/dist/specs/v1/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMessages3 as formatMessages,
|
|
4
4
|
formatTimestamp3 as formatTimestamp,
|
|
5
5
|
getActorDetails
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-P3YTG22Y.js";
|
|
7
7
|
import "../../chunk-2HSL25IJ.js";
|
|
8
8
|
import "../../chunk-WO7Z3GE6.js";
|
|
9
9
|
import "../../chunk-U2ADTLZY.js";
|
package/dist/specs/v1/posts.js
CHANGED
package/dist/specs/v1/runtime.js
CHANGED
package/dist/specs/v1/uuid.js
CHANGED
package/dist/specs/v2/index.js
CHANGED
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
unsaltWorldSettings2 as unsaltWorldSettings,
|
|
79
79
|
updateWorldSettings2 as updateWorldSettings,
|
|
80
80
|
validateUuid2 as validateUuid
|
|
81
|
-
} from "../../chunk-
|
|
81
|
+
} from "../../chunk-P3YTG22Y.js";
|
|
82
82
|
import "../../chunk-2HSL25IJ.js";
|
|
83
83
|
import "../../chunk-WO7Z3GE6.js";
|
|
84
84
|
import "../../chunk-U2ADTLZY.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"typescript": "5.8.3"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
+
"@langchain/core": ">=0.3.0 <0.4.0",
|
|
58
59
|
"@sentry/browser": "^9.22.0",
|
|
59
60
|
"buffer": "^6.0.3",
|
|
60
61
|
"crypto-browserify": "^3.12.1",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"publishConfig": {
|
|
76
77
|
"access": "public"
|
|
77
78
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "48d0b08182b5fd5b17dd58198b1fee15b0815775"
|
|
79
80
|
}
|