Package ai.tabforge.workshop.agents
Class ArchitectureCheckerAgent
java.lang.Object
ai.tabforge.workshop.agent.SubAgent
ai.tabforge.workshop.agents.DefaultSubAgent
ai.tabforge.workshop.agents.ArchitectureCheckerAgent
-
Constructor Summary
ConstructorsConstructorDescriptionArchitectureCheckerAgent(ProgressReporter orchestrator, com.anthropic.client.AnthropicClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildPrompt(AgentContext context) A string that defines the role and behavior of the agent.protected StringMethods inherited from class ai.tabforge.workshop.agents.DefaultSubAgent
analyzeFile
-
Constructor Details
-
ArchitectureCheckerAgent
public ArchitectureCheckerAgent(ProgressReporter orchestrator, com.anthropic.client.AnthropicClient client)
-
-
Method Details
-
buildPrompt
Description copied from class:SubAgentA string that defines the role and behavior of the agent. For example for SecurityAuditorAgent:
That string goes to the Claude API call as a system parameter."You are a security auditor specialized in Jakarta EE applications. Analyze the provided Java code for security vulnerabilities. Focus on: SQL injection, hardcoded secrets, missing authorization... Respond ONLY in this JSON format: [{ "ruleId": "SEC-001", "severity": "CRITICAL", ... }]"- Specified by:
buildPromptin classSubAgent- Parameters:
context- - Some agents may use this parameter, SecurityAuditorAgent ignores it.- Returns:
-
getAgentName
- Specified by:
getAgentNamein classSubAgent
-