@keywordsai/keywordsai-sdk 0.0.1

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.
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Options for initializing the KeywordsAI SDK.
3
+ */
4
+ export interface KeywordsAIOptions {
5
+ /**
6
+ * The app name to be used when reporting traces.
7
+ */
8
+ appName?: string;
9
+ /**
10
+ * Sends traces and spans without batching, for local development.
11
+ * Defaults to false.
12
+ */
13
+ disableBatch?: boolean;
14
+ /**
15
+ * The API endpoint for sending data.
16
+ */
17
+ baseUrl?: string;
18
+ /**
19
+ * The API Key for authentication.
20
+ */
21
+ apiKey: string;
22
+ /**
23
+ * Explicitly specify modules to instrument.
24
+ */
25
+ instrumentModules?: {
26
+ openAI?: any;
27
+ anthropic?: any;
28
+ azureOpenAI?: any;
29
+ cohere?: any;
30
+ bedrock?: any;
31
+ google_vertexai?: any;
32
+ google_aiplatform?: any;
33
+ pinecone?: any;
34
+ langchain?: {
35
+ chainsModule?: any;
36
+ agentsModule?: any;
37
+ toolsModule?: any;
38
+ runnablesModule?: any;
39
+ vectorStoreModule?: any;
40
+ };
41
+ llamaIndex?: any;
42
+ chromadb?: any;
43
+ qdrant?: any;
44
+ };
45
+ }
46
+ /**
47
+ * The main client options for KeywordsAI.
48
+ */
49
+ export interface KeywordsAIClientOptions {
50
+ apiKey: string;
51
+ appName: string;
52
+ baseUrl?: string;
53
+ }
54
+ /**
55
+ * Base class for all KeywordsAI errors.
56
+ */
57
+ export declare class KeywordsAIError extends Error {
58
+ constructor(message: string);
59
+ }
60
+ export declare class InitializationError extends KeywordsAIError {
61
+ constructor(message?: string);
62
+ }
63
+ export declare class NotInitializedError extends KeywordsAIError {
64
+ constructor();
65
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Base class for all KeywordsAI errors.
3
+ */
4
+ export class KeywordsAIError extends Error {
5
+ constructor(message) {
6
+ super(message);
7
+ this.name = 'KeywordsAIError';
8
+ }
9
+ }
10
+ export class InitializationError extends KeywordsAIError {
11
+ constructor(message) {
12
+ super(message || 'Failed to initialize KeywordsAI');
13
+ this.name = 'InitializationError';
14
+ }
15
+ }
16
+ export class NotInitializedError extends KeywordsAIError {
17
+ constructor() {
18
+ super('KeywordsAI has not been initialized');
19
+ this.name = 'NotInitializedError';
20
+ }
21
+ }
22
+ //# sourceMappingURL=clientTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientTypes.js","sourceRoot":"","sources":["../../src/types/clientTypes.ts"],"names":[],"mappings":"AA8DA;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACtC,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IACpD,YAAY,OAAgB;QACxB,KAAK,CAAC,OAAO,IAAI,iCAAiC,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CACJ;AAED,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IACpD;QACI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACtC,CAAC;CACJ"}
@@ -0,0 +1,3 @@
1
+ export interface DecoratorOptions {
2
+ }
3
+ export type DecoratorFunction = (target: any, propertyKey?: string, descriptor?: PropertyDescriptor) => any;
@@ -0,0 +1,4 @@
1
+ // Decorator types for KeywordsAI SDK
2
+ // This file contains type definitions for decorators used in the SDK
3
+ export {};
4
+ //# sourceMappingURL=decoratorTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decoratorTypes.js","sourceRoot":"","sources":["../../src/types/decoratorTypes.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,qEAAqE"}
@@ -0,0 +1,5 @@
1
+ export * from "./decoratorTypes";
2
+ export * from "./clientTypes";
3
+ export * from "./spanTypes";
4
+ export * from "./baseTypes";
5
+ export * from "./logTypes";
@@ -0,0 +1,6 @@
1
+ export * from "./decoratorTypes";
2
+ export * from "./clientTypes";
3
+ export * from "./spanTypes";
4
+ export * from "./baseTypes";
5
+ export * from "./logTypes";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}