Class LlmConfigTestComponent
java.lang.Object
ai.mindconnect.adminui.ui.component.LlmConfigTestComponent
- All Implemented Interfaces:
UiComponent
Body of the "Test LLM config" modal dialog.
Renders in one of three shapes:
- Empty / initial — a textarea + Send button + Close button.
- After a successful test — the response text, token counts, finish reason, duration. The form stays mounted so the admin can re-send a tweaked message.
- After a failed test — the error message highlighted in red. The form stays mounted; "Send" tries again.
The form posts back to POST /admin/api/llm-configs/{id}/test;
the controller re-renders the same dialog with the supplied
LlmConfigTestService.Result. The dialog overlay survives across
the round-trip because the controller re-opens it via
page.dialog(...) with the same close-href.
-
Constructor Summary
ConstructorsConstructorDescriptionLlmConfigTestComponent(ai.mindconnect.llm.domain.LlmConfig config, String previousMessage, LlmConfigTestService.Result result) -
Method Summary
-
Constructor Details
-
LlmConfigTestComponent
public LlmConfigTestComponent(ai.mindconnect.llm.domain.LlmConfig config, String previousMessage, LlmConfigTestService.Result result)
-
-
Method Details
-
id
- Specified by:
idin interfaceUiComponent
-
title
-
render
public ai.mindconnect.ui.model.UiNode render()- Specified by:
renderin interfaceUiComponent
-