chore: Update version to 1.6.6 and refactor agentType method for context handling

This commit is contained in:
extio-de
2025-07-10 00:20:16 +02:00
parent df3034e6ca
commit d9fae7eebd
5 changed files with 55 additions and 26 deletions

View File

@@ -27,6 +27,14 @@ public record Agent(String name,
throw new IllegalArgumentException("Agent type cannot be null");
}
}
@Override
public AgentType agentType(final AgentContext context) {
if (agentType != null) {
return agentType;
}
return BaseAgent.super.agentType(context);
}
@Override
public void preProcess(final AgentContext context) {