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

Method add_message

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

Source from the content-addressed store, hash-verified

48#[async_trait]
49impl TextGenerator for Phi4 {
50 fn add_message(&mut self, message: Message) -> Result<()> {
51 self.history.push(message);
52 Ok(())
53 }
54
55 fn reset(&mut self) -> Result<()> {
56 self.history.clear();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected