MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / wrap_event

Function wrap_event

src/langfuse/tracer.cpp:349–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349JsonValue wrap_event(const char* type,
350 const std::string& timestamp,
351 JsonValue body) {
352 JsonValue event;
353 event["id"] = Trace::new_uuid();
354 event["timestamp"] = timestamp;
355 event["type"] = type;
356 event["body"] = std::move(body);
357 return event;
358}
359
360} // namespace
361

Callers 4

finish_generationMethod · 0.85
build_trace_eventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected