Package com.axelor.ai.chat
package com.axelor.ai.chat
-
ClassDescriptionRecords AI usage metrics.Membership resolution for shared chats.Effective role of a user on a chat.A chat changed outside a request of its own, so connected clients should refresh it.Handle returned by
ChatStreamer.stream(com.axelor.ai.chat.ChatRequest, com.axelor.ai.chat.stream.StreamWriter)— allows cancellation and awaiting completion.Creates non-streamingChatModelinstances for background tasks and resolves which model to use based on agent configuration.What a utility call is for, and whose: logged with every call its model makes.Extension point for the chat loop.Abstraction for calling an LLM and receiving streaming chunks via callbacks.Receives streaming chunks from an LLM response.What entered a chat, and whether a model may receive it.A model call refused for what the chat holds; the client offers a new chat for it.What a check of the chat's data against a request's model depends on: the fields that entered it, which are only ever added, so their count moves with them; the agents' permissions and the restrictions in force; and the model, with its provider.A chat stream call as the loop runs it.The body of a client's chat stream call.Outcome of a single LLM turn, delivered viaChatProvider.Listener.onFinish(com.axelor.ai.chat.ChatResult).Main orchestrator entry point.Owns AI chat persistence: loads history, saves the user row, progressively upserts the assistant row as the agent loop runs, and finalizes on stream end.Result of preparing a stream: aTurnto thread through the frames plus a possibly modified request (with history preloaded, the user message saved, or — for sub-agent resume — an isolated child context).Why the LLM stopped generating.What a conversation did and settled: one written summary, plus the records it may link.What the recap was built from, rendered as the card's footer.A record the conversation wrote to, and how to reach it.Links the records a recap names, and converts the result to HTML for the activity stream.Builds a conversation's recap: one written account of what it did and settled.The range a recap covers.One recorded write, as the ledger reported it.The model a turn is served by: what data sent in the turn goes to.A model call's tokens, meaning the same whichever provider served it.Result of a tool execution — either success with output or an error.The tool should be executed client-side (in the browser).The current agent wants to consult a sub-agent.The tool requires user approval before execution.The tool stopped at a question only the user can answer — a form's alert, a button's prompt — and will carry on from where it stopped once they answer.A message in the conversation history.The sender of a message.A part within aUIMessage.