Skip to content

Commit

Permalink
Use default conversation id for now
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-eilertsen committed Dec 22, 2024
1 parent b658b80 commit afddd9f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.assetvisor.marvin.brain.springai.adapters;

import static com.assetvisor.marvin.robot.domain.communication.ConversationMessage.DEFAULT_CONVERSATION_ID;

import com.assetvisor.marvin.robot.domain.brain.AsleepException;
import com.assetvisor.marvin.robot.domain.brain.Brain;
import com.assetvisor.marvin.robot.domain.brain.ForInvokingIntelligence;
Expand Down Expand Up @@ -106,12 +108,12 @@ private Document map(EnvironmentDescription environmentDescription) {

@Override
public void invoke(ConversationMessage message, Brain brain) {
doInvoke(message, brain, message.conversationId());
doInvoke(message, brain, DEFAULT_CONVERSATION_ID);
}

@Override
public void invoke(Observation observation, Brain brain) {
doInvoke(observation, brain, ConversationMessage.DEFAULT_CONVERSATION_ID);
doInvoke(observation, brain, DEFAULT_CONVERSATION_ID);
}

private void doInvoke(Message message, Brain brain, String conversationId) {
Expand Down

0 comments on commit afddd9f

Please sign in to comment.