opik 2.2.128 → 2.2.129

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
@@ -5498,6 +5498,12 @@ interface Delta {
5498
5498
  functionCall?: FunctionCall;
5499
5499
  }
5500
5500
 
5501
+ interface EffortParam {
5502
+ accepted?: boolean;
5503
+ levels?: string[];
5504
+ default?: string;
5505
+ }
5506
+
5501
5507
  interface EnvironmentPagePublic {
5502
5508
  page?: number;
5503
5509
  size?: number;
@@ -6198,6 +6204,10 @@ declare namespace FeedbackUpdate {
6198
6204
  }
6199
6205
  }
6200
6206
 
6207
+ interface FlagParam {
6208
+ accepted?: boolean;
6209
+ }
6210
+
6201
6211
  interface Function$1 {
6202
6212
  name?: string;
6203
6213
  description?: string;
@@ -6658,11 +6668,34 @@ interface Message {
6658
6668
  content: JsonNode;
6659
6669
  }
6660
6670
 
6671
+ interface ModelParams {
6672
+ temperature?: NumberParam;
6673
+ topP?: NumberParam;
6674
+ topK?: NumberParam;
6675
+ frequencyPenalty?: NumberParam;
6676
+ presencePenalty?: NumberParam;
6677
+ maxOutputTokens?: NumberParam;
6678
+ stop?: FlagParam;
6679
+ seed?: FlagParam;
6680
+ effort?: EffortParam;
6681
+ tools?: ToolsParam;
6682
+ samplingExclusive?: boolean;
6683
+ thinksByDefault?: boolean;
6684
+ routes?: Record<string, ModelParams>;
6685
+ }
6686
+
6661
6687
  interface MultipartUploadPart {
6662
6688
  eTag: string;
6663
6689
  partNumber: number;
6664
6690
  }
6665
6691
 
6692
+ interface NumberParam {
6693
+ accepted?: boolean;
6694
+ min?: number;
6695
+ max?: number;
6696
+ default?: number;
6697
+ }
6698
+
6666
6699
  interface NumericalFeedbackDefinitionCreate {
6667
6700
  details?: NumericalFeedbackDetailCreate;
6668
6701
  }
@@ -8058,6 +8091,17 @@ declare const ToolCallType: {
8058
8091
  };
8059
8092
  type ToolCallType = (typeof ToolCallType)[keyof typeof ToolCallType];
8060
8093
 
8094
+ interface ToolsParam {
8095
+ chatCompletions?: ToolsParamChatCompletions;
8096
+ forcedChoice?: FlagParam;
8097
+ }
8098
+
8099
+ declare const ToolsParamChatCompletions: {
8100
+ readonly EffortNoneOnly: "effortNoneOnly";
8101
+ readonly Refused: "refused";
8102
+ };
8103
+ type ToolsParamChatCompletions = (typeof ToolsParamChatCompletions)[keyof typeof ToolsParamChatCompletions];
8104
+
8061
8105
  declare const ToolType: {
8062
8106
  readonly Function: "function";
8063
8107
  };
@@ -11221,6 +11265,16 @@ declare class LlmModelsClient {
11221
11265
  */
11222
11266
  getLlmModels(requestOptions?: LlmModelsClient.RequestOptions): HttpResponsePromise<string>;
11223
11267
  private __getLlmModels;
11268
+ /**
11269
+ * Get the params each provider's unlisted models take, keyed by provider
11270
+ *
11271
+ * @param {LlmModelsClient.RequestOptions} requestOptions - Request-specific configuration.
11272
+ *
11273
+ * @example
11274
+ * await client.llmModels.getLlmModelProfiles()
11275
+ */
11276
+ getLlmModelProfiles(requestOptions?: LlmModelsClient.RequestOptions): HttpResponsePromise<Record<string, ModelParams>>;
11277
+ private __getLlmModelProfiles;
11224
11278
  }
11225
11279
 
11226
11280
  declare namespace LlmProviderKeyClient {
package/dist/index.d.ts CHANGED
@@ -5498,6 +5498,12 @@ interface Delta {
5498
5498
  functionCall?: FunctionCall;
5499
5499
  }
5500
5500
 
5501
+ interface EffortParam {
5502
+ accepted?: boolean;
5503
+ levels?: string[];
5504
+ default?: string;
5505
+ }
5506
+
5501
5507
  interface EnvironmentPagePublic {
5502
5508
  page?: number;
5503
5509
  size?: number;
@@ -6198,6 +6204,10 @@ declare namespace FeedbackUpdate {
6198
6204
  }
6199
6205
  }
6200
6206
 
6207
+ interface FlagParam {
6208
+ accepted?: boolean;
6209
+ }
6210
+
6201
6211
  interface Function$1 {
6202
6212
  name?: string;
6203
6213
  description?: string;
@@ -6658,11 +6668,34 @@ interface Message {
6658
6668
  content: JsonNode;
6659
6669
  }
6660
6670
 
6671
+ interface ModelParams {
6672
+ temperature?: NumberParam;
6673
+ topP?: NumberParam;
6674
+ topK?: NumberParam;
6675
+ frequencyPenalty?: NumberParam;
6676
+ presencePenalty?: NumberParam;
6677
+ maxOutputTokens?: NumberParam;
6678
+ stop?: FlagParam;
6679
+ seed?: FlagParam;
6680
+ effort?: EffortParam;
6681
+ tools?: ToolsParam;
6682
+ samplingExclusive?: boolean;
6683
+ thinksByDefault?: boolean;
6684
+ routes?: Record<string, ModelParams>;
6685
+ }
6686
+
6661
6687
  interface MultipartUploadPart {
6662
6688
  eTag: string;
6663
6689
  partNumber: number;
6664
6690
  }
6665
6691
 
6692
+ interface NumberParam {
6693
+ accepted?: boolean;
6694
+ min?: number;
6695
+ max?: number;
6696
+ default?: number;
6697
+ }
6698
+
6666
6699
  interface NumericalFeedbackDefinitionCreate {
6667
6700
  details?: NumericalFeedbackDetailCreate;
6668
6701
  }
@@ -8058,6 +8091,17 @@ declare const ToolCallType: {
8058
8091
  };
8059
8092
  type ToolCallType = (typeof ToolCallType)[keyof typeof ToolCallType];
8060
8093
 
8094
+ interface ToolsParam {
8095
+ chatCompletions?: ToolsParamChatCompletions;
8096
+ forcedChoice?: FlagParam;
8097
+ }
8098
+
8099
+ declare const ToolsParamChatCompletions: {
8100
+ readonly EffortNoneOnly: "effortNoneOnly";
8101
+ readonly Refused: "refused";
8102
+ };
8103
+ type ToolsParamChatCompletions = (typeof ToolsParamChatCompletions)[keyof typeof ToolsParamChatCompletions];
8104
+
8061
8105
  declare const ToolType: {
8062
8106
  readonly Function: "function";
8063
8107
  };
@@ -11221,6 +11265,16 @@ declare class LlmModelsClient {
11221
11265
  */
11222
11266
  getLlmModels(requestOptions?: LlmModelsClient.RequestOptions): HttpResponsePromise<string>;
11223
11267
  private __getLlmModels;
11268
+ /**
11269
+ * Get the params each provider's unlisted models take, keyed by provider
11270
+ *
11271
+ * @param {LlmModelsClient.RequestOptions} requestOptions - Request-specific configuration.
11272
+ *
11273
+ * @example
11274
+ * await client.llmModels.getLlmModelProfiles()
11275
+ */
11276
+ getLlmModelProfiles(requestOptions?: LlmModelsClient.RequestOptions): HttpResponsePromise<Record<string, ModelParams>>;
11277
+ private __getLlmModelProfiles;
11224
11278
  }
11225
11279
 
11226
11280
  declare namespace LlmProviderKeyClient {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {Ia}from'./chunk-A3M7EUJF.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-A3M7EUJF.js';Ia();
1
+ import {Ia}from'./chunk-HE5WC5AS.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-HE5WC5AS.js';Ia();
@@ -1 +1 @@
1
- import {Ca}from'./chunk-A3M7EUJF.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-A3M7EUJF.js';Ca();
1
+ import {Ca}from'./chunk-HE5WC5AS.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-HE5WC5AS.js';Ca();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opik",
3
3
  "description": "Opik TypeScript and JavaScript SDK",
4
- "version": "2.2.128",
4
+ "version": "2.2.129",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/comet-ml/opik.git",