refactor: Remove validation for 'enabled' field in agent configuration
- Eliminated the check for the 'enabled' field in the ValidateConfig method of agentService. - Updated comments in session service to reflect the removal of the 'enabled' field from AgentConfig. - Streamlined agent configuration handling for improved clarity and maintainability.
This commit is contained in:
@@ -880,9 +880,8 @@ func (s *sessionService) AgentQA(ctx context.Context, session *types.Session, qu
|
||||
|
||||
// Create runtime AgentConfig by merging session and tenant configs
|
||||
// Tenant config provides the runtime parameters (MaxIterations, Temperature, Tools, Models)
|
||||
// Session config provides Enabled and KnowledgeBases
|
||||
// Session config provides KnowledgeBases
|
||||
agentConfig := &types.AgentConfig{
|
||||
Enabled: session.AgentConfig.AgentModeEnabled,
|
||||
MaxIterations: tenantInfo.AgentConfig.MaxIterations,
|
||||
ReflectionEnabled: tenantInfo.AgentConfig.ReflectionEnabled,
|
||||
AllowedTools: tenantInfo.AgentConfig.AllowedTools,
|
||||
|
||||
Reference in New Issue
Block a user