netra-sdk 1.12.1 → 1.13.0
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/README.md +14 -1
- package/dist/index.cjs +1613 -830
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1614 -831
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
package/dist/index.d.cts
CHANGED
|
@@ -65,6 +65,7 @@ declare enum NetraInstruments {
|
|
|
65
65
|
VERTEX_AI = "vertexai",
|
|
66
66
|
TOGETHER = "together",
|
|
67
67
|
ANTHROPIC = "anthropic",
|
|
68
|
+
TYPESAFE = "typesafe",
|
|
68
69
|
LANGCHAIN = "langchain",
|
|
69
70
|
LANGGRAPH = "langgraph",
|
|
70
71
|
LLAMA_INDEX = "llama_index",
|
|
@@ -90,7 +91,7 @@ declare const DEFAULT_INSTRUMENTS: Set<NetraInstruments>;
|
|
|
90
91
|
declare class Config {
|
|
91
92
|
static readonly SDK_NAME = "netra";
|
|
92
93
|
static readonly LIBRARY_NAME = "netra";
|
|
93
|
-
static readonly LIBRARY_VERSION = "1.
|
|
94
|
+
static readonly LIBRARY_VERSION = "1.13.0";
|
|
94
95
|
static readonly TRIAL_BLOCK_DURATION_SECONDS = 900;
|
|
95
96
|
static readonly TRACE_ORIGIN_KEY = "netra.trace.origin";
|
|
96
97
|
static readonly TRACE_ORIGIN_EVALUATION = "evaluation";
|
|
@@ -117,6 +118,11 @@ declare class Config {
|
|
|
117
118
|
private _getOtlpEndpoint;
|
|
118
119
|
private _parseHeaders;
|
|
119
120
|
private _parseEnvHeaders;
|
|
121
|
+
/**
|
|
122
|
+
* Warn when a Netra endpoint has no API key. The key counts as present when
|
|
123
|
+
* it is set via NETRA_API_KEY or already passed as an `x-api-key` header
|
|
124
|
+
* (through `headers` or NETRA_HEADERS); header names match case-insensitively.
|
|
125
|
+
*/
|
|
120
126
|
private _validateApiKey;
|
|
121
127
|
private _setupAuthentication;
|
|
122
128
|
private _getBoolConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ declare enum NetraInstruments {
|
|
|
65
65
|
VERTEX_AI = "vertexai",
|
|
66
66
|
TOGETHER = "together",
|
|
67
67
|
ANTHROPIC = "anthropic",
|
|
68
|
+
TYPESAFE = "typesafe",
|
|
68
69
|
LANGCHAIN = "langchain",
|
|
69
70
|
LANGGRAPH = "langgraph",
|
|
70
71
|
LLAMA_INDEX = "llama_index",
|
|
@@ -90,7 +91,7 @@ declare const DEFAULT_INSTRUMENTS: Set<NetraInstruments>;
|
|
|
90
91
|
declare class Config {
|
|
91
92
|
static readonly SDK_NAME = "netra";
|
|
92
93
|
static readonly LIBRARY_NAME = "netra";
|
|
93
|
-
static readonly LIBRARY_VERSION = "1.
|
|
94
|
+
static readonly LIBRARY_VERSION = "1.13.0";
|
|
94
95
|
static readonly TRIAL_BLOCK_DURATION_SECONDS = 900;
|
|
95
96
|
static readonly TRACE_ORIGIN_KEY = "netra.trace.origin";
|
|
96
97
|
static readonly TRACE_ORIGIN_EVALUATION = "evaluation";
|
|
@@ -117,6 +118,11 @@ declare class Config {
|
|
|
117
118
|
private _getOtlpEndpoint;
|
|
118
119
|
private _parseHeaders;
|
|
119
120
|
private _parseEnvHeaders;
|
|
121
|
+
/**
|
|
122
|
+
* Warn when a Netra endpoint has no API key. The key counts as present when
|
|
123
|
+
* it is set via NETRA_API_KEY or already passed as an `x-api-key` header
|
|
124
|
+
* (through `headers` or NETRA_HEADERS); header names match case-insensitively.
|
|
125
|
+
*/
|
|
120
126
|
private _validateApiKey;
|
|
121
127
|
private _setupAuthentication;
|
|
122
128
|
private _getBoolConfig;
|