X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/30fbeb13a74942c6d515cc2a51eab7407a78c325..46646c83374b8ad22b98a97d5c7d795c5944e3d7:/compactor.go?ds=inline diff --git a/compactor.go b/compactor.go index 6840fd4..16303b0 100644 --- a/compactor.go +++ b/compactor.go @@ -68,6 +68,7 @@ func (c *Compactor) Summarize(ctx context.Context, task Task) (string, error) { Instructions: c.instructions, Tools: c.tools, Input: []any{userMessage(parts...)}, + Node: &nodeKey{task.Level, task.Index}, }) if err != nil { break @@ -129,7 +130,7 @@ func tooLong(line string) string { return fmt.Sprintf(`Too long: your last line for this was %d bytes, over the %d-byte limit. Write the whole line again, cutting just enough of the least valuable items to fit before this cut: -%s| ← LIMIT`, len(line), nodeBytes, cutLine(line)) +%s| <- LIMIT`, len(line), nodeBytes, cutLine(line)) } // cutLine returns the first nodeBytes bytes of line, without a part of a