Class SessionUiCommons
java.lang.Object
ai.mindconnect.adminui.assembler.session.SessionUiCommons
Shared static helpers used by every session-related UI assembler
(chat, working memory, traces) and by the cross-package
UI components in
ai.mindconnect.adminui.ui.component.
Kept tiny on purpose — anything that grows here either belongs in
a dedicated assembler or in a domain helper.
Made public (with public members) so the components package can share the same Jackson instance and time formatter without each component carrying its own copy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeFormatterTime formatter used in conversation, memory and trace headers.static final com.fasterxml.jackson.databind.ObjectMapperSingle Jackson instance shared across the assemblers. -
Method Summary
-
Field Details
-
MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPERSingle Jackson instance shared across the assemblers. None of them mutate it, and Jackson'sObjectMapperis documented as thread-safe for read/write of normal records. -
DT_FMT
Time formatter used in conversation, memory and trace headers.
-
-
Method Details
-
previewOf
Squashes whitespace and truncatessto 120 chars (with an ellipsis) so it fits one line in a list-item description. -
codeBlock
Wraps a body in a markdown code-fence with optional language hint.
-