@exulu/backend 5.18.0 → 5.20.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/{chunk-NBAFO66K.js → chunk-43QIPMLT.js} +13 -1
- package/dist/{chunk-JIZCKSJO.js → chunk-NJWNOXLJ.js} +2 -2
- package/dist/{chunk-7UDWQTFZ.js → chunk-Q4DFJFUI.js} +20 -28
- package/dist/{chunk-PNBVWUEA.js → chunk-XVUJ3WIC.js} +89 -73
- package/dist/cli/start-whisper.js +1 -1
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-6GKOSRRE.js → convert-exulu-tools-to-ai-sdk-tools-7BDMKCSR.js} +2 -2
- package/dist/{doc_processor-RJNG7GGH.js → doc_processor-VCFQZ5WI.js} +3 -3
- package/dist/index.cjs +761 -237
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +582 -105
- package/dist/{python-setup-UYSNAW5V.js → python-setup-LJSGTTXI.js} +1 -1
- package/ee/python/documents/processing/doc_processor.ts +26 -28
- package/ee/python/requirements.txt +18 -18
- package/package.json +28 -42
- package/scripts/postinstall.cjs +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -130,6 +130,8 @@ interface ExuluAgent {
|
|
|
130
130
|
max_tool_steps?: number | null;
|
|
131
131
|
/** Thinking budget of the answer model, forwarded as LiteLLM reasoning_effort; null = provider default. */
|
|
132
132
|
reasoning_effort?: string | null;
|
|
133
|
+
/** Answer language: null/"off", "auto" (the language of the user's message) or a locale such as "en". */
|
|
134
|
+
response_language?: string | null;
|
|
133
135
|
slug?: string;
|
|
134
136
|
tools?: {
|
|
135
137
|
id: string;
|
|
@@ -1064,6 +1066,17 @@ type ExuluOauthToolContext = {
|
|
|
1064
1066
|
declare const PUBLIC_TOOL_TYPES: readonly ["function", "web_search", "skill", "context"];
|
|
1065
1067
|
type PublicToolType = (typeof PUBLIC_TOOL_TYPES)[number];
|
|
1066
1068
|
type ToolType = PublicToolType | "agent" | "context";
|
|
1069
|
+
/**
|
|
1070
|
+
* Direct HTTP access to a tool, without an agent in between. An object rather
|
|
1071
|
+
* than a boolean so later options (rate limits, roles, …) have a place.
|
|
1072
|
+
*/
|
|
1073
|
+
type ExuluToolApiConfig = {
|
|
1074
|
+
/**
|
|
1075
|
+
* true registers `POST /tools/<id>`: any authenticated caller may run the
|
|
1076
|
+
* tool with a JSON body matching `inputSchema`. Default false.
|
|
1077
|
+
*/
|
|
1078
|
+
enabled: boolean;
|
|
1079
|
+
};
|
|
1067
1080
|
declare class ExuluTool {
|
|
1068
1081
|
id: string;
|
|
1069
1082
|
name: string;
|
|
@@ -1090,13 +1103,15 @@ declare class ExuluTool {
|
|
|
1090
1103
|
*/
|
|
1091
1104
|
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1092
1105
|
authentication?: ExuluAuthConfig;
|
|
1106
|
+
/** Always set; `{ enabled: false }` unless the tool opted in. See ExuluToolApiConfig. */
|
|
1107
|
+
api: ExuluToolApiConfig;
|
|
1093
1108
|
config: {
|
|
1094
1109
|
name: string;
|
|
1095
1110
|
description: string;
|
|
1096
1111
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1097
1112
|
default?: string | boolean | number | object;
|
|
1098
1113
|
}[];
|
|
1099
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1114
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, api, }: {
|
|
1100
1115
|
id: string;
|
|
1101
1116
|
name: string;
|
|
1102
1117
|
description: string;
|
|
@@ -1116,6 +1131,7 @@ declare class ExuluTool {
|
|
|
1116
1131
|
}) => Promise<boolean>;
|
|
1117
1132
|
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1118
1133
|
authentication?: ExuluAuthConfig;
|
|
1134
|
+
api?: Partial<ExuluToolApiConfig>;
|
|
1119
1135
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1120
1136
|
result?: string;
|
|
1121
1137
|
job?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -130,6 +130,8 @@ interface ExuluAgent {
|
|
|
130
130
|
max_tool_steps?: number | null;
|
|
131
131
|
/** Thinking budget of the answer model, forwarded as LiteLLM reasoning_effort; null = provider default. */
|
|
132
132
|
reasoning_effort?: string | null;
|
|
133
|
+
/** Answer language: null/"off", "auto" (the language of the user's message) or a locale such as "en". */
|
|
134
|
+
response_language?: string | null;
|
|
133
135
|
slug?: string;
|
|
134
136
|
tools?: {
|
|
135
137
|
id: string;
|
|
@@ -1064,6 +1066,17 @@ type ExuluOauthToolContext = {
|
|
|
1064
1066
|
declare const PUBLIC_TOOL_TYPES: readonly ["function", "web_search", "skill", "context"];
|
|
1065
1067
|
type PublicToolType = (typeof PUBLIC_TOOL_TYPES)[number];
|
|
1066
1068
|
type ToolType = PublicToolType | "agent" | "context";
|
|
1069
|
+
/**
|
|
1070
|
+
* Direct HTTP access to a tool, without an agent in between. An object rather
|
|
1071
|
+
* than a boolean so later options (rate limits, roles, …) have a place.
|
|
1072
|
+
*/
|
|
1073
|
+
type ExuluToolApiConfig = {
|
|
1074
|
+
/**
|
|
1075
|
+
* true registers `POST /tools/<id>`: any authenticated caller may run the
|
|
1076
|
+
* tool with a JSON body matching `inputSchema`. Default false.
|
|
1077
|
+
*/
|
|
1078
|
+
enabled: boolean;
|
|
1079
|
+
};
|
|
1067
1080
|
declare class ExuluTool {
|
|
1068
1081
|
id: string;
|
|
1069
1082
|
name: string;
|
|
@@ -1090,13 +1103,15 @@ declare class ExuluTool {
|
|
|
1090
1103
|
*/
|
|
1091
1104
|
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1092
1105
|
authentication?: ExuluAuthConfig;
|
|
1106
|
+
/** Always set; `{ enabled: false }` unless the tool opted in. See ExuluToolApiConfig. */
|
|
1107
|
+
api: ExuluToolApiConfig;
|
|
1093
1108
|
config: {
|
|
1094
1109
|
name: string;
|
|
1095
1110
|
description: string;
|
|
1096
1111
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1097
1112
|
default?: string | boolean | number | object;
|
|
1098
1113
|
}[];
|
|
1099
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1114
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, api, }: {
|
|
1100
1115
|
id: string;
|
|
1101
1116
|
name: string;
|
|
1102
1117
|
description: string;
|
|
@@ -1116,6 +1131,7 @@ declare class ExuluTool {
|
|
|
1116
1131
|
}) => Promise<boolean>;
|
|
1117
1132
|
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1118
1133
|
authentication?: ExuluAuthConfig;
|
|
1134
|
+
api?: Partial<ExuluToolApiConfig>;
|
|
1119
1135
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1120
1136
|
result?: string;
|
|
1121
1137
|
job?: string;
|