posthog-node
Advanced tools
Comparing version 4.6.0 to 4.7.0
# Next | ||
# 4.7.0 - 2025-02-20 | ||
## Added | ||
1. Adds the ability to capture user feedback in LLM Observability using the `captureTraceFeedback` and `captureTraceMetric` methods. | ||
# 4.6.0 - 2025-02-12 | ||
@@ -4,0 +10,0 @@ |
@@ -192,4 +192,17 @@ import { PostHogFetchOptions, PostHogFetchResponse, PostHogAutocaptureElement, PostHogDecideResponse, PostHogCoreOptions, PostHogEventProperties, PostHogPersistedProperty, PostHogCaptureOptions, JsonType } from './types'; | ||
}): void; | ||
/** | ||
* Capture written user feedback for a LLM trace. Numeric values are converted to strings. | ||
* @param traceId The trace ID to capture feedback for. | ||
* @param userFeedback The feedback to capture. | ||
*/ | ||
captureTraceFeedback(traceId: string | number, userFeedback: string): void; | ||
/** | ||
* Capture a metric for a LLM trace. Numeric values are converted to strings. | ||
* @param traceId The trace ID to capture the metric for. | ||
* @param metricName The name of the metric to capture. | ||
* @param metricValue The value of the metric to capture. | ||
*/ | ||
captureTraceMetric(traceId: string | number, metricName: string, metricValue: string | number | boolean): void; | ||
} | ||
export * from './types'; | ||
export { LZString }; |
{ | ||
"name": "posthog-node", | ||
"version": "4.6.0", | ||
"version": "4.7.0", | ||
"description": "PostHog Node.js integration", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1185937
16563
6