Package com.axelor.ai.chat.provider
Class NoOpChatProvider
java.lang.Object
com.axelor.ai.chat.provider.NoOpChatProvider
- All Implemented Interfaces:
ChatProvider
Default no-op provider used as a base binding. In practice, a
ChatPlugin decorates this
with a real LLM-backed provider resolved from the request's agent/model config.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.ai.chat.ChatProvider
ChatProvider.Listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstream(List<UIMessage> messages, ChatProvider.Listener listener) Sends the conversation history to the LLM and streams the response back via the listener.
-
Constructor Details
-
NoOpChatProvider
public NoOpChatProvider()
-
-
Method Details
-
stream
Description copied from interface:ChatProviderSends the conversation history to the LLM and streams the response back via the listener.Implementations must call
ChatProvider.Listener.onFinish(com.axelor.ai.chat.ChatResult)exactly once, after all content callbacks. This method blocks until the LLM response is fully consumed.- Specified by:
streamin interfaceChatProvider- Parameters:
messages- the conversation history to sendlistener- receives streaming deltas and the finish signal
-