MCPcopy Create free account
hub / github.com/evilsocket/cake / add_message

Method add_message

cake-core/src/models/olmo2/model.rs:38–41  ·  view source on GitHub ↗
(&mut self, message: Message)

Source from the content-addressed store, hash-verified

36#[async_trait]
37impl TextGenerator for OLMo2 {
38 fn add_message(&mut self, message: Message) -> Result<()> {
39 self.history.push(message);
40 Ok(())
41 }
42
43 fn reset(&mut self) -> Result<()> {
44 self.history.clear();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected