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

Method record_result

core/src/agent_api/session_persistence.rs:57–63  ·  view source on GitHub ↗
(&self, result: &AgentResult)

Source from the content-addressed store, hash-verified

55 }
56
57 pub(super) fn record_result(&self, result: &AgentResult) {
58 *write_or_recover(&self.history) = result.messages.clone();
59 if !result.verification_reports.is_empty() {
60 write_or_recover(&self.verification_reports)
61 .extend(result.verification_reports.clone());
62 }
63 }
64
65 pub(super) async fn save(&self) -> Result<()> {
66 let store = match &self.session_store {

Callers 1

completeMethod · 0.80

Calls 3

write_or_recoverFunction · 0.85
cloneMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected