@exulu/backend 1.44.0 → 1.45.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.
- package/CHANGELOG.md +3 -3
- package/dist/index.cjs +7820 -6888
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +7824 -6892
- package/package.json +2 -1
- package/types/models/agent.ts +6 -0
package/dist/index.d.cts
CHANGED
|
@@ -96,7 +96,7 @@ declare class ExuluApp {
|
|
|
96
96
|
private _tools;
|
|
97
97
|
private _expressApp;
|
|
98
98
|
constructor();
|
|
99
|
-
create: ({ contexts, agents, config, tools, evals }: {
|
|
99
|
+
create: ({ contexts, agents, config, tools, evals, }: {
|
|
100
100
|
contexts?: Record<string, ExuluContext>;
|
|
101
101
|
config: ExuluConfig;
|
|
102
102
|
agents?: ExuluAgent[];
|
|
@@ -115,7 +115,7 @@ declare class ExuluApp {
|
|
|
115
115
|
get agents(): ExuluAgent[];
|
|
116
116
|
embeddings: {
|
|
117
117
|
generate: {
|
|
118
|
-
one: ({ context: contextId, item: itemId }: {
|
|
118
|
+
one: ({ context: contextId, item: itemId, }: {
|
|
119
119
|
context: string;
|
|
120
120
|
item: string;
|
|
121
121
|
}) => Promise<{
|
|
@@ -198,6 +198,12 @@ interface Agent {
|
|
|
198
198
|
name: string;
|
|
199
199
|
image?: string;
|
|
200
200
|
providerapikey?: string;
|
|
201
|
+
workflows?: {
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
queue?: {
|
|
204
|
+
name: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
201
207
|
firewall?: {
|
|
202
208
|
enabled: boolean;
|
|
203
209
|
scanners?: {
|
|
@@ -310,6 +316,7 @@ interface ExuluAgentParams {
|
|
|
310
316
|
maxContextLength?: number;
|
|
311
317
|
authenticationInformation?: string;
|
|
312
318
|
provider: string;
|
|
319
|
+
workflows?: ExuluAgentWorkflowConfig;
|
|
313
320
|
capabilities?: {
|
|
314
321
|
text: boolean;
|
|
315
322
|
images: imageTypes[];
|
|
@@ -387,6 +394,10 @@ declare class ExuluEval {
|
|
|
387
394
|
constructor({ id, name, description, execute, config, queue, llm }: ExuluEvalParams);
|
|
388
395
|
run(agent: Agent, backend: ExuluAgent, testCase: TestCase, messages: UIMessage[], config?: Record<string, any>): Promise<number>;
|
|
389
396
|
}
|
|
397
|
+
type ExuluAgentWorkflowConfig = {
|
|
398
|
+
enabled: boolean;
|
|
399
|
+
queue?: Promise<ExuluQueueConfig>;
|
|
400
|
+
};
|
|
390
401
|
declare class ExuluAgent {
|
|
391
402
|
id: string;
|
|
392
403
|
name: string;
|
|
@@ -397,6 +408,7 @@ declare class ExuluAgent {
|
|
|
397
408
|
streaming: boolean;
|
|
398
409
|
authenticationInformation?: string;
|
|
399
410
|
maxContextLength?: number;
|
|
411
|
+
workflows?: ExuluAgentWorkflowConfig;
|
|
400
412
|
queue?: ExuluQueueConfig;
|
|
401
413
|
rateLimit?: RateLimiterRule;
|
|
402
414
|
config?: ExuluAgentConfig | undefined;
|
|
@@ -412,7 +424,7 @@ declare class ExuluAgent {
|
|
|
412
424
|
audio: string[];
|
|
413
425
|
video: string[];
|
|
414
426
|
};
|
|
415
|
-
constructor({ id, name, description, config, rateLimit, capabilities, type, maxContextLength, provider, queue, authenticationInformation }: ExuluAgentParams);
|
|
427
|
+
constructor({ id, name, description, config, rateLimit, capabilities, type, maxContextLength, provider, queue, authenticationInformation, workflows }: ExuluAgentParams);
|
|
416
428
|
get providerName(): string;
|
|
417
429
|
get modelName(): string;
|
|
418
430
|
tool: (instance: string, agents: ExuluAgent[]) => Promise<ExuluTool | null>;
|
package/dist/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ declare class ExuluApp {
|
|
|
96
96
|
private _tools;
|
|
97
97
|
private _expressApp;
|
|
98
98
|
constructor();
|
|
99
|
-
create: ({ contexts, agents, config, tools, evals }: {
|
|
99
|
+
create: ({ contexts, agents, config, tools, evals, }: {
|
|
100
100
|
contexts?: Record<string, ExuluContext>;
|
|
101
101
|
config: ExuluConfig;
|
|
102
102
|
agents?: ExuluAgent[];
|
|
@@ -115,7 +115,7 @@ declare class ExuluApp {
|
|
|
115
115
|
get agents(): ExuluAgent[];
|
|
116
116
|
embeddings: {
|
|
117
117
|
generate: {
|
|
118
|
-
one: ({ context: contextId, item: itemId }: {
|
|
118
|
+
one: ({ context: contextId, item: itemId, }: {
|
|
119
119
|
context: string;
|
|
120
120
|
item: string;
|
|
121
121
|
}) => Promise<{
|
|
@@ -198,6 +198,12 @@ interface Agent {
|
|
|
198
198
|
name: string;
|
|
199
199
|
image?: string;
|
|
200
200
|
providerapikey?: string;
|
|
201
|
+
workflows?: {
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
queue?: {
|
|
204
|
+
name: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
201
207
|
firewall?: {
|
|
202
208
|
enabled: boolean;
|
|
203
209
|
scanners?: {
|
|
@@ -310,6 +316,7 @@ interface ExuluAgentParams {
|
|
|
310
316
|
maxContextLength?: number;
|
|
311
317
|
authenticationInformation?: string;
|
|
312
318
|
provider: string;
|
|
319
|
+
workflows?: ExuluAgentWorkflowConfig;
|
|
313
320
|
capabilities?: {
|
|
314
321
|
text: boolean;
|
|
315
322
|
images: imageTypes[];
|
|
@@ -387,6 +394,10 @@ declare class ExuluEval {
|
|
|
387
394
|
constructor({ id, name, description, execute, config, queue, llm }: ExuluEvalParams);
|
|
388
395
|
run(agent: Agent, backend: ExuluAgent, testCase: TestCase, messages: UIMessage[], config?: Record<string, any>): Promise<number>;
|
|
389
396
|
}
|
|
397
|
+
type ExuluAgentWorkflowConfig = {
|
|
398
|
+
enabled: boolean;
|
|
399
|
+
queue?: Promise<ExuluQueueConfig>;
|
|
400
|
+
};
|
|
390
401
|
declare class ExuluAgent {
|
|
391
402
|
id: string;
|
|
392
403
|
name: string;
|
|
@@ -397,6 +408,7 @@ declare class ExuluAgent {
|
|
|
397
408
|
streaming: boolean;
|
|
398
409
|
authenticationInformation?: string;
|
|
399
410
|
maxContextLength?: number;
|
|
411
|
+
workflows?: ExuluAgentWorkflowConfig;
|
|
400
412
|
queue?: ExuluQueueConfig;
|
|
401
413
|
rateLimit?: RateLimiterRule;
|
|
402
414
|
config?: ExuluAgentConfig | undefined;
|
|
@@ -412,7 +424,7 @@ declare class ExuluAgent {
|
|
|
412
424
|
audio: string[];
|
|
413
425
|
video: string[];
|
|
414
426
|
};
|
|
415
|
-
constructor({ id, name, description, config, rateLimit, capabilities, type, maxContextLength, provider, queue, authenticationInformation }: ExuluAgentParams);
|
|
427
|
+
constructor({ id, name, description, config, rateLimit, capabilities, type, maxContextLength, provider, queue, authenticationInformation, workflows }: ExuluAgentParams);
|
|
416
428
|
get providerName(): string;
|
|
417
429
|
get modelName(): string;
|
|
418
430
|
tool: (instance: string, agents: ExuluAgent[]) => Promise<ExuluTool | null>;
|