Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
package shared
func (state *CurrentPlanState) ExecHistory() string {
execHistory := ""
if state.PlanResult == nil {
return execHistory
}
for _, result := range state.PlanResult.Results {
if result.Path == "_apply.sh" && result.AppliedAt != nil {
execHistory += "Previously executed _apply.sh:\n\n```\n" + result.Content + "\n```\n\n"
}
}
return execHistory
}