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

Function sample_checkpoint

core/src/store/tests.rs:737–749  ·  view source on GitHub ↗
(run_id: &str)

Source from the content-addressed store, hash-verified

735}
736
737fn sample_checkpoint(run_id: &str) -> crate::loop_checkpoint::LoopCheckpoint {
738 crate::loop_checkpoint::LoopCheckpoint {
739 schema_version: crate::loop_checkpoint::LOOP_CHECKPOINT_SCHEMA_VERSION,
740 run_id: run_id.to_string(),
741 session_id: "s-1".to_string(),
742 turn: 2,
743 messages: vec![Message::user("hi")],
744 total_usage: TokenUsage::default(),
745 tool_calls_count: 1,
746 verification_reports: Vec::new(),
747 checkpoint_ms: 1_700_000_000_000,
748 }
749}
750
751#[tokio::test]
752async fn test_memory_store_delete_loop_checkpoint() {

Calls

no outgoing calls

Tested by

no test coverage detected