You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently when agents use the CONTINUE action, they can generate multiple separate messages with identical context instead of properly continuing the conversation thread. This leads to "spammy" behavior and redundant responses.
Current Behavior:
Agent generates new separate messages for continuations
Context gets repeated across continuation messages
No proper message threading/revision system
Basic inReplyTo linking that doesn't prevent duplicates
Update MemoryManager to handle message revisions/updates
Modify CONTINUE action to update existing messages rather than create new ones
Add thread management while preserving room-based organization
Implementation Steps:
Add message threading support to AgentRuntime
Enhance MemoryManager with revision tracking
Update CONTINUE action handler to use thread metadata
Add validation to prevent duplicate continuations
Implement message update logic instead of creating new messages
Or create separate callbacks for the initial response and actions:
constresponseMessages=awaitcallback(responseContent);// Create a new callback for actions that doesn't create memoriesconstactionCallback: HandlerCallback=async(content: Content,files: any[])=>{try{if(!content?.text.trim()){elizaLogger.warn("Skipping empty content");return[];}returnawaitsendMessageInChunks(message.channelasTextChannel,content.text,message.id,files);}catch(error){console.error("Error in action callback:",error);return[];}};awaitthis.runtime.processActions(memory,responseMessages,state,actionCallback);
The second approach might be better as it makes the distinction between response handling and action handling clearer.
Is your feature request related to a problem? Please describe.
Currently when agents use the CONTINUE action, they can generate multiple separate messages with identical context instead of properly continuing the conversation thread. This leads to "spammy" behavior and redundant responses.
Current Behavior:
Agent generates new separate messages for continuations
Context gets repeated across continuation messages
No proper message threading/revision system
Basic inReplyTo linking that doesn't prevent duplicates
Proposed Solution:
Enhance Content type to support threading:
Update MemoryManager to handle message revisions/updates
Modify CONTINUE action to update existing messages rather than create new ones
Add thread management while preserving room-based organization
Implementation Steps:
Add message threading support to AgentRuntime
Enhance MemoryManager with revision tracking
Update CONTINUE action handler to use thread metadata
Add validation to prevent duplicate continuations
Implement message update logic instead of creating new messages
Files to Modify:
/packages/core/src/runtime.ts
/packages/plugin-bootstrap/src/actions/continue.ts
/packages/core/src/types.ts
Related Components:
MessageManager
MemoryManager
AgentRuntime
ContinueAction
I'll grab this tomorrow if i get a chance
The text was updated successfully, but these errors were encountered: