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
- Specified by:
idin interfaceUiComponent
-
render
public ai.mindconnect.ui.model.UiForm render()- Specified by:
renderin interfaceUiComponent
-