AgentLoopController constructor
AgentLoopController({
- required LLMCore llm,
- required AgentMemoryStore memory,
- required PlanningEngine planner,
- required ToolRegistry registry,
- EnvironmentAdapter? environment,
- AgentLoopConfig? config,
- SelfReflectionStub? reflection,
- 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();
}