langwatch 0.2.0 → 0.3.0-prerelease.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +268 -1
  3. package/dist/chunk-4BZATFKJ.mjs +181 -0
  4. package/dist/chunk-4BZATFKJ.mjs.map +1 -0
  5. package/dist/chunk-CSC3CMIT.mjs +118 -0
  6. package/dist/chunk-CSC3CMIT.mjs.map +1 -0
  7. package/dist/chunk-F63YKTXA.mjs +47 -0
  8. package/dist/chunk-F63YKTXA.mjs.map +1 -0
  9. package/dist/chunk-G3AUABT7.js +4 -0
  10. package/dist/chunk-G3AUABT7.js.map +1 -0
  11. package/dist/chunk-HPC6Z7J4.js +118 -0
  12. package/dist/chunk-HPC6Z7J4.js.map +1 -0
  13. package/dist/chunk-KGDAENGD.js +50 -0
  14. package/dist/chunk-KGDAENGD.js.map +1 -0
  15. package/dist/chunk-LD74LVRU.js +47 -0
  16. package/dist/chunk-LD74LVRU.js.map +1 -0
  17. package/dist/chunk-OM7VY3XT.mjs +4 -0
  18. package/dist/chunk-PCQVQ7SB.js +45 -0
  19. package/dist/chunk-PCQVQ7SB.js.map +1 -0
  20. package/dist/chunk-PMBEK6YE.mjs +424 -0
  21. package/dist/chunk-PMBEK6YE.mjs.map +1 -0
  22. package/dist/chunk-PR3JDWC3.mjs +50 -0
  23. package/dist/chunk-PR3JDWC3.mjs.map +1 -0
  24. package/dist/chunk-PTJ6AAI7.js +360 -0
  25. package/dist/chunk-PTJ6AAI7.js.map +1 -0
  26. package/dist/chunk-QEWDG5QE.mjs +45 -0
  27. package/dist/chunk-QEWDG5QE.mjs.map +1 -0
  28. package/dist/chunk-REUCVT7A.mjs +39 -0
  29. package/dist/chunk-REUCVT7A.mjs.map +1 -0
  30. package/dist/chunk-SVJ7SCGB.js +424 -0
  31. package/dist/chunk-SVJ7SCGB.js.map +1 -0
  32. package/dist/chunk-VJSOCNPA.js +181 -0
  33. package/dist/chunk-VJSOCNPA.js.map +1 -0
  34. package/dist/chunk-WM2GRSRW.js +39 -0
  35. package/dist/chunk-WM2GRSRW.js.map +1 -0
  36. package/dist/chunk-Z5J5UI5E.mjs +360 -0
  37. package/dist/chunk-Z5J5UI5E.mjs.map +1 -0
  38. package/dist/client-B2HqIKg6.d.ts +51 -0
  39. package/dist/client-XyCqclCi.d.mts +51 -0
  40. package/dist/client-browser.d.mts +8 -0
  41. package/dist/client-browser.d.ts +8 -0
  42. package/dist/client-browser.js +83 -0
  43. package/dist/client-browser.js.map +1 -0
  44. package/dist/client-browser.mjs +83 -0
  45. package/dist/client-browser.mjs.map +1 -0
  46. package/dist/client-node.d.mts +8 -0
  47. package/dist/client-node.d.ts +8 -0
  48. package/dist/client-node.js +90 -0
  49. package/dist/client-node.js.map +1 -0
  50. package/dist/client-node.mjs +90 -0
  51. package/dist/client-node.mjs.map +1 -0
  52. package/dist/evaluation/index.d.mts +897 -0
  53. package/dist/evaluation/index.d.ts +897 -0
  54. package/dist/evaluation/index.js +13 -0
  55. package/dist/evaluation/index.js.map +1 -0
  56. package/dist/evaluation/index.mjs +13 -0
  57. package/dist/evaluation/index.mjs.map +1 -0
  58. package/dist/filterable-batch-span-processor-zO5kcjBY.d.mts +64 -0
  59. package/dist/filterable-batch-span-processor-zO5kcjBY.d.ts +64 -0
  60. package/dist/index.d.mts +45 -1027
  61. package/dist/index.d.ts +45 -1027
  62. package/dist/index.js +11 -27291
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.mjs +23 -956
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/observability/index.d.mts +260 -0
  67. package/dist/observability/index.d.ts +260 -0
  68. package/dist/observability/index.js +20 -0
  69. package/dist/observability/index.js.map +1 -0
  70. package/dist/observability/index.mjs +20 -0
  71. package/dist/observability/index.mjs.map +1 -0
  72. package/dist/observability/instrumentation/langchain/index.d.mts +40 -0
  73. package/dist/observability/instrumentation/langchain/index.d.ts +40 -0
  74. package/dist/observability/instrumentation/langchain/index.js +666 -0
  75. package/dist/observability/instrumentation/langchain/index.js.map +1 -0
  76. package/dist/observability/instrumentation/langchain/index.mjs +666 -0
  77. package/dist/observability/instrumentation/langchain/index.mjs.map +1 -0
  78. package/dist/prompt/index.d.mts +10 -0
  79. package/dist/prompt/index.d.ts +10 -0
  80. package/dist/prompt/index.js +18 -0
  81. package/dist/prompt/index.js.map +1 -0
  82. package/dist/prompt/index.mjs +18 -0
  83. package/dist/prompt/index.mjs.map +1 -0
  84. package/dist/prompt-BXJWdbQp.d.mts +1967 -0
  85. package/dist/prompt-BXJWdbQp.d.ts +1967 -0
  86. package/dist/record-evaluation-CmxMXa-3.d.mts +25 -0
  87. package/dist/record-evaluation-CmxMXa-3.d.ts +25 -0
  88. package/dist/trace-D-bZOuqb.d.mts +622 -0
  89. package/dist/trace-G2312klE.d.ts +622 -0
  90. package/package.json +86 -37
  91. package/.eslintrc.cjs +0 -37
  92. package/copy-types.sh +0 -17
  93. package/dist/chunk-LKD2K67J.mjs +0 -717
  94. package/dist/chunk-LKD2K67J.mjs.map +0 -1
  95. package/dist/utils-Cv-rUjJ1.d.mts +0 -313
  96. package/dist/utils-Cv-rUjJ1.d.ts +0 -313
  97. package/dist/utils.d.mts +0 -2
  98. package/dist/utils.d.ts +0 -2
  99. package/dist/utils.js +0 -709
  100. package/dist/utils.js.map +0 -1
  101. package/dist/utils.mjs +0 -11
  102. package/example/.env.example +0 -12
  103. package/example/.eslintrc.json +0 -26
  104. package/example/LICENSE +0 -13
  105. package/example/README.md +0 -12
  106. package/example/app/(chat)/chat/[id]/page.tsx +0 -60
  107. package/example/app/(chat)/layout.tsx +0 -14
  108. package/example/app/(chat)/page.tsx +0 -27
  109. package/example/app/actions.ts +0 -156
  110. package/example/app/globals.css +0 -76
  111. package/example/app/guardrails/page.tsx +0 -26
  112. package/example/app/langchain/page.tsx +0 -27
  113. package/example/app/langchain-rag/page.tsx +0 -28
  114. package/example/app/late-update/page.tsx +0 -27
  115. package/example/app/layout.tsx +0 -64
  116. package/example/app/login/actions.ts +0 -71
  117. package/example/app/login/page.tsx +0 -18
  118. package/example/app/manual/page.tsx +0 -27
  119. package/example/app/new/page.tsx +0 -5
  120. package/example/app/opengraph-image.png +0 -0
  121. package/example/app/share/[id]/page.tsx +0 -58
  122. package/example/app/signup/actions.ts +0 -111
  123. package/example/app/signup/page.tsx +0 -18
  124. package/example/app/twitter-image.png +0 -0
  125. package/example/auth.config.ts +0 -42
  126. package/example/auth.ts +0 -45
  127. package/example/components/button-scroll-to-bottom.tsx +0 -36
  128. package/example/components/chat-history.tsx +0 -49
  129. package/example/components/chat-list.tsx +0 -52
  130. package/example/components/chat-message-actions.tsx +0 -40
  131. package/example/components/chat-message.tsx +0 -80
  132. package/example/components/chat-panel.tsx +0 -139
  133. package/example/components/chat-share-dialog.tsx +0 -95
  134. package/example/components/chat.tsx +0 -84
  135. package/example/components/clear-history.tsx +0 -75
  136. package/example/components/empty-screen.tsx +0 -38
  137. package/example/components/external-link.tsx +0 -29
  138. package/example/components/footer.tsx +0 -19
  139. package/example/components/header.tsx +0 -114
  140. package/example/components/login-button.tsx +0 -42
  141. package/example/components/login-form.tsx +0 -97
  142. package/example/components/markdown.tsx +0 -9
  143. package/example/components/prompt-form.tsx +0 -115
  144. package/example/components/providers.tsx +0 -17
  145. package/example/components/sidebar-actions.tsx +0 -125
  146. package/example/components/sidebar-desktop.tsx +0 -19
  147. package/example/components/sidebar-footer.tsx +0 -16
  148. package/example/components/sidebar-item.tsx +0 -124
  149. package/example/components/sidebar-items.tsx +0 -42
  150. package/example/components/sidebar-list.tsx +0 -38
  151. package/example/components/sidebar-mobile.tsx +0 -31
  152. package/example/components/sidebar-toggle.tsx +0 -24
  153. package/example/components/sidebar.tsx +0 -21
  154. package/example/components/signup-form.tsx +0 -95
  155. package/example/components/stocks/events-skeleton.tsx +0 -31
  156. package/example/components/stocks/events.tsx +0 -30
  157. package/example/components/stocks/index.tsx +0 -36
  158. package/example/components/stocks/message.tsx +0 -134
  159. package/example/components/stocks/spinner.tsx +0 -16
  160. package/example/components/stocks/stock-purchase.tsx +0 -146
  161. package/example/components/stocks/stock-skeleton.tsx +0 -22
  162. package/example/components/stocks/stock.tsx +0 -210
  163. package/example/components/stocks/stocks-skeleton.tsx +0 -9
  164. package/example/components/stocks/stocks.tsx +0 -67
  165. package/example/components/tailwind-indicator.tsx +0 -14
  166. package/example/components/theme-toggle.tsx +0 -31
  167. package/example/components/ui/alert-dialog.tsx +0 -141
  168. package/example/components/ui/badge.tsx +0 -36
  169. package/example/components/ui/button.tsx +0 -57
  170. package/example/components/ui/codeblock.tsx +0 -148
  171. package/example/components/ui/dialog.tsx +0 -122
  172. package/example/components/ui/dropdown-menu.tsx +0 -205
  173. package/example/components/ui/icons.tsx +0 -507
  174. package/example/components/ui/input.tsx +0 -25
  175. package/example/components/ui/label.tsx +0 -26
  176. package/example/components/ui/select.tsx +0 -164
  177. package/example/components/ui/separator.tsx +0 -31
  178. package/example/components/ui/sheet.tsx +0 -140
  179. package/example/components/ui/sonner.tsx +0 -31
  180. package/example/components/ui/switch.tsx +0 -29
  181. package/example/components/ui/textarea.tsx +0 -24
  182. package/example/components/ui/tooltip.tsx +0 -30
  183. package/example/components/user-menu.tsx +0 -53
  184. package/example/components.json +0 -17
  185. package/example/instrumentation.ts +0 -11
  186. package/example/lib/chat/guardrails.tsx +0 -181
  187. package/example/lib/chat/langchain-rag.tsx +0 -191
  188. package/example/lib/chat/langchain.tsx +0 -112
  189. package/example/lib/chat/late-update.tsx +0 -208
  190. package/example/lib/chat/manual.tsx +0 -605
  191. package/example/lib/chat/vercel-ai.tsx +0 -576
  192. package/example/lib/hooks/use-copy-to-clipboard.tsx +0 -33
  193. package/example/lib/hooks/use-enter-submit.tsx +0 -23
  194. package/example/lib/hooks/use-local-storage.ts +0 -24
  195. package/example/lib/hooks/use-scroll-anchor.tsx +0 -86
  196. package/example/lib/hooks/use-sidebar.tsx +0 -60
  197. package/example/lib/hooks/use-streamable-text.ts +0 -25
  198. package/example/lib/types.ts +0 -41
  199. package/example/lib/utils.ts +0 -89
  200. package/example/middleware.ts +0 -8
  201. package/example/next-env.d.ts +0 -5
  202. package/example/next.config.js +0 -16
  203. package/example/package-lock.json +0 -10917
  204. package/example/package.json +0 -84
  205. package/example/pnpm-lock.yaml +0 -5712
  206. package/example/postcss.config.js +0 -6
  207. package/example/prettier.config.cjs +0 -34
  208. package/example/public/apple-touch-icon.png +0 -0
  209. package/example/public/favicon-16x16.png +0 -0
  210. package/example/public/favicon.ico +0 -0
  211. package/example/public/next.svg +0 -1
  212. package/example/public/thirteen.svg +0 -1
  213. package/example/public/vercel.svg +0 -1
  214. package/example/tailwind.config.ts +0 -81
  215. package/example/tsconfig.json +0 -35
  216. package/src/LangWatchExporter.ts +0 -96
  217. package/src/evaluations.ts +0 -219
  218. package/src/index.test.ts +0 -402
  219. package/src/index.ts +0 -596
  220. package/src/langchain.ts +0 -557
  221. package/src/server/types/.gitkeep +0 -0
  222. package/src/typeUtils.ts +0 -89
  223. package/src/types.ts +0 -82
  224. package/src/utils.ts +0 -205
  225. package/ts-to-zod.config.js +0 -24
  226. package/tsconfig.json +0 -32
  227. package/tsup.config.ts +0 -10
  228. package/vitest.config.ts +0 -8
  229. /package/dist/{utils.mjs.map → chunk-OM7VY3XT.mjs.map} +0 -0
@@ -1,313 +0,0 @@
1
- import { CoreMessage } from 'ai';
2
-
3
- type ChatRole = "system" | "user" | "assistant" | "function" | "tool" | "unknown";
4
- interface FunctionCall {
5
- name?: string;
6
- arguments?: string;
7
- }
8
- interface ToolCall {
9
- id: string;
10
- type: string;
11
- function: FunctionCall;
12
- }
13
- interface ChatMessage$1 {
14
- role?: ChatRole;
15
- content?: string | ChatRichContent$1[] | null;
16
- function_call?: FunctionCall | null;
17
- tool_calls?: ToolCall[] | null;
18
- tool_call_id?: string | null;
19
- name?: string | null;
20
- }
21
- type ChatRichContent$1 = {
22
- type: "text";
23
- text?: string;
24
- } | {
25
- text: string;
26
- } | {
27
- type: "image_url";
28
- image_url?: {
29
- url: string;
30
- detail?: "auto" | "low" | "high";
31
- };
32
- } | {
33
- type: "tool_call";
34
- toolName?: string;
35
- toolCallId?: string;
36
- args?: string;
37
- } | {
38
- type: "tool_result";
39
- toolName?: string;
40
- toolCallId?: string;
41
- result?: any;
42
- };
43
- interface TypedValueChatMessages {
44
- type: "chat_messages";
45
- value: ChatMessage$1[];
46
- }
47
- interface TypedValueText {
48
- type: "text";
49
- value: string;
50
- }
51
- interface TypedValueRaw {
52
- type: "raw";
53
- value: string;
54
- }
55
- type JSONSerializable = string | number | boolean | null | Record<string, any> | any[];
56
- interface TypedValueJson {
57
- type: "json";
58
- value: JSONSerializable;
59
- }
60
- type Money = {
61
- currency: string;
62
- amount: number;
63
- };
64
- interface EvaluationResult {
65
- status: "processed" | "skipped" | "error";
66
- passed?: boolean | null;
67
- score?: number | null;
68
- label?: string | null;
69
- details?: string | null;
70
- cost?: Money | null;
71
- }
72
- interface TypedValueGuardrailResult {
73
- type: "guardrail_result";
74
- value: EvaluationResult;
75
- }
76
- interface TypedValueEvaluationResult {
77
- type: "evaluation_result";
78
- value: EvaluationResult;
79
- }
80
- type SpanInputOutput$1 = TypedValueText | TypedValueChatMessages | TypedValueGuardrailResult | TypedValueEvaluationResult | TypedValueJson | TypedValueRaw | {
81
- type: "list";
82
- value: SpanInputOutput$1[];
83
- };
84
- interface ErrorCapture$1 {
85
- has_error: true;
86
- message: string;
87
- stacktrace: string[];
88
- }
89
- interface SpanMetrics {
90
- prompt_tokens?: number | null;
91
- completion_tokens?: number | null;
92
- tokens_estimated?: boolean | null;
93
- cost?: number | null;
94
- }
95
- type ReservedSpanParams = {
96
- frequency_penalty?: number | null;
97
- logit_bias?: Record<string, number> | null;
98
- logprobs?: boolean | null;
99
- top_logprobs?: number | null;
100
- max_tokens?: number | null;
101
- n?: number | null;
102
- presence_penalty?: number | null;
103
- seed?: number | null;
104
- stop?: string | string[] | null;
105
- stream?: boolean | null;
106
- temperature?: number | null;
107
- top_p?: number | null;
108
- tools?: Record<string, any>[] | null;
109
- tool_choice?: Record<string, any> | string | null;
110
- parallel_tool_calls?: boolean | null;
111
- functions?: Record<string, any>[] | null;
112
- user?: string | null;
113
- };
114
- type SpanParams = ReservedSpanParams & Record<string, any>;
115
- interface SpanTimestamps {
116
- started_at: number;
117
- first_token_at?: number | null;
118
- finished_at: number;
119
- }
120
- type SpanTypes = "span" | "llm" | "chain" | "tool" | "agent" | "rag" | "guardrail" | "evaluation" | "workflow" | "component" | "module" | "server" | "client" | "producer" | "consumer" | "task" | "unknown";
121
- interface BaseSpan$1 {
122
- span_id: string;
123
- parent_id?: string | null;
124
- trace_id: string;
125
- type: SpanTypes;
126
- name?: string | null;
127
- input?: SpanInputOutput$1 | null;
128
- output?: SpanInputOutput$1 | null;
129
- error?: ErrorCapture$1 | null;
130
- timestamps: SpanTimestamps;
131
- metrics?: SpanMetrics | null;
132
- params?: SpanParams | null;
133
- }
134
- interface LLMSpan$1 extends BaseSpan$1 {
135
- type: "llm";
136
- vendor?: string | null;
137
- model?: string | null;
138
- }
139
- interface RAGChunk {
140
- document_id?: string | null;
141
- chunk_id?: string | null;
142
- content: string | Record<string, any> | any[];
143
- }
144
- interface RAGSpan$1 extends BaseSpan$1 {
145
- type: "rag";
146
- contexts: RAGChunk[];
147
- }
148
- type Span = LLMSpan$1 | RAGSpan$1 | BaseSpan$1;
149
- type TraceInput = {
150
- value: string;
151
- satisfaction_score?: number;
152
- };
153
- type TraceOutput = {
154
- value: string;
155
- };
156
- type PrimitiveType = string | number | boolean | null | undefined;
157
- type ReservedTraceMetadata = {
158
- thread_id?: string | null;
159
- user_id?: string | null;
160
- customer_id?: string | null;
161
- labels?: string[] | null;
162
- topic_id?: string | null;
163
- subtopic_id?: string | null;
164
- sdk_name?: string | null;
165
- sdk_version?: string | null;
166
- sdk_language?: string | null;
167
- telemetry_sdk_language?: string | null;
168
- telemetry_sdk_name?: string | null;
169
- telemetry_sdk_version?: string | null;
170
- prompt_ids?: string[] | null;
171
- prompt_version_ids?: string[] | null;
172
- };
173
- type CustomMetadata = Record<string, PrimitiveType | PrimitiveType[] | Record<string, PrimitiveType> | Record<string, Record<string, PrimitiveType>>>;
174
- type TraceMetadata = ReservedTraceMetadata & CustomMetadata;
175
- type Trace$1 = {
176
- trace_id: string;
177
- project_id: string;
178
- metadata: TraceMetadata;
179
- timestamps: {
180
- started_at: number;
181
- inserted_at: number;
182
- updated_at: number;
183
- };
184
- input?: TraceInput;
185
- output?: TraceOutput;
186
- contexts?: RAGChunk[];
187
- expected_output?: {
188
- value: string;
189
- };
190
- metrics?: {
191
- first_token_ms?: number | null;
192
- total_time_ms?: number | null;
193
- prompt_tokens?: number | null;
194
- completion_tokens?: number | null;
195
- total_cost?: number | null;
196
- tokens_estimated?: boolean | null;
197
- };
198
- error?: ErrorCapture$1 | null;
199
- indexing_md5s?: string[];
200
- events?: Event[];
201
- evaluations?: Evaluation[];
202
- spans: Span[];
203
- };
204
- type LLMModeTrace$1 = Omit<Trace$1, "timestamps" | "indexing_md5s"> & {
205
- timestamps: {
206
- started_at: string;
207
- inserted_at: string;
208
- updated_at: string;
209
- };
210
- ascii_tree: string;
211
- };
212
- type EvaluationStatus = "scheduled" | "in_progress" | "error" | "skipped" | "processed";
213
- type Evaluation = {
214
- evaluation_id: string;
215
- evaluator_id: string;
216
- span_id?: string | null;
217
- name: string;
218
- type?: string | null;
219
- is_guardrail?: boolean | null;
220
- status: EvaluationStatus;
221
- passed?: boolean | null;
222
- score?: number | null;
223
- label?: string | null;
224
- details?: string | null;
225
- error?: ErrorCapture$1 | null;
226
- retries?: number | null;
227
- timestamps: {
228
- inserted_at?: number | null;
229
- started_at?: number | null;
230
- finished_at?: number | null;
231
- updated_at?: number | null;
232
- };
233
- };
234
- type RESTEvaluation$1 = Omit<Evaluation, "evaluation_id" | "evaluator_id" | "status" | "timestamps" | "retries"> & {
235
- evaluation_id?: string | null;
236
- evaluator_id?: string | null;
237
- status?: "processed" | "skipped" | "error" | null;
238
- timestamps?: {
239
- started_at?: number | null;
240
- finished_at?: number | null;
241
- } | null;
242
- };
243
- type CollectorRESTParams = {
244
- trace_id?: string | null | undefined;
245
- spans: Span[];
246
- metadata?: {
247
- user_id?: string | null | undefined;
248
- thread_id?: string | null | undefined;
249
- customer_id?: string | null | undefined;
250
- labels?: string[] | null | undefined;
251
- sdk_version?: string | null | undefined;
252
- sdk_language?: string | null | undefined;
253
- } & CustomMetadata;
254
- expected_output?: string | null;
255
- evaluations?: RESTEvaluation$1[];
256
- };
257
- type Event = {
258
- event_id: string;
259
- event_type: string;
260
- project_id: string;
261
- metrics: Record<string, number>;
262
- event_details: Record<string, string>;
263
- trace_id: string;
264
- timestamps: {
265
- started_at: number;
266
- inserted_at: number;
267
- updated_at: number;
268
- };
269
- };
270
-
271
- type SnakeToCamelCase<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<SnakeToCamelCase<U>>}` : S;
272
- type SnakeToCamelCaseNested<T> = T extends object ? T extends (infer U)[] ? U extends object ? {
273
- [K in keyof U as SnakeToCamelCase<K & string>]: SnakeToCamelCaseNested<U[K]>;
274
- }[] : T : {
275
- [K in keyof T as SnakeToCamelCase<K & string>]: SnakeToCamelCaseNested<T[K]>;
276
- } : T;
277
-
278
- type Trace = Trace$1;
279
- type LLMModeTrace = LLMModeTrace$1;
280
- type Metadata = SnakeToCamelCaseNested<Trace["metadata"]>;
281
- type ChatMessage = ChatMessage$1;
282
- type ChatRichContent = ChatRichContent$1;
283
- type SpanInputOutput = SnakeToCamelCaseNested<Exclude<SpanInputOutput$1, TypedValueChatMessages>> | (TypedValueChatMessages & {
284
- type: ChatMessage;
285
- });
286
- type ConvertServerSpan<T extends BaseSpan$1> = SnakeToCamelCaseNested<Omit<T, "input" | "output" | "error">> & {
287
- input?: SpanInputOutput | null;
288
- output?: SpanInputOutput | null;
289
- error?: T["error"] | NonNullable<unknown>;
290
- };
291
- type PendingSpan<T extends BaseSpan> = Omit<T, "traceId" | "timestamps"> & {
292
- timestamps: Omit<T["timestamps"], "finishedAt"> & {
293
- finishedAt?: number | null;
294
- };
295
- };
296
- type BaseSpan = ConvertServerSpan<BaseSpan$1>;
297
- type PendingBaseSpan = PendingSpan<BaseSpan>;
298
- type LLMSpan = ConvertServerSpan<Omit<LLMSpan$1, "vendor" | "model">> & {
299
- model: string;
300
- };
301
- type PendingLLMSpan = PendingSpan<LLMSpan>;
302
- type RAGSpan = ConvertServerSpan<RAGSpan$1>;
303
- type PendingRAGSpan = PendingSpan<RAGSpan>;
304
- type RESTEvaluation = SnakeToCamelCaseNested<Omit<RESTEvaluation$1, "error">> & {
305
- error?: RESTEvaluation$1["error"];
306
- };
307
- type ErrorCapture = ErrorCapture$1;
308
-
309
- declare function convertFromVercelAIMessages(messages: CoreMessage[]): ChatMessage[];
310
- declare const captureError: (error: unknown) => ErrorCapture$1;
311
- declare const autoconvertTypedValues: (value: unknown) => SpanInputOutput;
312
-
313
- export { type BaseSpan as B, type CollectorRESTParams as C, type ErrorCapture as E, type LLMSpan as L, type Metadata as M, type PendingBaseSpan as P, type RAGChunk as R, type Span as S, type Trace as T, type RESTEvaluation as a, type PendingLLMSpan as b, type PendingRAGSpan as c, type SpanTypes as d, type ChatMessage as e, type ChatRichContent as f, type RAGSpan as g, type SpanInputOutput as h, type LLMModeTrace as i, autoconvertTypedValues as j, captureError as k, convertFromVercelAIMessages as l };
package/dist/utils.d.mts DELETED
@@ -1,2 +0,0 @@
1
- import 'ai';
2
- export { j as autoconvertTypedValues, k as captureError, l as convertFromVercelAIMessages } from './utils-Cv-rUjJ1.mjs';
package/dist/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import 'ai';
2
- export { j as autoconvertTypedValues, k as captureError, l as convertFromVercelAIMessages } from './utils-Cv-rUjJ1.js';