github latitude-dev/latitude-llm typescript-sdk-6.7.0
TypeScript SDK v6.7.0

3 hours ago

Added

  • client.analytics.query — run a composable analytics query: a metric over a filtered stream, optionally broken down by a dimension and/or bucketed over time, returning a tidy series ({ key?, bucketStart?, value }[]) for charts and dashboards. The request is discriminated on stream: traces accepts a semantic query and a breakdown (model, provider, service, tool, tag, name, userId, status); sessions accepts a semantic query and the same breakdowns minus name; spans accepts a breakdown (the scalar dims plus the span-only operation). Metrics are count, errorRate, cacheHitRate, or {sum|min|max|avg|median} over duration/cost/tokens. Adds the AnalyticsQuery request and AnalyticsSeries response types. Result values are in display units — seconds for duration, dollars for cost, a 0–1 ratio for errorRate/cacheHitRate, otherwise a raw count/token total.

Don't miss a new latitude-llm release

NewReleases is sending notifications on new releases.