Class ConversationService

java.lang.Object
com.mulesoft.modules.agent.broker.internal.state.ConversationService

public class ConversationService extends Object
  • Constructor Details

    • ConversationService

      public ConversationService()
  • Method Details

    • getOrCreateConversation

      public Conversation getOrCreateConversation(io.a2a.spec.Message message, String fallbackContextId, AgentsBroker broker)
    • getTaskFor

      public TaskContext getTaskFor(io.a2a.spec.Message message, Conversation conversation, String fallbackTaskId, AgentsBroker broker)
    • upsert

      public void upsert(Conversation conversation, AgentsBroker broker) throws org.mule.runtime.api.store.ObjectStoreException
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • upsert

      public void upsert(TaskContext taskContext, AgentsBroker broker) throws org.mule.runtime.api.store.ObjectStoreException
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • synchronizedConversation

      public <T> T synchronizedConversation(String conversationId, AgentsBroker broker, org.mule.runtime.core.api.util.func.CheckedSupplier<T> supplier)