Class ToolTestComponent

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

public final class ToolTestComponent extends Object implements UiComponent
Body of the "Test tool" modal dialog. Mirrors LlmConfigTestComponent in shape:
  1. read-only Input Schema (so the admin knows what to type),
  2. textarea for the JSON arguments payload,
  3. Send / Close actions,
  4. result block underneath once a test has run (green for OK, red for failure — same CSS classes as the LLM-config dialog).
  • Constructor Details

    • ToolTestComponent

      public ToolTestComponent(ai.mindconnect.agent.domain.AgentDefinition agent, ai.mindconnect.agent.tool.AgentTool tool, ai.mindconnect.agent.tool.ToolRegistry toolRegistry, String previousJson, ToolTestService.Result result)
  • 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
    • title

      public String title()
    • render

      public ai.mindconnect.ui.model.UiNode 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