Files
CyberStrikeAI/internal/agent/generated_context.go
T
Sycun 983c981b92 fix: preserve human intent through planning and restart while keeping legacy edits
Mark generated execution prompts, populate deterministic user sections from actual human entries, preserve canonical ledger on overflow/transient restarts, fit long human entries under their formatted budget, and keep unchanged historical keys editable. Add real reduction-to-snapshot Cookie recovery and production entry-point regression tests.
2026-10-12 19:34:24 +08:00

12 lines
467 B
Go

package agent
// GeneratedContextTypeKey marks host-created execution templates, separately
// from Eino's own summary/skill transport metadata.
const GeneratedContextTypeKey = "_csai_generated_context_type"
const PlanExecuteExecutorContext = "plan_execute_executor"
const PlanExecuteReplannerContext = "plan_execute_replanner"
func IsGeneratedExecutionContext(kind string) bool {
return kind == PlanExecuteExecutorContext || kind == PlanExecuteReplannerContext
}