@lmnr-ai/client 0.8.49 → 0.8.50
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.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -85
- package/dist/index.d.mts +20 -85
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CachedSpan, Datapoint, Dataset, EvaluationDatapoint, GetDatapointsResponse, InitEvaluationResponse, LlmProfile, LlmProfileConfig, LlmProfileProvider, PushDatapointsResponse, SessionBlock, SessionBlockContent, SessionBlockType, Signal, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SignalVersion, SqlSchema, StringUUID } from "@lmnr-ai/types";
|
|
2
|
-
|
|
3
2
|
//#region src/resources/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Unified auth for every resource. A discriminated union so a single object
|
|
@@ -39,11 +38,7 @@ declare class BaseResource {
|
|
|
39
38
|
//#region src/resources/browser-events.d.ts
|
|
40
39
|
declare class BrowserEventsResource extends BaseResource {
|
|
41
40
|
constructor(baseHttpUrl: string, auth: LaminarAuth);
|
|
42
|
-
send({
|
|
43
|
-
sessionId,
|
|
44
|
-
traceId,
|
|
45
|
-
events
|
|
46
|
-
}: {
|
|
41
|
+
send({ sessionId, traceId, events }: {
|
|
47
42
|
sessionId: string;
|
|
48
43
|
traceId: string;
|
|
49
44
|
events: Record<string, any>[];
|
|
@@ -133,13 +128,7 @@ declare class DatasetsResource extends BaseResource {
|
|
|
133
128
|
* @param {boolean} [options.createDataset] - Whether to create the dataset if it doesn't exist
|
|
134
129
|
* @returns {Promise<PushDatapointsResponse | undefined>}
|
|
135
130
|
*/
|
|
136
|
-
push<D, T>({
|
|
137
|
-
points,
|
|
138
|
-
name,
|
|
139
|
-
id,
|
|
140
|
-
batchSize,
|
|
141
|
-
createDataset
|
|
142
|
-
}: {
|
|
131
|
+
push<D, T>({ points, name, id, batchSize, createDataset }: {
|
|
143
132
|
points: Datapoint<D, T>[];
|
|
144
133
|
name?: string;
|
|
145
134
|
id?: StringUUID;
|
|
@@ -156,12 +145,7 @@ declare class DatasetsResource extends BaseResource {
|
|
|
156
145
|
* @param {number} [options.offset] - Offset for pagination (default: 0)
|
|
157
146
|
* @returns {Promise<GetDatapointsResponse<D, T>>}
|
|
158
147
|
*/
|
|
159
|
-
pull<D, T>({
|
|
160
|
-
name,
|
|
161
|
-
id,
|
|
162
|
-
limit,
|
|
163
|
-
offset
|
|
164
|
-
}: {
|
|
148
|
+
pull<D, T>({ name, id, limit, offset }: {
|
|
165
149
|
name?: string;
|
|
166
150
|
id?: StringUUID;
|
|
167
151
|
limit?: number;
|
|
@@ -204,11 +188,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
204
188
|
* @param {Record<string, any>} [options.metadata] - New metadata for the evaluation
|
|
205
189
|
* @returns {Promise<InitEvaluationResponse>} The updated evaluation
|
|
206
190
|
*/
|
|
207
|
-
update({
|
|
208
|
-
evalId,
|
|
209
|
-
name,
|
|
210
|
-
metadata
|
|
211
|
-
}: {
|
|
191
|
+
update({ evalId, name, metadata }: {
|
|
212
192
|
evalId: string;
|
|
213
193
|
name?: string;
|
|
214
194
|
metadata?: Record<string, any>;
|
|
@@ -230,14 +210,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
230
210
|
* @param {string} [options.traceId] - Optional trace ID
|
|
231
211
|
* @returns {Promise<StringUUID>} The datapoint ID
|
|
232
212
|
*/
|
|
233
|
-
createDatapoint<D, T>({
|
|
234
|
-
evalId,
|
|
235
|
-
data,
|
|
236
|
-
target,
|
|
237
|
-
metadata,
|
|
238
|
-
index,
|
|
239
|
-
traceId
|
|
240
|
-
}: {
|
|
213
|
+
createDatapoint<D, T>({ evalId, data, target, metadata, index, traceId }: {
|
|
241
214
|
evalId: string;
|
|
242
215
|
data: D;
|
|
243
216
|
target?: T;
|
|
@@ -255,12 +228,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
255
228
|
* @param {O} [options.executorOutput] - The executor output
|
|
256
229
|
* @returns {Promise<void>}
|
|
257
230
|
*/
|
|
258
|
-
updateDatapoint<O>({
|
|
259
|
-
evalId,
|
|
260
|
-
datapointId,
|
|
261
|
-
scores,
|
|
262
|
-
executorOutput
|
|
263
|
-
}: {
|
|
231
|
+
updateDatapoint<O>({ evalId, datapointId, scores, executorOutput }: {
|
|
264
232
|
evalId: string;
|
|
265
233
|
datapointId: string;
|
|
266
234
|
scores: Record<string, number | null>;
|
|
@@ -275,11 +243,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
275
243
|
* @param {string} [options.groupName] - Group name of the evaluation
|
|
276
244
|
* @returns {Promise<void>} Response from the datapoint addition
|
|
277
245
|
*/
|
|
278
|
-
saveDatapoints<D, T, O>({
|
|
279
|
-
evalId,
|
|
280
|
-
datapoints,
|
|
281
|
-
groupName
|
|
282
|
-
}: {
|
|
246
|
+
saveDatapoints<D, T, O>({ evalId, datapoints, groupName }: {
|
|
283
247
|
evalId: string;
|
|
284
248
|
datapoints: EvaluationDatapoint<D, T, O>[];
|
|
285
249
|
groupName?: string;
|
|
@@ -294,11 +258,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
294
258
|
* @param {number} options.limit - Maximum number of datapoints to return
|
|
295
259
|
* @returns {Promise<GetDatapointsResponse>} Response from the datapoint retrieval
|
|
296
260
|
*/
|
|
297
|
-
getDatapoints<D, T>({
|
|
298
|
-
datasetName,
|
|
299
|
-
offset,
|
|
300
|
-
limit
|
|
301
|
-
}: {
|
|
261
|
+
getDatapoints<D, T>({ datasetName, offset, limit }: {
|
|
302
262
|
datasetName: string;
|
|
303
263
|
offset: number;
|
|
304
264
|
limit: number;
|
|
@@ -434,7 +394,7 @@ type CacheOutcome = {
|
|
|
434
394
|
} | {
|
|
435
395
|
kind: "live";
|
|
436
396
|
};
|
|
437
|
-
declare class RolloutSessionsResource extends BaseResource {
|
|
397
|
+
export declare class RolloutSessionsResource extends BaseResource {
|
|
438
398
|
constructor(baseHttpUrl: string, auth: LaminarAuth);
|
|
439
399
|
/**
|
|
440
400
|
* Idempotently register (upsert) a debug session on the backend, keyed on the
|
|
@@ -444,10 +404,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
444
404
|
* Returns the backend-resolved `projectId` (derived from the API key) so the
|
|
445
405
|
* caller can build the debugger URL; null if the body can't be parsed.
|
|
446
406
|
*/
|
|
447
|
-
register({
|
|
448
|
-
sessionId,
|
|
449
|
-
name
|
|
450
|
-
}: {
|
|
407
|
+
register({ sessionId, name }: {
|
|
451
408
|
sessionId: string;
|
|
452
409
|
name?: string;
|
|
453
410
|
}): Promise<string | null>;
|
|
@@ -457,10 +414,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
457
414
|
* id surfaces as an error rather than silently creating a session. Creation
|
|
458
415
|
* stays the SDK's job via {@link register}.
|
|
459
416
|
*/
|
|
460
|
-
setName({
|
|
461
|
-
sessionId,
|
|
462
|
-
name
|
|
463
|
-
}: {
|
|
417
|
+
setName({ sessionId, name }: {
|
|
464
418
|
sessionId: string;
|
|
465
419
|
name: string;
|
|
466
420
|
}): Promise<void>;
|
|
@@ -479,13 +433,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
479
433
|
*
|
|
480
434
|
* Returns the created block id, or null when the response body can't be parsed.
|
|
481
435
|
*/
|
|
482
|
-
addBlock({
|
|
483
|
-
sessionId,
|
|
484
|
-
type,
|
|
485
|
-
content,
|
|
486
|
-
failOnNotFound,
|
|
487
|
-
signal
|
|
488
|
-
}: {
|
|
436
|
+
addBlock({ sessionId, type, content, failOnNotFound, signal }: {
|
|
489
437
|
sessionId: string;
|
|
490
438
|
type: SessionBlockType;
|
|
491
439
|
content: SessionBlockContent;
|
|
@@ -500,9 +448,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
500
448
|
* to print a chronological digest of the session. Returns an empty array when
|
|
501
449
|
* the session has no blocks or the body can't be parsed.
|
|
502
450
|
*/
|
|
503
|
-
listBlocks({
|
|
504
|
-
sessionId
|
|
505
|
-
}: {
|
|
451
|
+
listBlocks({ sessionId }: {
|
|
506
452
|
sessionId: string;
|
|
507
453
|
}): Promise<SessionBlock[]>;
|
|
508
454
|
/**
|
|
@@ -519,20 +465,13 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
519
465
|
* the process-wide live flag (only a real MISS does that). This keeps a flaky
|
|
520
466
|
* cache backend from turning a replay into a crash.
|
|
521
467
|
*/
|
|
522
|
-
cache({
|
|
523
|
-
sessionId,
|
|
524
|
-
replayTraceId,
|
|
525
|
-
cacheUntil,
|
|
526
|
-
inputHash
|
|
527
|
-
}: {
|
|
468
|
+
cache({ sessionId, replayTraceId, cacheUntil, inputHash }: {
|
|
528
469
|
sessionId: string;
|
|
529
470
|
replayTraceId: string;
|
|
530
471
|
cacheUntil: string;
|
|
531
472
|
inputHash: string;
|
|
532
473
|
}): Promise<CacheOutcome>;
|
|
533
|
-
delete({
|
|
534
|
-
sessionId
|
|
535
|
-
}: {
|
|
474
|
+
delete({ sessionId }: {
|
|
536
475
|
sessionId: string;
|
|
537
476
|
}): Promise<void>;
|
|
538
477
|
}
|
|
@@ -567,6 +506,8 @@ interface CreateSignalOptions {
|
|
|
567
506
|
* shape for clearing the route back to the server's env LLM.
|
|
568
507
|
*/
|
|
569
508
|
interface UpdateSignalOptions {
|
|
509
|
+
/** Must stay unique within the project; the id, events, and alerts are kept. */
|
|
510
|
+
name?: string;
|
|
570
511
|
prompt?: string;
|
|
571
512
|
structuredOutput?: SignalStructuredOutput;
|
|
572
513
|
sampleRate?: number | null;
|
|
@@ -719,7 +660,7 @@ declare class TracesResource extends BaseResource {
|
|
|
719
660
|
}
|
|
720
661
|
//#endregion
|
|
721
662
|
//#region src/index.d.ts
|
|
722
|
-
declare class LaminarClient {
|
|
663
|
+
export declare class LaminarClient {
|
|
723
664
|
private baseUrl;
|
|
724
665
|
private auth;
|
|
725
666
|
private configuredUrl?;
|
|
@@ -734,13 +675,7 @@ declare class LaminarClient {
|
|
|
734
675
|
private _sql;
|
|
735
676
|
private _tags;
|
|
736
677
|
private _traces;
|
|
737
|
-
constructor({
|
|
738
|
-
baseUrl,
|
|
739
|
-
port,
|
|
740
|
-
auth,
|
|
741
|
-
projectApiKey,
|
|
742
|
-
cliUserProjectId
|
|
743
|
-
}?: {
|
|
678
|
+
constructor({ baseUrl, port, auth, projectApiKey, cliUserProjectId }?: {
|
|
744
679
|
baseUrl?: string;
|
|
745
680
|
port?: number;
|
|
746
681
|
/**
|
|
@@ -809,5 +744,5 @@ declare class LaminarClient {
|
|
|
809
744
|
get traces(): TracesResource;
|
|
810
745
|
}
|
|
811
746
|
//#endregion
|
|
812
|
-
export {
|
|
747
|
+
export type { CacheOutcome, CliProject, CreateLlmProfileOptions, CreateSignalOptions, LaminarAuth, LlmProfileSecretsInput, ProjectKeyProbe, UpdateLlmProfileOptions, UpdateSignalOptions };
|
|
813
748
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CachedSpan, Datapoint, Dataset, EvaluationDatapoint, GetDatapointsResponse, InitEvaluationResponse, LlmProfile, LlmProfileConfig, LlmProfileProvider, PushDatapointsResponse, SessionBlock, SessionBlockContent, SessionBlockType, Signal, SignalFilter, SignalMode, SignalStructuredOutput, SignalTrigger, SignalVersion, SqlSchema, StringUUID } from "@lmnr-ai/types";
|
|
2
|
-
|
|
3
2
|
//#region src/resources/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Unified auth for every resource. A discriminated union so a single object
|
|
@@ -39,11 +38,7 @@ declare class BaseResource {
|
|
|
39
38
|
//#region src/resources/browser-events.d.ts
|
|
40
39
|
declare class BrowserEventsResource extends BaseResource {
|
|
41
40
|
constructor(baseHttpUrl: string, auth: LaminarAuth);
|
|
42
|
-
send({
|
|
43
|
-
sessionId,
|
|
44
|
-
traceId,
|
|
45
|
-
events
|
|
46
|
-
}: {
|
|
41
|
+
send({ sessionId, traceId, events }: {
|
|
47
42
|
sessionId: string;
|
|
48
43
|
traceId: string;
|
|
49
44
|
events: Record<string, any>[];
|
|
@@ -133,13 +128,7 @@ declare class DatasetsResource extends BaseResource {
|
|
|
133
128
|
* @param {boolean} [options.createDataset] - Whether to create the dataset if it doesn't exist
|
|
134
129
|
* @returns {Promise<PushDatapointsResponse | undefined>}
|
|
135
130
|
*/
|
|
136
|
-
push<D, T>({
|
|
137
|
-
points,
|
|
138
|
-
name,
|
|
139
|
-
id,
|
|
140
|
-
batchSize,
|
|
141
|
-
createDataset
|
|
142
|
-
}: {
|
|
131
|
+
push<D, T>({ points, name, id, batchSize, createDataset }: {
|
|
143
132
|
points: Datapoint<D, T>[];
|
|
144
133
|
name?: string;
|
|
145
134
|
id?: StringUUID;
|
|
@@ -156,12 +145,7 @@ declare class DatasetsResource extends BaseResource {
|
|
|
156
145
|
* @param {number} [options.offset] - Offset for pagination (default: 0)
|
|
157
146
|
* @returns {Promise<GetDatapointsResponse<D, T>>}
|
|
158
147
|
*/
|
|
159
|
-
pull<D, T>({
|
|
160
|
-
name,
|
|
161
|
-
id,
|
|
162
|
-
limit,
|
|
163
|
-
offset
|
|
164
|
-
}: {
|
|
148
|
+
pull<D, T>({ name, id, limit, offset }: {
|
|
165
149
|
name?: string;
|
|
166
150
|
id?: StringUUID;
|
|
167
151
|
limit?: number;
|
|
@@ -204,11 +188,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
204
188
|
* @param {Record<string, any>} [options.metadata] - New metadata for the evaluation
|
|
205
189
|
* @returns {Promise<InitEvaluationResponse>} The updated evaluation
|
|
206
190
|
*/
|
|
207
|
-
update({
|
|
208
|
-
evalId,
|
|
209
|
-
name,
|
|
210
|
-
metadata
|
|
211
|
-
}: {
|
|
191
|
+
update({ evalId, name, metadata }: {
|
|
212
192
|
evalId: string;
|
|
213
193
|
name?: string;
|
|
214
194
|
metadata?: Record<string, any>;
|
|
@@ -230,14 +210,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
230
210
|
* @param {string} [options.traceId] - Optional trace ID
|
|
231
211
|
* @returns {Promise<StringUUID>} The datapoint ID
|
|
232
212
|
*/
|
|
233
|
-
createDatapoint<D, T>({
|
|
234
|
-
evalId,
|
|
235
|
-
data,
|
|
236
|
-
target,
|
|
237
|
-
metadata,
|
|
238
|
-
index,
|
|
239
|
-
traceId
|
|
240
|
-
}: {
|
|
213
|
+
createDatapoint<D, T>({ evalId, data, target, metadata, index, traceId }: {
|
|
241
214
|
evalId: string;
|
|
242
215
|
data: D;
|
|
243
216
|
target?: T;
|
|
@@ -255,12 +228,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
255
228
|
* @param {O} [options.executorOutput] - The executor output
|
|
256
229
|
* @returns {Promise<void>}
|
|
257
230
|
*/
|
|
258
|
-
updateDatapoint<O>({
|
|
259
|
-
evalId,
|
|
260
|
-
datapointId,
|
|
261
|
-
scores,
|
|
262
|
-
executorOutput
|
|
263
|
-
}: {
|
|
231
|
+
updateDatapoint<O>({ evalId, datapointId, scores, executorOutput }: {
|
|
264
232
|
evalId: string;
|
|
265
233
|
datapointId: string;
|
|
266
234
|
scores: Record<string, number | null>;
|
|
@@ -275,11 +243,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
275
243
|
* @param {string} [options.groupName] - Group name of the evaluation
|
|
276
244
|
* @returns {Promise<void>} Response from the datapoint addition
|
|
277
245
|
*/
|
|
278
|
-
saveDatapoints<D, T, O>({
|
|
279
|
-
evalId,
|
|
280
|
-
datapoints,
|
|
281
|
-
groupName
|
|
282
|
-
}: {
|
|
246
|
+
saveDatapoints<D, T, O>({ evalId, datapoints, groupName }: {
|
|
283
247
|
evalId: string;
|
|
284
248
|
datapoints: EvaluationDatapoint<D, T, O>[];
|
|
285
249
|
groupName?: string;
|
|
@@ -294,11 +258,7 @@ declare class EvalsResource extends BaseResource {
|
|
|
294
258
|
* @param {number} options.limit - Maximum number of datapoints to return
|
|
295
259
|
* @returns {Promise<GetDatapointsResponse>} Response from the datapoint retrieval
|
|
296
260
|
*/
|
|
297
|
-
getDatapoints<D, T>({
|
|
298
|
-
datasetName,
|
|
299
|
-
offset,
|
|
300
|
-
limit
|
|
301
|
-
}: {
|
|
261
|
+
getDatapoints<D, T>({ datasetName, offset, limit }: {
|
|
302
262
|
datasetName: string;
|
|
303
263
|
offset: number;
|
|
304
264
|
limit: number;
|
|
@@ -434,7 +394,7 @@ type CacheOutcome = {
|
|
|
434
394
|
} | {
|
|
435
395
|
kind: "live";
|
|
436
396
|
};
|
|
437
|
-
declare class RolloutSessionsResource extends BaseResource {
|
|
397
|
+
export declare class RolloutSessionsResource extends BaseResource {
|
|
438
398
|
constructor(baseHttpUrl: string, auth: LaminarAuth);
|
|
439
399
|
/**
|
|
440
400
|
* Idempotently register (upsert) a debug session on the backend, keyed on the
|
|
@@ -444,10 +404,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
444
404
|
* Returns the backend-resolved `projectId` (derived from the API key) so the
|
|
445
405
|
* caller can build the debugger URL; null if the body can't be parsed.
|
|
446
406
|
*/
|
|
447
|
-
register({
|
|
448
|
-
sessionId,
|
|
449
|
-
name
|
|
450
|
-
}: {
|
|
407
|
+
register({ sessionId, name }: {
|
|
451
408
|
sessionId: string;
|
|
452
409
|
name?: string;
|
|
453
410
|
}): Promise<string | null>;
|
|
@@ -457,10 +414,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
457
414
|
* id surfaces as an error rather than silently creating a session. Creation
|
|
458
415
|
* stays the SDK's job via {@link register}.
|
|
459
416
|
*/
|
|
460
|
-
setName({
|
|
461
|
-
sessionId,
|
|
462
|
-
name
|
|
463
|
-
}: {
|
|
417
|
+
setName({ sessionId, name }: {
|
|
464
418
|
sessionId: string;
|
|
465
419
|
name: string;
|
|
466
420
|
}): Promise<void>;
|
|
@@ -479,13 +433,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
479
433
|
*
|
|
480
434
|
* Returns the created block id, or null when the response body can't be parsed.
|
|
481
435
|
*/
|
|
482
|
-
addBlock({
|
|
483
|
-
sessionId,
|
|
484
|
-
type,
|
|
485
|
-
content,
|
|
486
|
-
failOnNotFound,
|
|
487
|
-
signal
|
|
488
|
-
}: {
|
|
436
|
+
addBlock({ sessionId, type, content, failOnNotFound, signal }: {
|
|
489
437
|
sessionId: string;
|
|
490
438
|
type: SessionBlockType;
|
|
491
439
|
content: SessionBlockContent;
|
|
@@ -500,9 +448,7 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
500
448
|
* to print a chronological digest of the session. Returns an empty array when
|
|
501
449
|
* the session has no blocks or the body can't be parsed.
|
|
502
450
|
*/
|
|
503
|
-
listBlocks({
|
|
504
|
-
sessionId
|
|
505
|
-
}: {
|
|
451
|
+
listBlocks({ sessionId }: {
|
|
506
452
|
sessionId: string;
|
|
507
453
|
}): Promise<SessionBlock[]>;
|
|
508
454
|
/**
|
|
@@ -519,20 +465,13 @@ declare class RolloutSessionsResource extends BaseResource {
|
|
|
519
465
|
* the process-wide live flag (only a real MISS does that). This keeps a flaky
|
|
520
466
|
* cache backend from turning a replay into a crash.
|
|
521
467
|
*/
|
|
522
|
-
cache({
|
|
523
|
-
sessionId,
|
|
524
|
-
replayTraceId,
|
|
525
|
-
cacheUntil,
|
|
526
|
-
inputHash
|
|
527
|
-
}: {
|
|
468
|
+
cache({ sessionId, replayTraceId, cacheUntil, inputHash }: {
|
|
528
469
|
sessionId: string;
|
|
529
470
|
replayTraceId: string;
|
|
530
471
|
cacheUntil: string;
|
|
531
472
|
inputHash: string;
|
|
532
473
|
}): Promise<CacheOutcome>;
|
|
533
|
-
delete({
|
|
534
|
-
sessionId
|
|
535
|
-
}: {
|
|
474
|
+
delete({ sessionId }: {
|
|
536
475
|
sessionId: string;
|
|
537
476
|
}): Promise<void>;
|
|
538
477
|
}
|
|
@@ -567,6 +506,8 @@ interface CreateSignalOptions {
|
|
|
567
506
|
* shape for clearing the route back to the server's env LLM.
|
|
568
507
|
*/
|
|
569
508
|
interface UpdateSignalOptions {
|
|
509
|
+
/** Must stay unique within the project; the id, events, and alerts are kept. */
|
|
510
|
+
name?: string;
|
|
570
511
|
prompt?: string;
|
|
571
512
|
structuredOutput?: SignalStructuredOutput;
|
|
572
513
|
sampleRate?: number | null;
|
|
@@ -719,7 +660,7 @@ declare class TracesResource extends BaseResource {
|
|
|
719
660
|
}
|
|
720
661
|
//#endregion
|
|
721
662
|
//#region src/index.d.ts
|
|
722
|
-
declare class LaminarClient {
|
|
663
|
+
export declare class LaminarClient {
|
|
723
664
|
private baseUrl;
|
|
724
665
|
private auth;
|
|
725
666
|
private configuredUrl?;
|
|
@@ -734,13 +675,7 @@ declare class LaminarClient {
|
|
|
734
675
|
private _sql;
|
|
735
676
|
private _tags;
|
|
736
677
|
private _traces;
|
|
737
|
-
constructor({
|
|
738
|
-
baseUrl,
|
|
739
|
-
port,
|
|
740
|
-
auth,
|
|
741
|
-
projectApiKey,
|
|
742
|
-
cliUserProjectId
|
|
743
|
-
}?: {
|
|
678
|
+
constructor({ baseUrl, port, auth, projectApiKey, cliUserProjectId }?: {
|
|
744
679
|
baseUrl?: string;
|
|
745
680
|
port?: number;
|
|
746
681
|
/**
|
|
@@ -809,5 +744,5 @@ declare class LaminarClient {
|
|
|
809
744
|
get traces(): TracesResource;
|
|
810
745
|
}
|
|
811
746
|
//#endregion
|
|
812
|
-
export {
|
|
747
|
+
export type { CacheOutcome, CliProject, CreateLlmProfileOptions, CreateSignalOptions, LaminarAuth, LlmProfileSecretsInput, ProjectKeyProbe, UpdateLlmProfileOptions, UpdateSignalOptions };
|
|
813
748
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { PinoPretty } from "pino-pretty";
|
|
|
5
5
|
import { v4 } from "uuid";
|
|
6
6
|
import { errorMessage } from "@lmnr-ai/types";
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "0.8.
|
|
8
|
+
var version = "0.8.50";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/version.ts
|
|
11
11
|
function getLangVersion() {
|