client := newClient(address, auth, "onechat-"+probeName, usagePath)
client.LimitCalls(probeCallLimit)
summarizer := slotSummarizer{
- inner: newCompactor(client, probeName, config.Compactor),
+ inner: newCompactor(client, probePrompt, config.Compactor),
slots: make(chan struct{}, builds),
}
return s.inner.Summarize(ctx, task)
}
+// probePrompt returns the system prompt of a probe run: the prompt of the agent
+// probeName, without instructions.
+func probePrompt() (string, error) {
+ return prompt(probeName, ""), nil
+}
+
// probeEntry is one message of a probe log.
type probeEntry struct {
Kind string `json:"kind"`