MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / SetMessages

Method SetMessages

internal/agent/agent.go:54–54  ·  view source on GitHub ↗

SetMessages replaces the conversation slice. Used by /compact to write back the result of an ad-hoc strategy.

(m []api.Message)

Source from the content-addressed store, hash-verified

52// SetMessages replaces the conversation slice. Used by /compact to write
53// back the result of an ad-hoc strategy.
54func (a *Agent) SetMessages(m []api.Message) { a.messages = m }
55
56// ClearMessages wipes the conversation history.
57func (a *Agent) ClearMessages() { a.messages = a.messages[:0] }

Callers 1

cmdCompactFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected