@@ -98,14 +98,15 @@ protected void doExecute(Task task, CreateInteractionRequest request, ActionList
98
98
ActionListener <CreateInteractionResponse > internalListener = ActionListener .runBefore (actionListener , () -> context .restore ());
99
99
ActionListener <String > al = ActionListener .wrap (iid -> {
100
100
cmHandler .updateConversation (cid , new HashMap <>(), getUpdateResponseListener (cid , iid , internalListener ));
101
+ log .info ("Updating the memory {} after the message {} is created" , cid , iid );
101
102
}, e -> { internalListener .onFailure (e ); });
102
103
if (parintIid == null || traceNumber == null ) {
103
104
cmHandler .createInteraction (cid , inp , prompt , rsp , ogn , additionalInfo , al );
104
105
} else {
105
106
cmHandler .createInteraction (cid , inp , prompt , rsp , ogn , additionalInfo , al , parintIid , traceNumber );
106
107
}
107
108
} catch (Exception e ) {
108
- log .error ("Failed to create interaction for conversation " + cid , e );
109
+ log .error ("Failed to create message for memory " + cid , e );
109
110
actionListener .onFailure (e );
110
111
}
111
112
}
@@ -117,21 +118,16 @@ private ActionListener<UpdateResponse> getUpdateResponseListener(
117
118
) {
118
119
return ActionListener .wrap (updateResponse -> {
119
120
if (updateResponse != null && updateResponse .getResult () == DocWriteResponse .Result .UPDATED ) {
120
- log
121
- .debug (
122
- "Successfully updated the Conversation with ID: {} after interaction {} is created" ,
123
- conversationId ,
124
- interactionId
125
- );
121
+ log .debug ("Successfully updated the memory with ID: {} after message {} is created" , conversationId , interactionId );
126
122
actionListener .onResponse (new CreateInteractionResponse (interactionId ));
127
123
} else {
128
- log .error ("Failed to update the Conversation with ID: {} after interaction {} is created" , conversationId , interactionId );
124
+ log .error ("Failed to update the memory with ID: {} after message {} is created" , conversationId , interactionId );
129
125
actionListener .onResponse (new CreateInteractionResponse (interactionId ));
130
126
}
131
127
}, exception -> {
132
128
log
133
129
.error (
134
- "Failed to update Conversation with ID {} after interaction {} is created. Details: {}" ,
130
+ "Failed to update memory with ID {} after message {} is created. Details: {}" ,
135
131
conversationId ,
136
132
interactionId ,
137
133
exception
0 commit comments