mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
19 lines
507 B
Go
19 lines
507 B
Go
package boot
|
|
|
|
import (
|
|
"reasonix/internal/contract/config"
|
|
"reasonix/internal/runtime/agent"
|
|
)
|
|
|
|
// compactionBudgets carries the user's fold bounds to every agent the boot
|
|
// assembles, parent and sub-agent alike, so a setting does not silently stop
|
|
// applying one delegation down.
|
|
func compactionBudgets(cfg *config.Config) agent.CompactionBudgets {
|
|
if cfg == nil {
|
|
return agent.CompactionBudgets{}
|
|
}
|
|
return agent.CompactionBudgets{
|
|
CheckpointCeilingRatio: cfg.Agent.CheckpointCeilingRatio,
|
|
}
|
|
}
|