AgentLoopController constructor

AgentLoopController({
  1. required LLMCore llm,
  2. required AgentMemoryStore memory,
  3. required PlanningEngine planner,
  4. required ToolRegistry registry,
  5. EnvironmentAdapter? environment,
  6. AgentLoopConfig? config,
  7. SelfReflectionStub? reflection,
  8. ConsciousnessLogger? logger,
})

Implementation

AgentLoopController({
  required LLMCore llm,
  required AgentMemoryStore memory,
  required PlanningEngine planner,
  required ToolRegistry registry,
  EnvironmentAdapter? environment,
  AgentLoopConfig? config,
  SelfReflectionStub? reflection,
  ConsciousnessLogger? logger,
})  : _llm = llm,
      _memory = memory,
      _planner = planner,
      _router = ToolRouter(registry,
          logger: logger ?? ConsciousnessLogger('ToolRouter')),
      _env = environment ?? const NullEnvironmentAdapter(),
      _config = config ?? const AgentLoopConfig(),
      _reflection = reflection,
      _logger = logger ?? ConsciousnessLogger('AgentLoop'),
      _uuid = const Uuid() {
  _eventController = StreamController<AgentLoopEvent>.broadcast();
}