fix lint
This commit is contained in:
parent
de89fcd526
commit
8f0fabd709
1 changed files with 9 additions and 1 deletions
|
|
@ -1488,7 +1488,15 @@ type skillUsageSummary struct {
|
|||
}
|
||||
|
||||
func buildSkillUsage(input TurnCaseInput) skillUsageSummary {
|
||||
all := make([]string, 0)
|
||||
capacity := len(input.ActiveSkillNames) + len(input.AttemptedSkillNames) + len(input.FinalSuccessfulPath)
|
||||
for _, snapshot := range input.SkillContextSnapshots {
|
||||
capacity += len(snapshot.SkillNames)
|
||||
}
|
||||
for _, exec := range input.ToolExecutions {
|
||||
capacity += len(exec.SkillNames)
|
||||
}
|
||||
|
||||
all := make([]string, 0, capacity)
|
||||
all = append(all, input.ActiveSkillNames...)
|
||||
all = append(all, input.AttemptedSkillNames...)
|
||||
all = append(all, input.FinalSuccessfulPath...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue