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

Function update_session

app/api/agentops/exporter/export.py:43–50  ·  view source on GitHub ↗

Update session data for an existing record in ClickHouse.

(data: dict)

Source from the content-addressed store, hash-verified

41
42
43async def update_session(data: dict) -> None:
44 """Update session data for an existing record in ClickHouse."""
45 assert 'id' in data, 'session_id must be provided to update session data.'
46
47 session = Session(**data)
48 trace: Trace = await session.to_trace()
49 span: Span = trace.spans[0]
50 await clickhouse_update_span(span.span_id, span.to_clickhouse_dict())
51
52
53async def create_agent(data: dict) -> None:

Callers

nothing calls this directly

Calls 4

to_traceMethod · 0.95
clickhouse_update_spanFunction · 0.85
to_clickhouse_dictMethod · 0.80
SessionClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…