Controller is the main controller that coordinates all components. It acts as a single-writer system for managing agentic loops.
| 43 | // Controller is the main controller that coordinates all components. |
| 44 | // It acts as a single-writer system for managing agentic loops. |
| 45 | type Controller struct { |
| 46 | registry *Registry |
| 47 | eventLog executor.EventLog |
| 48 | plannerBuilder PlannerBuilder |
| 49 | } |
| 50 | |
| 51 | // PlannerBuilder is a function that creates a PlanFunc given a Registry. |
| 52 | type PlannerBuilder func(ctx context.Context, r *Registry) (agent.Agent, error) |
nothing calls this directly
no outgoing calls
no test coverage detected