Class RoundtripCardComponent

java.lang.Object
ai.mindconnect.adminui.ui.component.RoundtripCardComponent
All Implemented Interfaces:
UiComponent

public final class RoundtripCardComponent extends Object implements UiComponent
One LLM-call roundtrip rendered as a three-tab card:
  • Response — prose first, then per-tool-call args (json-viewer) followed by the matching persisted tool-result block (collapsible). Errors short-circuit to a code-fenced error body.
  • Request — the verbatim provider request via the json-viewer.
  • Raw SSE — the captured event stream as a markdown code block.

Depth (sub-agent nesting) is rendered as a trace-depth-N CSS class on the card so visual indentation matches the nesting level.

  • Constructor Details

    • RoundtripCardComponent

      public RoundtripCardComponent(int globalIdx, ai.mindconnect.agent.domain.LlmCallTrace trace, Map<String,ai.mindconnect.message.domain.Message> resultsByCallId)
  • Method Details

    • id

      public String id()
      Description copied from interface: UiComponent
      The DOM id this component renders with. Patch operations targeting this component (REPLACE / CLEAR / REMOVE) use this id, so it must match the id on the root UiNode returned by UiComponent.render().
      Specified by:
      id in interface UiComponent
    • render

      public ai.mindconnect.ui.model.UiSection render()
      Description copied from interface: UiComponent
      Full render — emit the component as a UiNode. Used both inside a page's full render and as the payload of a REPLACE patch.
      Specified by:
      render in interface UiComponent