返回 DeepSeek-Reasonix
context_status.go
根目录 / internal / control / context_status.go
1 package control
2
3 import "reasonix/internal/agent"
4
5 // ContextMaintenanceSnapshot exposes current composition and the last durable
6 // maintenance receipt without conflating them with cumulative usage cost.
7 func (c *Controller) ContextMaintenanceSnapshot() agent.ContextMaintenanceSnapshot {
8 if c.executor == nil {
9 return agent.ContextMaintenanceSnapshot{}
10 }
11 return c.executor.ContextMaintenanceSnapshot()
12 }
13
13 lines GO