@keywordsai/keywordsai-sdk 0.0.1 → 0.0.3

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.
@@ -3,3 +3,4 @@ export * from "./clientTypes";
3
3
  export * from "./spanTypes";
4
4
  export * from "./baseTypes";
5
5
  export * from "./logTypes";
6
+ export * from "./tracingTypes";
@@ -3,4 +3,5 @@ export * from "./clientTypes";
3
3
  export * from "./spanTypes";
4
4
  export * from "./baseTypes";
5
5
  export * from "./logTypes";
6
+ export * from "./tracingTypes";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,59 @@
1
+ export interface TracingDecoratorConfig {
2
+ name: string;
3
+ version?: number;
4
+ associationProperties?: {
5
+ [name: string]: string;
6
+ };
7
+ traceContent?: boolean;
8
+ inputParameters?: unknown[];
9
+ suppressTracing?: boolean;
10
+ }
11
+ export interface TracingOptions {
12
+ /**
13
+ * The app name to be used when reporting traces. Optional.
14
+ * Defaults to the package name.
15
+ */
16
+ appName?: string;
17
+ /**
18
+ * The API Key for sending traces data. Optional.
19
+ * Defaults to the KEYWORDS_AI_API_KEY environment variable.
20
+ */
21
+ apiKey?: string;
22
+ /**
23
+ * The OTLP endpoint for sending traces data. Optional.
24
+ * Defaults to KEYWORDS_AI_BASE_URL environment variable or https://api.keywordsai.co/
25
+ */
26
+ baseUrl?: string;
27
+ /**
28
+ * Sends traces and spans without batching, for local development. Optional.
29
+ * Defaults to false.
30
+ */
31
+ disableBatch?: boolean;
32
+ /**
33
+ * Defines default log level for SDK and all instrumentations. Optional.
34
+ * Defaults to error.
35
+ */
36
+ logLevel?: "debug" | "info" | "warn" | "error";
37
+ /**
38
+ * Whether to log prompts, completions and embeddings on traces. Optional.
39
+ * Defaults to true.
40
+ */
41
+ traceContent?: boolean;
42
+ /**
43
+ * Whether to silence the initialization message. Optional.
44
+ * Defaults to false.
45
+ */
46
+ silenceInitializationMessage?: boolean;
47
+ /**
48
+ * Whether to enable tracing. Optional.
49
+ * Defaults to true.
50
+ */
51
+ tracingEnabled?: boolean;
52
+ /**
53
+ * Explicitly specify modules to instrument. Optional.
54
+ * This allows for manual instrumentation of specific modules.
55
+ */
56
+ instrumentModules?: {
57
+ [key: string]: any;
58
+ };
59
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tracingTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracingTypes.js","sourceRoot":"","sources":["../../src/types/tracingTypes.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keywordsai/keywordsai-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "KeywordsAI typing SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",