(cls, session_id: str)
| 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, |
nothing calls this directly
no test coverage detected