MCPcopy Create free account
hub / github.com/Louisym/MiniCC / from_saved_session

Method from_saved_session

src/query_engine.py:50–59  ·  view source on GitHub ↗
(cls, session_id: str)

Source from the content-addressed store, hash-verified

48
49 @classmethod
50 def from_saved_session(cls, session_id: str) -> 'QueryEnginePort':
51 stored = load_session(session_id)
52 transcript = TranscriptStore(entries=list(stored.messages), flushed=True)
53 return cls(
54 manifest=build_port_manifest(),
55 session_id=stored.session_id,
56 mutable_messages=list(stored.messages),
57 total_usage=UsageSummary(stored.input_tokens, stored.output_tokens),
58 transcript_store=transcript,
59 )
60
61 def submit_message(
62 self,

Callers

nothing calls this directly

Calls 4

load_sessionFunction · 0.85
TranscriptStoreClass · 0.85
build_port_manifestFunction · 0.85
UsageSummaryClass · 0.85

Tested by

no test coverage detected