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

Function update_llm_event

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

Update LLM event data for an existing record in ClickHouse.

(data: dict)

Source from the content-addressed store, hash-verified

82
83
84async def update_llm_event(data: dict) -> None:
85 """Update LLM event data for an existing record in ClickHouse."""
86 assert 'id' in data, 'id must be provided to update LLM event data.'
87
88 llm_event = LLMEvent(**data)
89 span: Span = await llm_event.to_span()
90 await clickhouse_update_span(span.span_id, span.to_clickhouse_dict())
91 logger.info(f"Updated ClickHouse LLM event as span {span}")
92
93
94# data['session_id'] = '06246901-8691-4ae3-848e-69aec2d0722b'

Callers

nothing calls this directly

Calls 4

to_spanMethod · 0.95
clickhouse_update_spanFunction · 0.85
to_clickhouse_dictMethod · 0.80
LLMEventClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…