@elizaos/core 1.0.0-alpha.21 → 1.0.0-alpha.23
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 +21 -0
- package/dist/actions/followRoom.d.ts.map +1 -0
- package/dist/actions/ignore.d.ts +14 -0
- package/dist/actions/ignore.d.ts.map +1 -0
- package/dist/actions/muteRoom.d.ts +23 -0
- package/dist/actions/muteRoom.d.ts.map +1 -0
- package/dist/actions/none.d.ts +10 -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 +14 -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 +22 -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 +19 -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/actions.d.ts +29 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/bootstrap.d.ts +4 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/database.d.ts +420 -0
- package/dist/database.d.ts.map +1 -0
- package/dist/entities.d.ts +34 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/environment.d.ts +404 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/evaluators/reflection.d.ts +3 -0
- package/dist/evaluators/reflection.d.ts.map +1 -0
- package/dist/import.d.ts +10 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/memory.d.ts +115 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/prompts.d.ts +201 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/providers/actions.d.ts +15 -0
- package/dist/providers/actions.d.ts.map +1 -0
- package/dist/providers/anxiety.d.ts +10 -0
- package/dist/providers/anxiety.d.ts.map +1 -0
- package/dist/providers/attachments.d.ts +9 -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 +10 -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 +3 -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/knowledge.d.ts +14 -0
- package/dist/providers/knowledge.d.ts.map +1 -0
- package/dist/providers/providers.d.ts +7 -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 +15 -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 +12 -0
- package/dist/providers/time.d.ts.map +1 -0
- package/dist/roles.d.ts +26 -0
- package/dist/roles.d.ts.map +1 -0
- package/dist/runtime.d.ts +291 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/services/scenario.d.ts +107 -0
- package/dist/services/scenario.d.ts.map +1 -0
- package/dist/services/task.d.ts +73 -0
- package/dist/services/task.d.ts.map +1 -0
- package/dist/settings.d.ts +14 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/test_resources/constants.d.ts +10 -0
- package/dist/test_resources/constants.d.ts.map +1 -0
- package/dist/test_resources/testSetup.d.ts +2 -0
- package/dist/test_resources/testSetup.d.ts.map +1 -0
- package/dist/test_resources/types.d.ts +23 -0
- package/dist/test_resources/types.d.ts.map +1 -0
- package/dist/types.d.ts +1292 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/uuid.d.ts +19 -0
- package/dist/uuid.d.ts.map +1 -0
- package/package.json +2 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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":"AAGA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AAkElB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,MAwO1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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
|
+
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.";
|
|
12
|
+
/**
|
|
13
|
+
* Action for following a room with great interest.
|
|
14
|
+
* Similes: FOLLOW_CHAT, FOLLOW_CHANNEL, FOLLOW_CONVERSATION, FOLLOW_THREAD
|
|
15
|
+
* Description: Start following this channel with great interest, chiming in without needing to be explicitly mentioned. Only do this if explicitly asked to.
|
|
16
|
+
* @param {IAgentRuntime} runtime - The current agent runtime.
|
|
17
|
+
* @param {Memory} message - The message memory.
|
|
18
|
+
* @returns {Promise<boolean>} - Promise that resolves to a boolean indicating if the room should be followed.
|
|
19
|
+
*/
|
|
20
|
+
export declare const followRoomAction: Action;
|
|
21
|
+
//# sourceMappingURL=followRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followRoom.d.ts","sourceRoot":"","sources":["../../src/actions/followRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AAElB;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,qmBAWhB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAgZpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Action } from "../types";
|
|
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
|
+
export declare const ignoreAction: Action;
|
|
14
|
+
//# 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,EAAE,MAAM,EAAwC,MAAM,UAAU,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,MA+NhB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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
|
+
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.";
|
|
8
|
+
/**
|
|
9
|
+
* Action for muting a room, ignoring all messages unless explicitly mentioned.
|
|
10
|
+
* Only do this if explicitly asked to, or if you're annoying people.
|
|
11
|
+
*
|
|
12
|
+
* @name MUTE_ROOM
|
|
13
|
+
* @type {Action}
|
|
14
|
+
*
|
|
15
|
+
* @property {string} name - The name of the action
|
|
16
|
+
* @property {string[]} similes - Similar actions related to muting a room
|
|
17
|
+
* @property {string} description - Description of the action
|
|
18
|
+
* @property {Function} validate - Validation function to check if the room is not already muted
|
|
19
|
+
* @property {Function} handler - Handler function to handle muting the room
|
|
20
|
+
* @property {ActionExample[][]} examples - Examples of using the action
|
|
21
|
+
*/
|
|
22
|
+
export declare const muteRoomAction: Action;
|
|
23
|
+
//# sourceMappingURL=muteRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muteRoom.d.ts","sourceRoot":"","sources":["../../src/actions/muteRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AAElB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,qgBAYd,CAAC;AAElB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAE,MA6NlB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Action } from "../types";
|
|
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
|
+
export declare const noneAction: Action;
|
|
10
|
+
//# 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,EAAwC,MAAM,UAAU,CAAC;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,MAyId,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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":"AACA,OAAO,EACN,KAAK,MAAM,EAQX,MAAM,UAAU,CAAC;AA0BlB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EAqGnB,MAAM,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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
|
+
declare const updateRoleAction: Action;
|
|
13
|
+
export default updateRoleAction;
|
|
14
|
+
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/actions/roles.ts"],"names":[],"mappings":"AAIA,OAAO,EACN,KAAK,MAAM,EAWX,MAAM,UAAU,CAAC;AAgFlB;;;;;;;;;GASG;AACH,QAAA,MAAM,gBAAgB,EAAE,MAoOvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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":"AAMA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AA2FlB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAsP/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Action, type IAgentRuntime, type WorldSettings } from "../types";
|
|
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
|
+
declare const updateSettingsAction: Action;
|
|
21
|
+
export default updateSettingsAction;
|
|
22
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/actions/settings.ts"],"names":[],"mappings":"AASA,OAAO,EACN,KAAK,MAAM,EAKX,KAAK,aAAa,EAMlB,KAAK,aAAa,EAClB,MAAM,UAAU,CAAC;AAgNlB;;GAEG;AACH;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAc/B;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,aAAa,GAC1B,OAAO,CAAC,OAAO,CAAC,CA0BlB;AA+XD;;;GAGG;AACH,QAAA,MAAM,oBAAoB,EAAE,MAiT3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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":"AAEA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AAoBlB;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,MA+TtB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Template for determining if an agent should unmute a previously muted room.
|
|
4
|
+
* * @type { string }
|
|
5
|
+
*/
|
|
6
|
+
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.";
|
|
7
|
+
/**
|
|
8
|
+
* Action to unmute a room, allowing the agent to consider responding to messages again.
|
|
9
|
+
*
|
|
10
|
+
* @name UNMUTE_ROOM
|
|
11
|
+
* @similes ["UNMUTE_CHAT", "UNMUTE_CONVERSATION", "UNMUTE_ROOM", "UNMUTE_THREAD"]
|
|
12
|
+
* @description Unmutes a room, allowing the agent to consider responding to messages again.
|
|
13
|
+
*
|
|
14
|
+
* @param {IAgentRuntime} runtime - The agent runtime to access runtime functionalities.
|
|
15
|
+
* @param {Memory} message - The message containing information about the room.
|
|
16
|
+
* @returns {Promise<boolean>} A boolean value indicating if the room was successfully unmuted.
|
|
17
|
+
*/
|
|
18
|
+
export declare const unmuteRoomAction: Action;
|
|
19
|
+
//# sourceMappingURL=unmuteRoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unmuteRoom.d.ts","sourceRoot":"","sources":["../../src/actions/unmuteRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,MAAM,EAOX,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kkBAWhB,CAAC;AAElB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAwMpB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Action } from "../types";
|
|
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":"AAYA,OAAO,EACN,KAAK,MAAM,EAQX,MAAM,UAAU,CAAC;AA+DlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAmMhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Action } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Composes a set of example conversations based on provided actions and a specified count.
|
|
4
|
+
* It randomly selects examples from the provided actions and formats them with generated names.
|
|
5
|
+
* @param actionsData - An array of `Action` objects from which to draw examples.
|
|
6
|
+
* @param count - The number of examples to generate.
|
|
7
|
+
* @returns A string containing formatted examples of conversations.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Compose a specified number of random action examples from the given actionsData.
|
|
11
|
+
*
|
|
12
|
+
* @param {Action[]} actionsData - The list of actions to generate examples from.
|
|
13
|
+
* @param {number} count - The number of examples to compose.
|
|
14
|
+
* @returns {string} The formatted action examples.
|
|
15
|
+
*/
|
|
16
|
+
export declare const composeActionExamples: (actionsData: Action[], count: number) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Formats the names of the provided actions into a comma-separated string.
|
|
19
|
+
* @param actions - An array of `Action` objects from which to extract names.
|
|
20
|
+
* @returns A comma-separated string of action names.
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatActionNames(actions: Action[]): string;
|
|
23
|
+
/**
|
|
24
|
+
* Formats the provided actions into a detailed string listing each action's name and description, separated by commas and newlines.
|
|
25
|
+
* @param actions - An array of `Action` objects to format.
|
|
26
|
+
* @returns A detailed string of actions, including names and descriptions.
|
|
27
|
+
*/
|
|
28
|
+
export declare function formatActions(actions: Action[]): string;
|
|
29
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,SAAS,CAAC;AAErD;;;;;;GAMG;AACH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,aAAa,MAAM,EAAE,EAAE,OAAO,MAAM,WA2CzE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,UAKlD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,UAK9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":"AAyCA,OAAO,EAaN,KAAK,MAAM,EAIX,MAAM,SAAS,CAAC;AAstBjB,eAAO,MAAM,eAAe,EAAE,MAsC7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|