Class AgentFormComponent
java.lang.Object
ai.mindconnect.adminui.ui.component.AgentFormComponent
- All Implemented Interfaces:
UiComponent
Edit form for an agent definition. Used both for "new" (null agent)
and "edit" (existing agent) modes — defaults switch on the null
check, the submit target becomes POST vs PUT.
The form pulls LLM configs and reviewer-candidate agents from repositories at render time so the dropdown options stay current without the component caching anything.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentFormComponent(ai.mindconnect.agent.domain.AgentDefinition agent, ai.mindconnect.llm.port.out.LlmConfigRepository llmConfigRepository, ai.mindconnect.agent.port.out.AgentDefinitionRepository agentRepository, ai.mindconnect.common.Namespace defaultNamespace, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
AgentFormComponent
public AgentFormComponent(ai.mindconnect.agent.domain.AgentDefinition agent, ai.mindconnect.llm.port.out.LlmConfigRepository llmConfigRepository, ai.mindconnect.agent.port.out.AgentDefinitionRepository agentRepository, ai.mindconnect.common.Namespace defaultNamespace, com.fasterxml.jackson.databind.ObjectMapper objectMapper) - Parameters:
agent-nullfor the new-agent form, an existingAgentDefinitionfor the edit 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.UiForm 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
-