@exulu/backend 1.58.0 → 1.59.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/dist/catalog-EOKGOHTY.js +10 -0
- package/dist/{chunk-RVLZ5EL3.js → chunk-U36VJDZ7.js} +644 -66
- package/dist/chunk-YS27XOXI.js +62 -0
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-K4W6OJ3G.js → convert-exulu-tools-to-ai-sdk-tools-ZEECMX43.js} +1 -1
- package/dist/index.cjs +2606 -1236
- package/dist/index.d.cts +13 -14
- package/dist/index.d.ts +13 -14
- package/dist/index.js +1812 -1134
- package/ee/python/.litellm/config.yaml.example +64 -0
- package/ee/python/requirements.txt +15 -0
- package/ee/python/setup.sh +13 -0
- package/ee/workers.ts +15 -29
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -77,7 +77,8 @@ interface ExuluAgent {
|
|
|
77
77
|
id: string;
|
|
78
78
|
modelName?: string;
|
|
79
79
|
providerName?: string;
|
|
80
|
-
|
|
80
|
+
/** @deprecated Hydrated for read compatibility; the underlying DB column is gone. */
|
|
81
|
+
provider?: string;
|
|
81
82
|
source: "code" | "database";
|
|
82
83
|
memory?: string;
|
|
83
84
|
welcomemessage?: string;
|
|
@@ -85,7 +86,8 @@ interface ExuluAgent {
|
|
|
85
86
|
type: "agent";
|
|
86
87
|
name: string;
|
|
87
88
|
image?: string;
|
|
88
|
-
providerapikey
|
|
89
|
+
/** FK to models.id — replaces legacy provider + providerapikey columns. */
|
|
90
|
+
model?: string;
|
|
89
91
|
workflows?: ExuluProviderWorkflowConfig;
|
|
90
92
|
firewall?: {
|
|
91
93
|
enabled: boolean;
|
|
@@ -101,6 +103,7 @@ interface ExuluAgent {
|
|
|
101
103
|
description?: string;
|
|
102
104
|
instructions?: string;
|
|
103
105
|
feedback?: boolean;
|
|
106
|
+
suggestions_enabled?: boolean;
|
|
104
107
|
slug?: string;
|
|
105
108
|
tools?: {
|
|
106
109
|
id: string;
|
|
@@ -749,7 +752,6 @@ interface ExuluProviderParams {
|
|
|
749
752
|
audio: audioTypes$1[];
|
|
750
753
|
video: videoTypes$1[];
|
|
751
754
|
};
|
|
752
|
-
outputSchema?: z.ZodType;
|
|
753
755
|
rateLimit?: RateLimiterRule;
|
|
754
756
|
}
|
|
755
757
|
declare class ExuluProvider {
|
|
@@ -786,7 +788,7 @@ declare class ExuluProvider {
|
|
|
786
788
|
get providerName(): string;
|
|
787
789
|
get modelName(): string;
|
|
788
790
|
tool: (instance: string, providers: ExuluProvider[], contexts: ExuluContext[], rerankers: ExuluReranker[]) => Promise<ExuluTool | null>;
|
|
789
|
-
generateSync: ({ prompt, req, user, session, inputMessages, approvedTools, currentTools, currentSkills, allExuluTools, statistics, toolConfigs, providerapikey, contexts, rerankers, exuluConfig,
|
|
791
|
+
generateSync: ({ prompt, req, user, session, inputMessages, approvedTools, currentTools, currentSkills, allExuluTools, statistics, toolConfigs, providerapikey, languageModel, contexts, rerankers, exuluConfig, agent, instructions, maxStepCount, onTokenUsage, }: {
|
|
790
792
|
prompt?: string;
|
|
791
793
|
user?: User;
|
|
792
794
|
maxStepCount?: number;
|
|
@@ -801,11 +803,11 @@ declare class ExuluProvider {
|
|
|
801
803
|
statistics?: ExuluStatisticParams;
|
|
802
804
|
toolConfigs?: ExuluAgentToolConfig[];
|
|
803
805
|
providerapikey?: string | undefined;
|
|
806
|
+
languageModel: LanguageModel;
|
|
804
807
|
contexts?: ExuluContext[] | undefined;
|
|
805
808
|
rerankers?: ExuluReranker[] | undefined;
|
|
806
809
|
exuluConfig?: ExuluConfig;
|
|
807
810
|
instructions?: string;
|
|
808
|
-
outputSchema?: z.ZodTypeAny;
|
|
809
811
|
onTokenUsage?: (usage: {
|
|
810
812
|
inputTokens: number;
|
|
811
813
|
outputTokens: number;
|
|
@@ -819,7 +821,7 @@ declare class ExuluProvider {
|
|
|
819
821
|
* - Image files -> image parts (which ARE supported by Responses API)
|
|
820
822
|
*/
|
|
821
823
|
private processFilePartsInMessages;
|
|
822
|
-
generateStream: ({ user, session, agent, message, previousMessages, currentTools, currentSkills, approvedTools, allExuluTools, toolConfigs, providerapikey, contexts, rerankers, exuluConfig, instructions, req, maxStepCount }: {
|
|
824
|
+
generateStream: ({ user, session, agent, message, previousMessages, currentTools, currentSkills, approvedTools, allExuluTools, toolConfigs, providerapikey, languageModel, contexts, rerankers, exuluConfig, instructions, req, maxStepCount }: {
|
|
823
825
|
user?: User;
|
|
824
826
|
session?: string;
|
|
825
827
|
agent?: ExuluAgent;
|
|
@@ -832,6 +834,7 @@ declare class ExuluProvider {
|
|
|
832
834
|
allExuluTools?: ExuluTool[];
|
|
833
835
|
toolConfigs?: ExuluAgentToolConfig[];
|
|
834
836
|
providerapikey?: string | undefined;
|
|
837
|
+
languageModel: LanguageModel;
|
|
835
838
|
contexts?: ExuluContext[] | undefined;
|
|
836
839
|
rerankers?: ExuluReranker[] | undefined;
|
|
837
840
|
exuluConfig?: ExuluConfig;
|
|
@@ -1962,12 +1965,6 @@ declare class MarkdownChunker {
|
|
|
1962
1965
|
}[]>;
|
|
1963
1966
|
}
|
|
1964
1967
|
|
|
1965
|
-
/**
|
|
1966
|
-
* Python Environment Setup Utility
|
|
1967
|
-
*
|
|
1968
|
-
* Provides functions to set up and validate the Python environment for Exulu backend.
|
|
1969
|
-
* This can be called manually by package consumers or run automatically on install.
|
|
1970
|
-
*/
|
|
1971
1968
|
/**
|
|
1972
1969
|
* Options for Python environment setup
|
|
1973
1970
|
*/
|
|
@@ -2181,11 +2178,13 @@ declare const ExuluOtel: {
|
|
|
2181
2178
|
};
|
|
2182
2179
|
|
|
2183
2180
|
declare const ExuluDatabase: {
|
|
2184
|
-
init: ({ contexts }: {
|
|
2181
|
+
init: ({ contexts, litellm }: {
|
|
2185
2182
|
contexts: ExuluContext[];
|
|
2183
|
+
litellm?: boolean;
|
|
2186
2184
|
}) => Promise<void>;
|
|
2187
|
-
update: ({ contexts }: {
|
|
2185
|
+
update: ({ contexts, litellm }: {
|
|
2188
2186
|
contexts: ExuluContext[];
|
|
2187
|
+
litellm?: boolean;
|
|
2189
2188
|
}) => Promise<void>;
|
|
2190
2189
|
api: {
|
|
2191
2190
|
key: {
|
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,8 @@ interface ExuluAgent {
|
|
|
77
77
|
id: string;
|
|
78
78
|
modelName?: string;
|
|
79
79
|
providerName?: string;
|
|
80
|
-
|
|
80
|
+
/** @deprecated Hydrated for read compatibility; the underlying DB column is gone. */
|
|
81
|
+
provider?: string;
|
|
81
82
|
source: "code" | "database";
|
|
82
83
|
memory?: string;
|
|
83
84
|
welcomemessage?: string;
|
|
@@ -85,7 +86,8 @@ interface ExuluAgent {
|
|
|
85
86
|
type: "agent";
|
|
86
87
|
name: string;
|
|
87
88
|
image?: string;
|
|
88
|
-
providerapikey
|
|
89
|
+
/** FK to models.id — replaces legacy provider + providerapikey columns. */
|
|
90
|
+
model?: string;
|
|
89
91
|
workflows?: ExuluProviderWorkflowConfig;
|
|
90
92
|
firewall?: {
|
|
91
93
|
enabled: boolean;
|
|
@@ -101,6 +103,7 @@ interface ExuluAgent {
|
|
|
101
103
|
description?: string;
|
|
102
104
|
instructions?: string;
|
|
103
105
|
feedback?: boolean;
|
|
106
|
+
suggestions_enabled?: boolean;
|
|
104
107
|
slug?: string;
|
|
105
108
|
tools?: {
|
|
106
109
|
id: string;
|
|
@@ -749,7 +752,6 @@ interface ExuluProviderParams {
|
|
|
749
752
|
audio: audioTypes$1[];
|
|
750
753
|
video: videoTypes$1[];
|
|
751
754
|
};
|
|
752
|
-
outputSchema?: z.ZodType;
|
|
753
755
|
rateLimit?: RateLimiterRule;
|
|
754
756
|
}
|
|
755
757
|
declare class ExuluProvider {
|
|
@@ -786,7 +788,7 @@ declare class ExuluProvider {
|
|
|
786
788
|
get providerName(): string;
|
|
787
789
|
get modelName(): string;
|
|
788
790
|
tool: (instance: string, providers: ExuluProvider[], contexts: ExuluContext[], rerankers: ExuluReranker[]) => Promise<ExuluTool | null>;
|
|
789
|
-
generateSync: ({ prompt, req, user, session, inputMessages, approvedTools, currentTools, currentSkills, allExuluTools, statistics, toolConfigs, providerapikey, contexts, rerankers, exuluConfig,
|
|
791
|
+
generateSync: ({ prompt, req, user, session, inputMessages, approvedTools, currentTools, currentSkills, allExuluTools, statistics, toolConfigs, providerapikey, languageModel, contexts, rerankers, exuluConfig, agent, instructions, maxStepCount, onTokenUsage, }: {
|
|
790
792
|
prompt?: string;
|
|
791
793
|
user?: User;
|
|
792
794
|
maxStepCount?: number;
|
|
@@ -801,11 +803,11 @@ declare class ExuluProvider {
|
|
|
801
803
|
statistics?: ExuluStatisticParams;
|
|
802
804
|
toolConfigs?: ExuluAgentToolConfig[];
|
|
803
805
|
providerapikey?: string | undefined;
|
|
806
|
+
languageModel: LanguageModel;
|
|
804
807
|
contexts?: ExuluContext[] | undefined;
|
|
805
808
|
rerankers?: ExuluReranker[] | undefined;
|
|
806
809
|
exuluConfig?: ExuluConfig;
|
|
807
810
|
instructions?: string;
|
|
808
|
-
outputSchema?: z.ZodTypeAny;
|
|
809
811
|
onTokenUsage?: (usage: {
|
|
810
812
|
inputTokens: number;
|
|
811
813
|
outputTokens: number;
|
|
@@ -819,7 +821,7 @@ declare class ExuluProvider {
|
|
|
819
821
|
* - Image files -> image parts (which ARE supported by Responses API)
|
|
820
822
|
*/
|
|
821
823
|
private processFilePartsInMessages;
|
|
822
|
-
generateStream: ({ user, session, agent, message, previousMessages, currentTools, currentSkills, approvedTools, allExuluTools, toolConfigs, providerapikey, contexts, rerankers, exuluConfig, instructions, req, maxStepCount }: {
|
|
824
|
+
generateStream: ({ user, session, agent, message, previousMessages, currentTools, currentSkills, approvedTools, allExuluTools, toolConfigs, providerapikey, languageModel, contexts, rerankers, exuluConfig, instructions, req, maxStepCount }: {
|
|
823
825
|
user?: User;
|
|
824
826
|
session?: string;
|
|
825
827
|
agent?: ExuluAgent;
|
|
@@ -832,6 +834,7 @@ declare class ExuluProvider {
|
|
|
832
834
|
allExuluTools?: ExuluTool[];
|
|
833
835
|
toolConfigs?: ExuluAgentToolConfig[];
|
|
834
836
|
providerapikey?: string | undefined;
|
|
837
|
+
languageModel: LanguageModel;
|
|
835
838
|
contexts?: ExuluContext[] | undefined;
|
|
836
839
|
rerankers?: ExuluReranker[] | undefined;
|
|
837
840
|
exuluConfig?: ExuluConfig;
|
|
@@ -1962,12 +1965,6 @@ declare class MarkdownChunker {
|
|
|
1962
1965
|
}[]>;
|
|
1963
1966
|
}
|
|
1964
1967
|
|
|
1965
|
-
/**
|
|
1966
|
-
* Python Environment Setup Utility
|
|
1967
|
-
*
|
|
1968
|
-
* Provides functions to set up and validate the Python environment for Exulu backend.
|
|
1969
|
-
* This can be called manually by package consumers or run automatically on install.
|
|
1970
|
-
*/
|
|
1971
1968
|
/**
|
|
1972
1969
|
* Options for Python environment setup
|
|
1973
1970
|
*/
|
|
@@ -2181,11 +2178,13 @@ declare const ExuluOtel: {
|
|
|
2181
2178
|
};
|
|
2182
2179
|
|
|
2183
2180
|
declare const ExuluDatabase: {
|
|
2184
|
-
init: ({ contexts }: {
|
|
2181
|
+
init: ({ contexts, litellm }: {
|
|
2185
2182
|
contexts: ExuluContext[];
|
|
2183
|
+
litellm?: boolean;
|
|
2186
2184
|
}) => Promise<void>;
|
|
2187
|
-
update: ({ contexts }: {
|
|
2185
|
+
update: ({ contexts, litellm }: {
|
|
2188
2186
|
contexts: ExuluContext[];
|
|
2187
|
+
litellm?: boolean;
|
|
2189
2188
|
}) => Promise<void>;
|
|
2190
2189
|
api: {
|
|
2191
2190
|
key: {
|