Class ToolFormComponent
java.lang.Object
ai.mindconnect.adminui.ui.component.ToolFormComponent
- All Implemented Interfaces:
UiComponent
Edit form for an agent's tool. Selectable
builtinName
dropdown is populated from the ToolRegistry so both built-in
tools (ServiceLoader-discovered) and MCP-backed tools (registered by
other modules) appear. A (custom name) option lets the user
type an arbitrary name in the name field below — useful for tools
that aren't yet on the classpath.
For an existing tool the resolved input schema is rendered as a readable parameters table below the form (pinned params are already stripped there, so it shows exactly what the LLM will be offered); for new tools it stays hidden because there's nothing to show yet.
-
Constructor Summary
ConstructorsConstructorDescriptionToolFormComponent(ai.mindconnect.agent.domain.AgentDefinition agent, ai.mindconnect.agent.tool.AgentTool tool, ai.mindconnect.agent.tool.ToolRegistry toolRegistry) Passnullfor the new-tool form. -
Method Summary
-
Constructor Details
-
ToolFormComponent
public ToolFormComponent(ai.mindconnect.agent.domain.AgentDefinition agent, ai.mindconnect.agent.tool.AgentTool tool, ai.mindconnect.agent.tool.ToolRegistry toolRegistry) Passnullfor the new-tool form.
-
-
Method Details
-
id
Description copied from interface:UiComponentThe 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 rootUiNodereturned byUiComponent.render().- Specified by:
idin interfaceUiComponent
-
render
public ai.mindconnect.ui.model.UiNode render()Description copied from interface:UiComponentFull render — emit the component as aUiNode. Used both inside a page's full render and as the payload of a REPLACE patch.- Specified by:
renderin interfaceUiComponent
-