@lmnr-ai/lmnr 0.8.51 → 0.8.52

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-C8cI_XIE.cjs";
1
+ import { S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-CgcBhNjN.cjs";
2
2
  import { ServerResponse } from "node:http";
3
3
  import { ReadableSpan, SpanExporter, SpanProcessor, TimedEvent } from "@opentelemetry/sdk-trace-base";
4
4
  import { AttributeValue, Attributes, Context, Exception, HrTime, Link, Span, Span as Span$1, SpanContext, SpanKind, SpanStatus, TimeInput, Tracer, TracerProvider } from "@opentelemetry/api";
@@ -9614,7 +9614,7 @@ type LanguageModelV2 = {
9614
9614
  }>;
9615
9615
  };
9616
9616
  //#endregion
9617
- //#region ../../node_modules/.pnpm/@ai-sdk+provider@3.0.18/node_modules/@ai-sdk/provider/dist/index.d.ts
9617
+ //#region ../../node_modules/.pnpm/@ai-sdk+provider@3.0.19/node_modules/@ai-sdk/provider/dist/index.d.ts
9618
9618
  type SharedV3Headers = Record<string, string>;
9619
9619
  /**
9620
9620
  * A JSON value can be a string, number, boolean, object, array, or null.
@@ -10376,8 +10376,9 @@ type LanguageModelV3ToolCall = {
10376
10376
  */
10377
10377
  toolName: string;
10378
10378
  /**
10379
- * Stringified JSON object with the tool call arguments. Must match the
10380
- * parameters schema of the tool.
10379
+ * JSON-encoded tool input. Must match the input schema of the tool.
10380
+ * String inputs must also be JSON-encoded, even when input deltas use text
10381
+ * encoding.
10381
10382
  */
10382
10383
  input: string;
10383
10384
  /**
@@ -10606,6 +10607,12 @@ type LanguageModelV3StreamPart = {
10606
10607
  type: 'tool-input-start';
10607
10608
  id: string;
10608
10609
  toolName: string;
10610
+ /**
10611
+ * Encoding of the input deltas. Defaults to JSON when omitted.
10612
+ * Text deltas concatenate to a raw string. The final tool-call input
10613
+ * must still be JSON-encoded, regardless of the delta encoding.
10614
+ */
10615
+ inputEncoding?: 'json' | 'text';
10609
10616
  providerMetadata?: SharedV3ProviderMetadata;
10610
10617
  providerExecuted?: boolean;
10611
10618
  dynamic?: boolean;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-BVaPPf0j.mjs";
1
+ import { S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-GnmUSvoK.mjs";
2
2
  import { AttributeValue, Attributes, Context, Exception, HrTime, Link, Span, Span as Span$1, SpanContext, SpanKind, SpanStatus, TimeInput, Tracer, TracerProvider } from "@opentelemetry/api";
3
3
  import { Instrumentation, InstrumentationBase } from "@opentelemetry/instrumentation";
4
4
  import { ReadableSpan, SpanExporter, SpanProcessor, TimedEvent } from "@opentelemetry/sdk-trace-base";
@@ -9614,7 +9614,7 @@ type LanguageModelV2 = {
9614
9614
  }>;
9615
9615
  };
9616
9616
  //#endregion
9617
- //#region ../../node_modules/.pnpm/@ai-sdk+provider@3.0.18/node_modules/@ai-sdk/provider/dist/index.d.ts
9617
+ //#region ../../node_modules/.pnpm/@ai-sdk+provider@3.0.19/node_modules/@ai-sdk/provider/dist/index.d.ts
9618
9618
  type SharedV3Headers = Record<string, string>;
9619
9619
  /**
9620
9620
  * A JSON value can be a string, number, boolean, object, array, or null.
@@ -10376,8 +10376,9 @@ type LanguageModelV3ToolCall = {
10376
10376
  */
10377
10377
  toolName: string;
10378
10378
  /**
10379
- * Stringified JSON object with the tool call arguments. Must match the
10380
- * parameters schema of the tool.
10379
+ * JSON-encoded tool input. Must match the input schema of the tool.
10380
+ * String inputs must also be JSON-encoded, even when input deltas use text
10381
+ * encoding.
10381
10382
  */
10382
10383
  input: string;
10383
10384
  /**
@@ -10606,6 +10607,12 @@ type LanguageModelV3StreamPart = {
10606
10607
  type: 'tool-input-start';
10607
10608
  id: string;
10608
10609
  toolName: string;
10610
+ /**
10611
+ * Encoding of the input deltas. Defaults to JSON when omitted.
10612
+ * Text deltas concatenate to a raw string. The final tool-call input
10613
+ * must still be JSON-encoded, regardless of the delta encoding.
10614
+ */
10615
+ inputEncoding?: 'json' | 'text';
10609
10616
  providerMetadata?: SharedV3ProviderMetadata;
10610
10617
  providerExecuted?: boolean;
10611
10618
  dynamic?: boolean;