MCPcopy Create free account
hub / github.com/AI45Lab/Code / history

Method history

core/src/agent_api/session_view.rs:23–25  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

21 }
22
23 pub(super) fn history(&self) -> Vec<Message> {
24 read_or_recover(&self.session.history).clone()
25 }
26
27 pub(super) fn memory(&self) -> Option<&'a Arc<crate::memory::AgentMemory>> {
28 self.session.memory.as_ref()

Calls 2

read_or_recoverFunction · 0.85
cloneMethod · 0.45