refactor: Update modelCategory method to accept AgentContext and adjust related calls
This commit is contained in:
@@ -36,6 +36,14 @@ public record Agent(String name,
|
||||
return BaseAgent.super.agentType(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModelCategory modelCategory(final AgentContext context) {
|
||||
if (modelCategory != null) {
|
||||
return modelCategory;
|
||||
}
|
||||
return BaseAgent.super.modelCategory(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preProcess(final AgentContext context) {
|
||||
if (preProcessor != null) {
|
||||
|
||||
Reference in New Issue
Block a user