MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / write_last_session_id

Function write_last_session_id

app/api/agentops/exporter/processor.py:79–86  ·  view source on GitHub ↗

Write the last session_id by truncating and writing to the already open file.

(session_id: Any)

Source from the content-addressed store, hash-verified

77
78
79def write_last_session_id(session_id: Any) -> None:
80 """Write the last session_id by truncating and writing to the already open file."""
81 print(session_id)
82 if _last_session_file:
83 _last_session_file.seek(0)
84 _last_session_file.truncate()
85 _last_session_file.write(str(session_id))
86 _last_session_file.flush()
87
88
89# Supabase connection pool instance

Callers 1

get_session_as_traceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…