MCPcopy Create free account
hub / github.com/HKUDS/OpenOPC / get_session_transcript

Method get_session_transcript

opc/database/store.py:6291–6303  ·  view source on GitHub ↗
(self, session_id: str)

Source from the content-addressed store, hash-verified

6289 "SELECT metadata FROM delegation_runs WHERE run_id = ? AND project_id = ?",
6290 (context.run_id, context.project_id),
6291 ) as cursor:
6292 run_row = await cursor.fetchone()
6293 if run_row is None:
6294 return False
6295 durable_origins.append(
6296 _json_loads(run_row[0], {}).get("origin_owner_interaction")
6297 )
6298 async with db.execute(
6299 """SELECT metadata FROM delegation_work_items
6300 WHERE work_item_id = ? AND run_id = ?""",
6301 (context.work_item_id, context.run_id),
6302 ) as cursor:
6303 work_item_row = await cursor.fetchone()
6304 if work_item_row is None:
6305 return False
6306 durable_origins.append(

Callers 15

_get_agent_transcriptMethod · 0.45
_show_session_detailFunction · 0.45
_show_task_detailFunction · 0.45
_handle_logs_slashFunction · 0.45
load_task_detailMethod · 0.45
reconcile_sessionsFunction · 0.45

Calls 3

list_session_messagesMethod · 0.95
list_session_partsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected