@elizaos/plugin-bootstrap 1.4.4 → 1.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/actions/choice.d.ts +14 -0
- package/dist/actions/choice.d.ts.map +1 -0
- package/dist/actions/followRoom.d.ts +25 -0
- package/dist/actions/followRoom.d.ts.map +1 -0
- package/dist/actions/ignore.d.ts +26 -0
- package/dist/actions/ignore.d.ts.map +1 -0
- package/dist/actions/imageGeneration.d.ts +8 -0
- package/dist/actions/imageGeneration.d.ts.map +1 -0
- package/dist/actions/index.d.ts +14 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/muteRoom.d.ts +28 -0
- package/dist/actions/muteRoom.d.ts.map +1 -0
- package/dist/actions/none.d.ts +15 -0
- package/dist/actions/none.d.ts.map +1 -0
- package/dist/actions/reply.d.ts +16 -0
- package/dist/actions/reply.d.ts.map +1 -0
- package/dist/actions/roles.d.ts +13 -0
- package/dist/actions/roles.d.ts.map +1 -0
- package/dist/actions/sendMessage.d.ts +15 -0
- package/dist/actions/sendMessage.d.ts.map +1 -0
- package/dist/actions/settings.d.ts +21 -0
- package/dist/actions/settings.d.ts.map +1 -0
- package/dist/actions/unfollowRoom.d.ts +13 -0
- package/dist/actions/unfollowRoom.d.ts.map +1 -0
- package/dist/actions/unmuteRoom.d.ts +24 -0
- package/dist/actions/unmuteRoom.d.ts.map +1 -0
- package/dist/actions/updateEntity.d.ts +43 -0
- package/dist/actions/updateEntity.d.ts.map +1 -0
- package/dist/evaluators/index.d.ts +2 -0
- package/dist/evaluators/index.d.ts.map +1 -0
- package/dist/evaluators/reflection.d.ts +3 -0
- package/dist/evaluators/reflection.d.ts.map +1 -0
- package/dist/index.d.ts +10 -421
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1196 -1268
- package/dist/index.js.map +49 -1
- package/dist/providers/actionState.d.ts +7 -0
- package/dist/providers/actionState.d.ts.map +1 -0
- package/dist/providers/actions.d.ts +35 -0
- package/dist/providers/actions.d.ts.map +1 -0
- package/dist/providers/anxiety.d.ts +16 -0
- package/dist/providers/anxiety.d.ts.map +1 -0
- package/dist/providers/attachments.d.ts +20 -0
- package/dist/providers/attachments.d.ts.map +1 -0
- package/dist/providers/capabilities.d.ts +14 -0
- package/dist/providers/capabilities.d.ts.map +1 -0
- package/dist/providers/character.d.ts +17 -0
- package/dist/providers/character.d.ts.map +1 -0
- package/dist/providers/choice.d.ts +11 -0
- package/dist/providers/choice.d.ts.map +1 -0
- package/dist/providers/entities.d.ts +7 -0
- package/dist/providers/entities.d.ts.map +1 -0
- package/dist/providers/evaluators.d.ts +27 -0
- package/dist/providers/evaluators.d.ts.map +1 -0
- package/dist/providers/facts.d.ts +11 -0
- package/dist/providers/facts.d.ts.map +1 -0
- package/dist/providers/index.d.ts +18 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/providers.d.ts +18 -0
- package/dist/providers/providers.d.ts.map +1 -0
- package/dist/providers/recentMessages.d.ts +14 -0
- package/dist/providers/recentMessages.d.ts.map +1 -0
- package/dist/providers/relationships.d.ts +15 -0
- package/dist/providers/relationships.d.ts.map +1 -0
- package/dist/providers/roles.d.ts +19 -0
- package/dist/providers/roles.d.ts.map +1 -0
- package/dist/providers/settings.d.ts +7 -0
- package/dist/providers/settings.d.ts.map +1 -0
- package/dist/providers/shouldRespond.d.ts +7 -0
- package/dist/providers/shouldRespond.d.ts.map +1 -0
- package/dist/providers/time.d.ts +16 -0
- package/dist/providers/time.d.ts.map +1 -0
- package/dist/providers/world.d.ts +8 -0
- package/dist/providers/world.d.ts.map +1 -0
- package/dist/services/embedding.d.ts +43 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/task.d.ts +77 -0
- package/dist/services/task.d.ts.map +1 -0
- package/package.json +8 -9
- package/tsup.config.ts +0 -23
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an action that allows selecting an option for a pending task that has multiple options.
|
|
4
|
+
* @type {Action}
|
|
5
|
+
* @property {string} name - The name of the action
|
|
6
|
+
* @property {string[]} similes - Similar words or phrases for the action
|
|
7
|
+
* @property {string} description - A brief description of the action
|
|
8
|
+
* @property {Function} validate - Asynchronous function to validate the action
|
|
9
|
+
* @property {Function} handler - Asynchronous function to handle the action
|
|
10
|
+
* @property {ActionExample[][]} examples - Examples demonstrating the usage of the action
|
|
11
|
+
*/
|
|
12
|
+
export declare const choiceAction: Action;
|
|
13
|
+
export default choiceAction;
|
|
14
|
+
//# sourceMappingURL=choice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"choice.d.ts","sourceRoot":"","sources":["../../src/actions/choice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AA+DvB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,MA6V1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Template for deciding if {{agentName}} should start following a room.
|
|
4
|
+
* The decision is based on various criteria, including recent messages and user interactions.
|
|
5
|
+
* Respond with YES if:
|
|
6
|
+
* - The user has directly asked {{agentName}} to follow the conversation
|
|
7
|
+
* - The conversation topic is engaging and {{agentName}}'s input would add value
|
|
8
|
+
* - {{agentName}} has unique insights to contribute and users seem receptive
|
|
9
|
+
* Otherwise, respond with NO.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Template for determining if the agent should start following a room
|
|
13
|
+
* @type {string}
|
|
14
|
+
*/
|
|
15
|
+
export declare const shouldFollowTemplate = "# Task: Decide if {{agentName}} should start following this room, i.e. eagerly participating without explicit mentions.\n\n{{recentMessages}}\n\nShould {{agentName}} start following this room, eagerly participating without explicit mentions?\nRespond with YES if:\n- The user has directly asked {{agentName}} to follow the conversation or participate more actively\n- The conversation topic is highly engaging and {{agentName}}'s input would add significant value\n- {{agentName}} has unique insights to contribute and the users seem receptive\n\nOtherwise, respond with NO.\nRespond with only a YES or a NO.";
|
|
16
|
+
/**
|
|
17
|
+
* Action for following a room with great interest.
|
|
18
|
+
* Similes: FOLLOW_CHAT, FOLLOW_CHANNEL, FOLLOW_CONVERSATION, FOLLOW_THREAD
|
|
19
|
+
* Description: Start following this channel with great interest, chiming in without needing to be explicitly mentioned. Only do this if explicitly asked to.
|
|
20
|
+
* @param {IAgentRuntime} runtime - The current agent runtime.
|
|
21
|
+
* @param {Memory} message - The message memory.
|
|
22
|
+
* @returns {Promise<boolean>} - Promise that resolves to a boolean indicating if the room should be followed.
|
|
23
|
+
*/
|
|
24
|
+
export declare const followRoomAction: Action;
|
|
25
|
+
//# sourceMappingURL=followRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followRoom.d.ts","sourceRoot":"","sources":["../../src/actions/followRoom.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AAEvB;;;;;;;;GAQG;AACH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,qmBAWhB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,MA4cpB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Action representing the IGNORE action. This action is used when ignoring the user in a conversation.
|
|
4
|
+
*
|
|
5
|
+
* @type {Action}
|
|
6
|
+
* @property {string} name - The name of the action, which is "IGNORE".
|
|
7
|
+
* @property {string[]} similes - An array of related similes for the action.
|
|
8
|
+
* @property {Function} validate - Asynchronous function that validates the action.
|
|
9
|
+
* @property {string} description - Description of when to use the IGNORE action in a conversation.
|
|
10
|
+
* @property {Function} handler - Asynchronous function that handles the action logic.
|
|
11
|
+
* @property {ActionExample[][]} examples - Array of examples demonstrating the usage of the IGNORE action.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Represents an action called 'IGNORE'.
|
|
15
|
+
*
|
|
16
|
+
* This action is used to ignore the user in a conversation. It should be used when the user is aggressive, creepy, or when the conversation has naturally ended.
|
|
17
|
+
* Avoid using this action if the user has engaged directly or if there is a need to communicate with them. Use IGNORE only when the user should be ignored.
|
|
18
|
+
*
|
|
19
|
+
* The action includes a validation function that always returns true and a handler function that also returns true.
|
|
20
|
+
*
|
|
21
|
+
* Examples of using the IGNORE action are provided in the 'examples' array. Each example includes messages between two parties and the use of the IGNORE action.
|
|
22
|
+
*
|
|
23
|
+
* @typedef {Action} ignoreAction
|
|
24
|
+
*/
|
|
25
|
+
export declare const ignoreAction: Action;
|
|
26
|
+
//# sourceMappingURL=ignore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../src/actions/ignore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;GAUG;AACH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,MAyOhB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an action that allows the agent to generate an image using a generated prompt.
|
|
4
|
+
*
|
|
5
|
+
* This action can be used in a chain where the agent needs to visualize or illustrate a concept, emotion, or scene.
|
|
6
|
+
*/
|
|
7
|
+
export declare const generateImageAction: Action;
|
|
8
|
+
//# sourceMappingURL=imageGeneration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageGeneration.d.ts","sourceRoot":"","sources":["../../src/actions/imageGeneration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAoBvB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAqL3B,MAAM,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { generateImageAction } from './imageGeneration';
|
|
2
|
+
export { choiceAction } from './choice';
|
|
3
|
+
export { followRoomAction } from './followRoom';
|
|
4
|
+
export { ignoreAction } from './ignore';
|
|
5
|
+
export { muteRoomAction } from './muteRoom';
|
|
6
|
+
export { noneAction } from './none';
|
|
7
|
+
export { replyAction } from './reply';
|
|
8
|
+
export { updateRoleAction } from './roles';
|
|
9
|
+
export { sendMessageAction } from './sendMessage';
|
|
10
|
+
export { updateSettingsAction } from './settings';
|
|
11
|
+
export { unfollowRoomAction } from './unfollowRoom';
|
|
12
|
+
export { unmuteRoomAction } from './unmuteRoom';
|
|
13
|
+
export { updateEntityAction } from './updateEntity';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Template string for deciding if the agent should mute a room and stop responding unless explicitly mentioned.
|
|
4
|
+
*
|
|
5
|
+
* @type {string}
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Template for deciding if agent should mute a room and stop responding unless explicitly mentioned.
|
|
9
|
+
*
|
|
10
|
+
* @type {string}
|
|
11
|
+
*/
|
|
12
|
+
export declare const shouldMuteTemplate = "# Task: Decide if {{agentName}} should mute this room and stop responding unless explicitly mentioned.\n\n{{recentMessages}}\n\nShould {{agentName}} mute this room and stop responding unless explicitly mentioned?\n\nRespond with YES if:\n- The user is being aggressive, rude, or inappropriate\n- The user has directly asked {{agentName}} to stop responding or be quiet\n- {{agentName}}'s responses are not well-received or are annoying the user(s)\n\nOtherwise, respond with NO.\nRespond with only a YES or a NO.";
|
|
13
|
+
/**
|
|
14
|
+
* Action for muting a room, ignoring all messages unless explicitly mentioned.
|
|
15
|
+
* Only do this if explicitly asked to, or if you're annoying people.
|
|
16
|
+
*
|
|
17
|
+
* @name MUTE_ROOM
|
|
18
|
+
* @type {Action}
|
|
19
|
+
*
|
|
20
|
+
* @property {string} name - The name of the action
|
|
21
|
+
* @property {string[]} similes - Similar actions related to muting a room
|
|
22
|
+
* @property {string} description - Description of the action
|
|
23
|
+
* @property {Function} validate - Validation function to check if the room is not already muted
|
|
24
|
+
* @property {Function} handler - Handler function to handle muting the room
|
|
25
|
+
* @property {ActionExample[][]} examples - Examples of using the action
|
|
26
|
+
*/
|
|
27
|
+
export declare const muteRoomAction: Action;
|
|
28
|
+
//# sourceMappingURL=muteRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muteRoom.d.ts","sourceRoot":"","sources":["../../src/actions/muteRoom.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,qgBAYd,CAAC;AAElB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAE,MAmSlB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the none action.
|
|
4
|
+
*
|
|
5
|
+
* This action responds but performs no additional action. It is the default if the agent is speaking and not doing anything additional.
|
|
6
|
+
*
|
|
7
|
+
* @type {Action}
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Represents an action that responds but performs no additional action.
|
|
11
|
+
* This is the default behavior if the agent is speaking and not doing anything additional.
|
|
12
|
+
* @type {Action}
|
|
13
|
+
*/
|
|
14
|
+
export declare const noneAction: Action;
|
|
15
|
+
//# sourceMappingURL=none.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"none.d.ts","sourceRoot":"","sources":["../../src/actions/none.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAsD,MAAM,eAAe,CAAC;AAEhG;;;;;;GAMG;AACH;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,MAiJd,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an action that allows the agent to reply to the current conversation with a generated message.
|
|
4
|
+
*
|
|
5
|
+
* This action can be used as an acknowledgement at the beginning of a chain of actions, or as a final response at the end of a chain of actions.
|
|
6
|
+
*
|
|
7
|
+
* @typedef {Object} replyAction
|
|
8
|
+
* @property {string} name - The name of the action ("REPLY").
|
|
9
|
+
* @property {string[]} similes - An array of similes for the action.
|
|
10
|
+
* @property {string} description - A description of the action and its usage.
|
|
11
|
+
* @property {Function} validate - An asynchronous function for validating the action runtime.
|
|
12
|
+
* @property {Function} handler - An asynchronous function for handling the action logic.
|
|
13
|
+
* @property {ActionExample[][]} examples - An array of example scenarios for the action.
|
|
14
|
+
*/
|
|
15
|
+
export declare const replyAction: Action;
|
|
16
|
+
//# sourceMappingURL=reply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reply.d.ts","sourceRoot":"","sources":["../../src/actions/reply.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AAqCvB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EAyJnB,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an action to update the role of a user within a server.
|
|
4
|
+
* @typedef {Object} Action
|
|
5
|
+
* @property {string} name - The name of the action.
|
|
6
|
+
* @property {string[]} similes - The similar actions that can be performed.
|
|
7
|
+
* @property {string} description - A description of the action and its purpose.
|
|
8
|
+
* @property {Function} validate - A function to validate the action before execution.
|
|
9
|
+
* @property {Function} handler - A function to handle the execution of the action.
|
|
10
|
+
* @property {ActionExample[][]} examples - Examples demonstrating how the action can be used.
|
|
11
|
+
*/
|
|
12
|
+
export declare const updateRoleAction: Action;
|
|
13
|
+
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/actions/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAeZ,MAAM,eAAe,CAAC;AA0CvB;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAkT9B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an action to send a message to a user or room.
|
|
4
|
+
*
|
|
5
|
+
* @typedef {Action} sendMessageAction
|
|
6
|
+
* @property {string} name - The name of the action.
|
|
7
|
+
* @property {string[]} similes - Additional names for the action.
|
|
8
|
+
* @property {string} description - Description of the action.
|
|
9
|
+
* @property {function} validate - Asynchronous function to validate if the action can be executed.
|
|
10
|
+
* @property {function} handler - Asynchronous function to handle the action execution.
|
|
11
|
+
* @property {ActionExample[][]} examples - Examples demonstrating the usage of the action.
|
|
12
|
+
*/
|
|
13
|
+
export declare const sendMessageAction: Action;
|
|
14
|
+
export default sendMessageAction;
|
|
15
|
+
//# sourceMappingURL=sendMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendMessage.d.ts","sourceRoot":"","sources":["../../src/actions/sendMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,MAAM,EAYZ,MAAM,eAAe,CAAC;AAwFvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAsd/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Action, type IAgentRuntime, type WorldSettings } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Gets settings state from world metadata
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the settings for a specific world from the database.
|
|
7
|
+
* @param {IAgentRuntime} runtime - The Agent Runtime instance.
|
|
8
|
+
* @param {string} serverId - The ID of the server.
|
|
9
|
+
* @returns {Promise<WorldSettings | null>} The settings of the world, or null if not found.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getWorldSettings(runtime: IAgentRuntime, serverId: string): Promise<WorldSettings | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates settings state in world metadata
|
|
14
|
+
*/
|
|
15
|
+
export declare function updateWorldSettings(runtime: IAgentRuntime, serverId: string, worldSettings: WorldSettings): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Enhanced settings action with improved state management and logging
|
|
18
|
+
* Updated to use world metadata instead of cache
|
|
19
|
+
*/
|
|
20
|
+
export declare const updateSettingsAction: Action;
|
|
21
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/actions/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASX,KAAK,aAAa,EAOlB,KAAK,aAAa,EAEnB,MAAM,eAAe,CAAC;AAoMvB;;GAEG;AACH;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAc/B;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,OAAO,CAAC,CA0BlB;AAugBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAiclC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Action for unfollowing a room.
|
|
4
|
+
*
|
|
5
|
+
* - Name: UNFOLLOW_ROOM
|
|
6
|
+
* - Similes: ["UNFOLLOW_CHAT", "UNFOLLOW_CONVERSATION", "UNFOLLOW_ROOM", "UNFOLLOW_THREAD"]
|
|
7
|
+
* - Description: Stop following this channel. You can still respond if explicitly mentioned, but you won't automatically chime in anymore. Unfollow if you're annoying people or have been asked to.
|
|
8
|
+
* - Validate function checks if the room state is "FOLLOWED".
|
|
9
|
+
* - Handler function handles the unfollowing logic based on user input.
|
|
10
|
+
* - Examples provide sample interactions for unfollowing a room.
|
|
11
|
+
*/
|
|
12
|
+
export declare const unfollowRoomAction: Action;
|
|
13
|
+
//# sourceMappingURL=unfollowRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unfollowRoom.d.ts","sourceRoot":"","sources":["../../src/actions/unfollowRoom.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AA2BvB;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAgYtB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Template for determining if an agent should unmute a previously muted room.
|
|
4
|
+
* * @type { string }
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Template for deciding if {{agentName}} should unmute a previously muted room.
|
|
8
|
+
*
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
export declare const shouldUnmuteTemplate = "# Task: Decide if {{agentName}} should unmute this previously muted room and start considering it for responses again.\n\n{{recentMessages}}\n\nShould {{agentName}} unmute this previously muted room and start considering it for responses again?\nRespond with YES if:\n- The user has explicitly asked {{agentName}} to start responding again\n- The user seems to want to re-engage with {{agentName}} in a respectful manner\n- The tone of the conversation has improved and {{agentName}}'s input would be welcome\n\nOtherwise, respond with NO.\nRespond with only a YES or a NO.";
|
|
12
|
+
/**
|
|
13
|
+
* Action to unmute a room, allowing the agent to consider responding to messages again.
|
|
14
|
+
*
|
|
15
|
+
* @name UNMUTE_ROOM
|
|
16
|
+
* @similes ["UNMUTE_CHAT", "UNMUTE_CONVERSATION", "UNMUTE_ROOM", "UNMUTE_THREAD"]
|
|
17
|
+
* @description Unmutes a room, allowing the agent to consider responding to messages again.
|
|
18
|
+
*
|
|
19
|
+
* @param {IAgentRuntime} runtime - The agent runtime to access runtime functionalities.
|
|
20
|
+
* @param {Memory} message - The message containing information about the room.
|
|
21
|
+
* @returns {Promise<boolean>} A boolean value indicating if the room was successfully unmuted.
|
|
22
|
+
*/
|
|
23
|
+
export declare const unmuteRoomAction: Action;
|
|
24
|
+
//# sourceMappingURL=unmuteRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unmuteRoom.d.ts","sourceRoot":"","sources":["../../src/actions/unmuteRoom.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAWZ,MAAM,eAAe,CAAC;AAEvB;;;GAGG;AACH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,kkBAWhB,CAAC;AAElB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,MA+RpB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Action } from '@elizaos/core';
|
|
2
|
+
/**
|
|
3
|
+
* Action for updating contact details for a user entity.
|
|
4
|
+
*
|
|
5
|
+
* @name UPDATE_ENTITY
|
|
6
|
+
* @description Add or edit contact details for a user entity (like twitter, discord, email address, etc.)
|
|
7
|
+
*
|
|
8
|
+
* @param {IAgentRuntime} _runtime - The runtime environment.
|
|
9
|
+
* @param {Memory} _message - The message data.
|
|
10
|
+
* @param {State} _state - The current state.
|
|
11
|
+
* @returns {Promise<boolean>} Returns a promise indicating if validation was successful.
|
|
12
|
+
*
|
|
13
|
+
* @param {IAgentRuntime} runtime - The runtime environment.
|
|
14
|
+
* @param {Memory} message - The message data.
|
|
15
|
+
* @param {State} state - The current state.
|
|
16
|
+
* @param {any} _options - Additional options.
|
|
17
|
+
* @param {HandlerCallback} callback - The callback function.
|
|
18
|
+
* @param {Memory[]} responses - Array of responses.
|
|
19
|
+
* @returns {Promise<void>} Promise that resolves after handling the update entity action.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* [
|
|
23
|
+
* [
|
|
24
|
+
* {
|
|
25
|
+
* name: "{{name1}}",
|
|
26
|
+
* content: {
|
|
27
|
+
* text: "Please update my telegram username to @dev_guru",
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* name: "{{name2}}",
|
|
32
|
+
* content: {
|
|
33
|
+
* text: "I've updated your telegram information.",
|
|
34
|
+
* actions: ["UPDATE_ENTITY"],
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* ...
|
|
39
|
+
* ]
|
|
40
|
+
*/
|
|
41
|
+
export declare const updateEntityAction: Action;
|
|
42
|
+
export default updateEntityAction;
|
|
43
|
+
//# sourceMappingURL=updateEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateEntity.d.ts","sourceRoot":"","sources":["../../src/actions/updateEntity.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,eAAe,CAAC;AAiEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAkVhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evaluators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflection.d.ts","sourceRoot":"","sources":["../../src/evaluators/reflection.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,eAAe,CAAC;AAuUvB,eAAO,MAAM,mBAAmB,EAAE,SA+LjC,CAAC"}
|