openloops 0.1.8 → 0.1.9
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/agent-loop-C41Y1CGp.d.mts +60 -0
- package/dist/agent-loop-ZH4GRi4A.d.ts +60 -0
- package/dist/base.use-case-8K6_Ods0.d.mts +14 -0
- package/dist/base.use-case-ChEb3nh6.d.ts +14 -0
- package/dist/chunk-6PCVBY5G.mjs +1 -0
- package/dist/chunk-7WJ3XXSP.mjs +7 -0
- package/dist/chunk-CCRMOWMO.mjs +1 -0
- package/dist/chunk-ISOEJA2L.mjs +1 -0
- package/dist/chunk-XXB52O7H.mjs +1 -0
- package/dist/{services/app/core/current-session.d.ts → current-session-DC-SF7rl.d.mts} +5 -4
- package/dist/current-session-DC-SF7rl.d.ts +130 -0
- package/dist/current-user-4BppBUBP.d.mts +264 -0
- package/dist/current-user-4BppBUBP.d.ts +264 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +1 -7
- package/dist/services/agent/core/index.d.mts +122 -0
- package/dist/services/agent/core/index.d.ts +122 -3
- package/dist/services/agent/core/index.js +7 -0
- package/dist/services/agent/core/index.mjs +1 -0
- package/dist/services/agent/loops/index.d.mts +116 -0
- package/dist/services/agent/loops/index.d.ts +116 -2
- package/dist/services/agent/loops/index.js +10 -0
- package/dist/services/agent/loops/index.mjs +4 -0
- package/dist/services/agent/skills/index.d.mts +14 -0
- package/dist/services/agent/skills/index.d.ts +14 -2
- package/dist/services/agent/skills/index.js +7 -0
- package/dist/services/agent/skills/index.mjs +1 -0
- package/dist/services/agent/tools/index.d.mts +12 -0
- package/dist/services/agent/tools/index.d.ts +12 -2
- package/dist/services/agent/tools/index.js +7 -0
- package/dist/services/agent/tools/index.mjs +1 -0
- package/dist/services/app/core/index.d.mts +60 -0
- package/dist/services/app/core/index.d.ts +60 -3
- package/dist/services/app/core/index.js +7 -0
- package/dist/services/app/core/index.mjs +1 -0
- package/dist/skill-CtYQbG6-.d.ts +308 -0
- package/dist/skill-DXNkK5FG.d.mts +308 -0
- package/dist/tool-BaG2a8Np.d.mts +42 -0
- package/dist/{services/agent/tools/tool.d.ts → tool-DMR_ZdjP.d.ts} +9 -7
- package/package.json +2 -2
- package/dist/common/clients/index.d.ts +0 -3
- package/dist/common/clients/llm-client.d.ts +0 -30
- package/dist/common/clients/sentry-client.d.ts +0 -10
- package/dist/common/clients/serper-client.d.ts +0 -66
- package/dist/common/core/base.app.d.ts +0 -12
- package/dist/common/core/base.entity.d.ts +0 -55
- package/dist/common/core/base.use-case.d.ts +0 -15
- package/dist/common/core/index.d.ts +0 -1
- package/dist/common/core/utils/delete-empty-fields.d.ts +0 -1
- package/dist/common/core/utils/flatten-object.d.ts +0 -1
- package/dist/common/core/utils/index.d.ts +0 -3
- package/dist/common/core/utils/is-plain-object.d.ts +0 -1
- package/dist/common/decorators/admin-only/admin-only.d.ts +0 -2
- package/dist/common/decorators/admin-only/index.d.ts +0 -1
- package/dist/common/decorators/index.d.ts +0 -3
- package/dist/common/decorators/mask-in-logs/index.d.ts +0 -1
- package/dist/common/decorators/mask-in-logs/mask-in-logs.d.ts +0 -2
- package/dist/common/decorators/owner-only/index.d.ts +0 -1
- package/dist/common/decorators/owner-only/owner-only.d.ts +0 -2
- package/dist/common/error/http-error.d.ts +0 -11
- package/dist/common/error/index.d.ts +0 -2
- package/dist/common/error/reportError.d.ts +0 -2
- package/dist/common/helpers/extract-json-from-text.d.ts +0 -1
- package/dist/common/helpers/index.d.ts +0 -2
- package/dist/common/helpers/sanitize-string.d.ts +0 -1
- package/dist/common/logger/index.d.ts +0 -1
- package/dist/common/logger/pino.d.ts +0 -12
- package/dist/common/repositories/index.d.ts +0 -2
- package/dist/common/repositories/mongo-db.client.d.ts +0 -11
- package/dist/common/repositories/mongo-db.repository.d.ts +0 -87
- package/dist/common/utils/secret-manager.d.ts +0 -15
- package/dist/services/agent/core/agent-loop.d.ts +0 -38
- package/dist/services/agent/core/agent-state.d.ts +0 -42
- package/dist/services/agent/core/agent.d.ts +0 -70
- package/dist/services/agent/loops/plan-execute/index.d.ts +0 -1
- package/dist/services/agent/loops/plan-execute/plan-execute-loop.d.ts +0 -27
- package/dist/services/agent/loops/shared/index.d.ts +0 -1
- package/dist/services/agent/loops/shared/skills/action-planner.d.ts +0 -35
- package/dist/services/agent/loops/shared/skills/confirmation-gate.d.ts +0 -9
- package/dist/services/agent/loops/shared/skills/fast-responder.d.ts +0 -9
- package/dist/services/agent/loops/shared/skills/final-responder.d.ts +0 -7
- package/dist/services/agent/loops/shared/skills/index.d.ts +0 -6
- package/dist/services/agent/loops/shared/skills/state-observer.d.ts +0 -10
- package/dist/services/agent/loops/shared/skills/strategy-engine.d.ts +0 -15
- package/dist/services/agent/modules/chats/entities/agent-action.entity.d.ts +0 -58
- package/dist/services/agent/modules/chats/entities/agent-task.entity.d.ts +0 -59
- package/dist/services/agent/modules/chats/entities/chat-context.entity.d.ts +0 -39
- package/dist/services/agent/modules/chats/entities/chat-message.entity.d.ts +0 -16
- package/dist/services/agent/modules/chats/entities/chat-settings.entity.d.ts +0 -17
- package/dist/services/agent/modules/chats/entities/chat.entity.d.ts +0 -50
- package/dist/services/agent/modules/chats/entities/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/create-chat/create-chat.use-case.d.ts +0 -14
- package/dist/services/agent/modules/chats/lambdas/create-chat/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/delete-chat/delete-chat.use-case.d.ts +0 -15
- package/dist/services/agent/modules/chats/lambdas/delete-chat/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/get-chat-by-id.use-case.d.ts +0 -14
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/interrupt-execution.use-case.d.ts +0 -14
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/list-chats-by-props.use-case.d.ts +0 -16
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/list-chats-by-user.use-case.d.ts +0 -16
- package/dist/services/agent/modules/chats/lambdas/update-chat/index.d.ts +0 -1
- package/dist/services/agent/modules/chats/lambdas/update-chat/update-chat.use-case.d.ts +0 -15
- package/dist/services/agent/modules/chats/repositories/chat.repository.d.ts +0 -10
- package/dist/services/agent/modules/chats/repositories/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/entities/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/entities/llmcall.entity.d.ts +0 -23
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/create-llmcall.use-case.d.ts +0 -14
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/delete-llmcall.use-case.d.ts +0 -15
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/get-llm-usage.use-case.d.ts +0 -21
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/get-llmcall-by-id.use-case.d.ts +0 -14
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/list-llmcalls-by-props.use-case.d.ts +0 -16
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/update-llmcall.use-case.d.ts +0 -15
- package/dist/services/agent/modules/llmcalls/repositories/index.d.ts +0 -1
- package/dist/services/agent/modules/llmcalls/repositories/llmcall.repository.d.ts +0 -10
- package/dist/services/agent/modules/mcp-servers/entities/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/entities/mcpserver.entity.d.ts +0 -23
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/create-mcpserver.use-case.d.ts +0 -14
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/delete-mcpserver.use-case.d.ts +0 -15
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/get-mcpserver-by-id.use-case.d.ts +0 -14
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/list-mcpservers-by-user.use-case.d.ts +0 -16
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/update-mcpserver.use-case.d.ts +0 -15
- package/dist/services/agent/modules/mcp-servers/repositories/index.d.ts +0 -1
- package/dist/services/agent/modules/mcp-servers/repositories/mcpserver.repository.d.ts +0 -10
- package/dist/services/agent/skills/shared/index.d.ts +0 -1
- package/dist/services/agent/skills/shared/shared-rules.d.ts +0 -4
- package/dist/services/agent/skills/skill-runner.d.ts +0 -31
- package/dist/services/agent/skills/skill.d.ts +0 -33
- package/dist/services/agent/tools/core/call-ai/call-ai.skill.d.ts +0 -6
- package/dist/services/agent/tools/core/call-ai/call-ai.tool.d.ts +0 -2
- package/dist/services/agent/tools/core/call-ai/index.d.ts +0 -1
- package/dist/services/agent/tools/core/index.d.ts +0 -2
- package/dist/services/agent/tools/core/web-search/index.d.ts +0 -1
- package/dist/services/agent/tools/core/web-search/web-search.tool.d.ts +0 -2
- package/dist/services/agent/utils/rank-tools-by-keywords.d.ts +0 -12
- package/dist/services/app/core/app.d.ts +0 -14
- package/dist/services/app/core/current-user.d.ts +0 -16
- package/dist/services/app/modules/authentication/lambdas/login/index.d.ts +0 -1
- package/dist/services/app/modules/authentication/lambdas/login/login.use-case.d.ts +0 -21
- package/dist/services/app/modules/users/entities/index.d.ts +0 -1
- package/dist/services/app/modules/users/entities/user-acquisition.d.ts +0 -12
- package/dist/services/app/modules/users/entities/user-country.d.ts +0 -11
- package/dist/services/app/modules/users/entities/user-currency.d.ts +0 -13
- package/dist/services/app/modules/users/entities/user-email.value-object.d.ts +0 -6
- package/dist/services/app/modules/users/entities/user-language.d.ts +0 -11
- package/dist/services/app/modules/users/entities/user-marketing.d.ts +0 -9
- package/dist/services/app/modules/users/entities/user-notification-preferences.d.ts +0 -11
- package/dist/services/app/modules/users/entities/user-password.value-object.d.ts +0 -8
- package/dist/services/app/modules/users/entities/user-permissions.d.ts +0 -21
- package/dist/services/app/modules/users/entities/user-preferences.d.ts +0 -25
- package/dist/services/app/modules/users/entities/user-report-preferences.d.ts +0 -16
- package/dist/services/app/modules/users/entities/user-report-schedule.d.ts +0 -11
- package/dist/services/app/modules/users/entities/user-timezone.d.ts +0 -11
- package/dist/services/app/modules/users/entities/user.entity.d.ts +0 -41
- package/dist/services/app/modules/users/lambdas/create-user/create-user.use-case.d.ts +0 -14
- package/dist/services/app/modules/users/lambdas/create-user/index.d.ts +0 -1
- package/dist/services/app/modules/users/lambdas/delete-user/delete-user.use-case.d.ts +0 -16
- package/dist/services/app/modules/users/lambdas/delete-user/index.d.ts +0 -1
- package/dist/services/app/modules/users/lambdas/get-user-by-id/get-user-by-id.use-case.d.ts +0 -14
- package/dist/services/app/modules/users/lambdas/get-user-by-id/index.d.ts +0 -1
- package/dist/services/app/modules/users/lambdas/list-users-by-props/index.d.ts +0 -1
- package/dist/services/app/modules/users/lambdas/list-users-by-props/list-users-by-props.use-case.d.ts +0 -16
- package/dist/services/app/modules/users/lambdas/update-user/index.d.ts +0 -1
- package/dist/services/app/modules/users/lambdas/update-user/update-user.use-case.d.ts +0 -15
- package/dist/services/app/modules/users/repositories/index.d.ts +0 -1
- package/dist/services/app/modules/users/repositories/user.repository.d.ts +0 -12
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Skill } from '../../../skills/skill';
|
|
2
|
-
type ResponseSchema = {
|
|
3
|
-
decision: 'CONFIRMED' | 'DECLINED' | 'UNCLEAR';
|
|
4
|
-
reasoning: string;
|
|
5
|
-
acknowledgement: string;
|
|
6
|
-
clarification_prompt: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const confirmationGate: Skill<ResponseSchema>;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Skill } from '../../../skills/skill';
|
|
2
|
-
type StateObserverResponseSchema = {
|
|
3
|
-
action: 'CONTINUE' | 'REPLAN' | 'ASK_USER' | 'FINISH';
|
|
4
|
-
feedback_for_planner: string;
|
|
5
|
-
user_prompt: string;
|
|
6
|
-
detected_language: string;
|
|
7
|
-
reasoning: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const stateObserver: Skill<StateObserverResponseSchema>;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Skill } from '../../../skills/skill';
|
|
2
|
-
type ResponseSchema = {
|
|
3
|
-
goal: string;
|
|
4
|
-
hypothesis: string;
|
|
5
|
-
required_capabilities: string[];
|
|
6
|
-
tool_keywords: Array<{
|
|
7
|
-
keyword: string;
|
|
8
|
-
weight: number;
|
|
9
|
-
}>;
|
|
10
|
-
detected_language: string;
|
|
11
|
-
reasoning: string;
|
|
12
|
-
is_continuation: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const strategyEngine: Skill<ResponseSchema>;
|
|
15
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
-
import { Tool, BaseParams } from '@services/agent/tools/tool';
|
|
3
|
-
export type ActionStatus = 'pending' | 'running' | 'completed' | 'failed';
|
|
4
|
-
export interface ActionErrorProps {
|
|
5
|
-
message: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export interface AgentActionProps extends BaseEntityProps {
|
|
9
|
-
name?: string;
|
|
10
|
-
stepId?: string;
|
|
11
|
-
args?: Record<string, any>;
|
|
12
|
-
dependsOn?: string[];
|
|
13
|
-
status?: ActionStatus;
|
|
14
|
-
output?: any;
|
|
15
|
-
error?: ActionErrorProps;
|
|
16
|
-
reasoning?: string;
|
|
17
|
-
retries?: number;
|
|
18
|
-
author?: string;
|
|
19
|
-
startedAt?: Date;
|
|
20
|
-
completedAt?: Date;
|
|
21
|
-
}
|
|
22
|
-
export declare class AgentAction extends BaseEntity {
|
|
23
|
-
private readonly props;
|
|
24
|
-
name?: string | undefined;
|
|
25
|
-
stepId?: string | undefined;
|
|
26
|
-
args?: Record<string, any> | undefined;
|
|
27
|
-
dependsOn?: string[] | undefined;
|
|
28
|
-
status?: ActionStatus | undefined;
|
|
29
|
-
output?: any | undefined;
|
|
30
|
-
error?: ActionErrorProps | undefined;
|
|
31
|
-
reasoning?: string | undefined;
|
|
32
|
-
retries?: number | undefined;
|
|
33
|
-
author?: string | undefined;
|
|
34
|
-
startedAt?: Date | undefined;
|
|
35
|
-
completedAt?: Date | undefined;
|
|
36
|
-
static factory(action: AgentActionProps): AgentAction;
|
|
37
|
-
static fromJSON(props: AgentActionProps): AgentAction;
|
|
38
|
-
constructor(props: AgentActionProps, name?: string | undefined, stepId?: string | undefined, args?: Record<string, any> | undefined, dependsOn?: string[] | undefined, status?: ActionStatus | undefined, output?: any | undefined, error?: ActionErrorProps | undefined, reasoning?: string | undefined, retries?: number | undefined, author?: string | undefined, startedAt?: Date | undefined, completedAt?: Date | undefined);
|
|
39
|
-
toJSON(): AgentActionProps;
|
|
40
|
-
get id(): string;
|
|
41
|
-
get isReady(): boolean;
|
|
42
|
-
get isTerminal(): boolean;
|
|
43
|
-
dependenciesSatisfiedBy(completedRefs: Set<string>): boolean;
|
|
44
|
-
markRunning(): void;
|
|
45
|
-
markCompleted(output: any): void;
|
|
46
|
-
markFailed(error: ActionErrorProps): void;
|
|
47
|
-
incrementRetries(): number;
|
|
48
|
-
resetForRetry(): void;
|
|
49
|
-
runTool(tool: Tool | undefined, args: Record<string, any>, baseParams: BaseParams): Promise<this>;
|
|
50
|
-
}
|
|
51
|
-
export interface ActionDescriptor {
|
|
52
|
-
name: string;
|
|
53
|
-
stepId?: string;
|
|
54
|
-
args?: Record<string, any>;
|
|
55
|
-
dependsOn?: string[];
|
|
56
|
-
reasoning?: string;
|
|
57
|
-
author?: string;
|
|
58
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
-
import { AgentAction, AgentActionProps, ActionDescriptor } from './agent-action.entity';
|
|
3
|
-
import { ChatContext } from './chat-context.entity';
|
|
4
|
-
import { Tool, BaseParams } from '@services/agent/tools/tool';
|
|
5
|
-
export declare enum TaskStatus {
|
|
6
|
-
PENDING = "pending",
|
|
7
|
-
IN_PROGRESS = "in_progress",
|
|
8
|
-
AWAITING_USER = "awaiting_user",
|
|
9
|
-
COMPLETED = "completed",
|
|
10
|
-
PAUSED = "paused",
|
|
11
|
-
ABANDONED = "abandoned",
|
|
12
|
-
CANCELLED = "cancelled",
|
|
13
|
-
FAILED = "failed"
|
|
14
|
-
}
|
|
15
|
-
export interface AgentTaskProps extends BaseEntityProps {
|
|
16
|
-
status?: TaskStatus;
|
|
17
|
-
goal?: string;
|
|
18
|
-
nextNode?: string;
|
|
19
|
-
threadId?: string;
|
|
20
|
-
previousTaskId?: string;
|
|
21
|
-
summary?: string;
|
|
22
|
-
loopName?: string;
|
|
23
|
-
actions?: AgentActionProps[];
|
|
24
|
-
}
|
|
25
|
-
export declare class AgentTask extends BaseEntity {
|
|
26
|
-
private readonly props;
|
|
27
|
-
status?: TaskStatus | undefined;
|
|
28
|
-
goal?: string | undefined;
|
|
29
|
-
nextNode?: string | undefined;
|
|
30
|
-
threadId?: string | undefined;
|
|
31
|
-
previousTaskId?: string | undefined;
|
|
32
|
-
summary?: string | undefined;
|
|
33
|
-
loopName?: string | undefined;
|
|
34
|
-
actions: AgentAction[];
|
|
35
|
-
static factory(task: AgentTaskProps): AgentTask;
|
|
36
|
-
static fromJSON(props: AgentTaskProps): AgentTask;
|
|
37
|
-
constructor(props: AgentTaskProps, status?: TaskStatus | undefined, goal?: string | undefined, nextNode?: string | undefined, threadId?: string | undefined, previousTaskId?: string | undefined, summary?: string | undefined, loopName?: string | undefined, actions?: AgentAction[]);
|
|
38
|
-
toJSON(): AgentTaskProps;
|
|
39
|
-
get id(): string;
|
|
40
|
-
addAction(descriptor: ActionDescriptor): AgentAction;
|
|
41
|
-
getAction(ref: string): AgentAction | undefined;
|
|
42
|
-
findLastByName(name: string): AgentAction | undefined;
|
|
43
|
-
get readyActions(): AgentAction[];
|
|
44
|
-
get failedActions(): AgentAction[];
|
|
45
|
-
get lastExecutedAction(): AgentAction | undefined;
|
|
46
|
-
setNextNode(node?: string): void;
|
|
47
|
-
complete(summary?: string): void;
|
|
48
|
-
fail(): void;
|
|
49
|
-
cancel(): void;
|
|
50
|
-
pause(): void;
|
|
51
|
-
reopen(): void;
|
|
52
|
-
resolveArgs(action: AgentAction, context: ChatContext): any;
|
|
53
|
-
private resolveValue;
|
|
54
|
-
private findActionByRef;
|
|
55
|
-
private readContextValue;
|
|
56
|
-
runTool(descriptor: ActionDescriptor, tool: Tool | undefined, context: ChatContext, baseParams: BaseParams): Promise<AgentAction>;
|
|
57
|
-
runReadyAction(actionRef: string, tool: Tool | undefined, context: ChatContext, baseParams: BaseParams): Promise<AgentAction>;
|
|
58
|
-
private executeToolAction;
|
|
59
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
type ContextRecordType = 'message' | 'file' | 'entity' | 'tool_output' | 'artifact' | 'summary';
|
|
2
|
-
export interface ContextRecord {
|
|
3
|
-
taskId: string;
|
|
4
|
-
meta: {
|
|
5
|
-
name: string;
|
|
6
|
-
type: ContextRecordType;
|
|
7
|
-
shortDescription: string;
|
|
8
|
-
};
|
|
9
|
-
content: any;
|
|
10
|
-
}
|
|
11
|
-
export interface ChatContextProps {
|
|
12
|
-
items?: ContextRecord[];
|
|
13
|
-
}
|
|
14
|
-
export declare class ChatContext {
|
|
15
|
-
private readonly props;
|
|
16
|
-
items?: ContextRecord[] | undefined;
|
|
17
|
-
private readonly MEMORY_CONTEXT_MAX_CHARS;
|
|
18
|
-
static fromJSON(props: ChatContextProps): ChatContext;
|
|
19
|
-
constructor(props: ChatContextProps, items?: ContextRecord[] | undefined);
|
|
20
|
-
get length(): number;
|
|
21
|
-
get allMeta(): {
|
|
22
|
-
name: string;
|
|
23
|
-
type: ContextRecordType;
|
|
24
|
-
shortDescription: string;
|
|
25
|
-
}[] | undefined;
|
|
26
|
-
toJSON(): ChatContextProps;
|
|
27
|
-
addContext(contextRecord: any): void;
|
|
28
|
-
selectContext(filters: {
|
|
29
|
-
taskId: string;
|
|
30
|
-
name: string;
|
|
31
|
-
}): ContextRecord[] | undefined;
|
|
32
|
-
lastContext(filters: {
|
|
33
|
-
taskId: string;
|
|
34
|
-
name: string;
|
|
35
|
-
}): ContextRecord | undefined;
|
|
36
|
-
compress(): void;
|
|
37
|
-
pruneContext(): void;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
-
type Roles = 'user' | 'assistant';
|
|
3
|
-
export interface ChatMessageProps extends BaseEntityProps {
|
|
4
|
-
role?: Roles;
|
|
5
|
-
content?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class ChatMessage extends BaseEntity {
|
|
8
|
-
private readonly props;
|
|
9
|
-
role?: Roles | undefined;
|
|
10
|
-
content?: string | undefined;
|
|
11
|
-
static factory(message: ChatMessageProps): ChatMessage;
|
|
12
|
-
static fromJSON(props: ChatMessageProps): ChatMessage;
|
|
13
|
-
constructor(props: ChatMessageProps, role?: Roles | undefined, content?: string | undefined);
|
|
14
|
-
toJSON(): ChatMessageProps;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ChatSettingsProps {
|
|
2
|
-
notifyOnCompletion?: boolean;
|
|
3
|
-
modelName?: string;
|
|
4
|
-
loopName?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class ChatSettings {
|
|
7
|
-
private readonly props;
|
|
8
|
-
notifyOnCompletion?: boolean | undefined;
|
|
9
|
-
modelName?: string | undefined;
|
|
10
|
-
loopName?: string | undefined;
|
|
11
|
-
constructor(props: ChatSettingsProps, notifyOnCompletion?: boolean | undefined, modelName?: string | undefined, loopName?: string | undefined);
|
|
12
|
-
static fromJSON(props: ChatSettingsProps): ChatSettings;
|
|
13
|
-
toJSON(): ChatSettingsProps;
|
|
14
|
-
setLoopName(loopName: string): void;
|
|
15
|
-
setModelName(modelName: string): void;
|
|
16
|
-
setNotifyOnCompletion(notifyOnCompletion: boolean): void;
|
|
17
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
-
import { AgentStateProps, AgentState } from '@services/agent/core/agent-state';
|
|
3
|
-
import { ChatMessage, ChatMessageProps } from './chat-message.entity';
|
|
4
|
-
import { ChatSettings, ChatSettingsProps } from './chat-settings.entity';
|
|
5
|
-
import { ChatContext, ChatContextProps } from './chat-context.entity';
|
|
6
|
-
import { AgentTask, AgentTaskProps } from './agent-task.entity';
|
|
7
|
-
export interface ChatProps extends BaseEntityProps {
|
|
8
|
-
state?: AgentStateProps;
|
|
9
|
-
settings?: ChatSettingsProps;
|
|
10
|
-
messages?: ChatMessageProps[];
|
|
11
|
-
context?: ChatContextProps;
|
|
12
|
-
tasks?: AgentTaskProps[];
|
|
13
|
-
traces?: AgentTrace[];
|
|
14
|
-
}
|
|
15
|
-
export interface AgentTrace {
|
|
16
|
-
node: string;
|
|
17
|
-
reasoning?: string;
|
|
18
|
-
taskId?: string;
|
|
19
|
-
timestamp?: Date | string;
|
|
20
|
-
}
|
|
21
|
-
export declare class Chat extends BaseEntity {
|
|
22
|
-
private readonly props;
|
|
23
|
-
state?: AgentState | undefined;
|
|
24
|
-
settings?: ChatSettings | undefined;
|
|
25
|
-
messages?: ChatMessage[] | undefined;
|
|
26
|
-
context: ChatContext;
|
|
27
|
-
tasks: AgentTask[];
|
|
28
|
-
traces?: AgentTrace[] | undefined;
|
|
29
|
-
static withDefaults(loopName?: string): Chat;
|
|
30
|
-
static fromJSON(props: ChatProps): Chat;
|
|
31
|
-
constructor(props: ChatProps, state?: AgentState | undefined, settings?: ChatSettings | undefined, messages?: ChatMessage[] | undefined, context?: ChatContext, tasks?: AgentTask[], traces?: AgentTrace[] | undefined);
|
|
32
|
-
get lastAnswer(): string | undefined;
|
|
33
|
-
get activeTask(): AgentTask | undefined;
|
|
34
|
-
toJSON(): ChatProps;
|
|
35
|
-
pushMessage(message: ChatMessageProps): void;
|
|
36
|
-
lastHistoryMessages(count?: number): ChatMessage[] | undefined;
|
|
37
|
-
addTrace(entry: Omit<AgentTrace, 'timestamp'>): void;
|
|
38
|
-
setAgentState(contextState: AgentStateProps): void;
|
|
39
|
-
getTask(taskId: string): AgentTask | undefined;
|
|
40
|
-
lastCompletedTask(): AgentTask | undefined;
|
|
41
|
-
createTask(goal: string, opts?: {
|
|
42
|
-
continuesFrom?: string;
|
|
43
|
-
}): AgentTask;
|
|
44
|
-
reopenTask(taskId: string): AgentTask | undefined;
|
|
45
|
-
completeTask(taskId?: string, summary?: string): void;
|
|
46
|
-
failTask(taskId?: string): void;
|
|
47
|
-
cancelTask(taskId?: string): void;
|
|
48
|
-
private clearActiveTaskIdIfMatches;
|
|
49
|
-
switchLoop(loopName: string): void;
|
|
50
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chat.entity';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { ChatRepository } from '../../repositories';
|
|
3
|
-
import { Chat, ChatProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
payload?: ChatProps;
|
|
6
|
-
}
|
|
7
|
-
export interface Output extends BaseUseCaseOutput {
|
|
8
|
-
data: Partial<Chat>;
|
|
9
|
-
}
|
|
10
|
-
export declare class CreateChatUseCase extends BaseUseCase<Params, Output> {
|
|
11
|
-
private readonly chatRepository;
|
|
12
|
-
constructor(chatRepository: ChatRepository);
|
|
13
|
-
execute(params: Params): Promise<Output>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './create-chat.use-case';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { ChatRepository } from '../../repositories';
|
|
3
|
-
import { ChatProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
hardDelete?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface Output extends BaseUseCaseOutput {
|
|
9
|
-
data: ChatProps;
|
|
10
|
-
}
|
|
11
|
-
export declare class DeleteChatUseCase extends BaseUseCase<Params, Output> {
|
|
12
|
-
private readonly chatRepository;
|
|
13
|
-
constructor(chatRepository: ChatRepository);
|
|
14
|
-
execute(params: Params): Promise<Output>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './delete-chat.use-case';
|
package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/get-chat-by-id.use-case.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { ChatRepository } from '../../repositories';
|
|
3
|
-
import { ChatProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Output extends BaseUseCaseOutput {
|
|
8
|
-
data: ChatProps | null;
|
|
9
|
-
}
|
|
10
|
-
export declare class GetChatByIdUseCase extends BaseUseCase<Params, Output> {
|
|
11
|
-
private readonly chatRepository;
|
|
12
|
-
constructor(chatRepository: ChatRepository);
|
|
13
|
-
execute(params: Params): Promise<Output>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-chat-by-id.use-case';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './interrupt-execution.use-case';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { ChatProps } from '../../entities';
|
|
3
|
-
import { ChatRepository } from '../../repositories';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Output extends BaseUseCaseOutput {
|
|
8
|
-
data: ChatProps;
|
|
9
|
-
}
|
|
10
|
-
export declare class InterruptExecutionUseCase extends BaseUseCase<Params, Output> {
|
|
11
|
-
private readonly chatRepository;
|
|
12
|
-
constructor(chatRepository: ChatRepository);
|
|
13
|
-
execute(params: Params): Promise<Output>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './list-chats-by-props.use-case';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { QueryOptions } from '@common/repositories';
|
|
2
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
3
|
-
import { ChatRepository } from '../../repositories';
|
|
4
|
-
import { ChatProps } from '../../entities';
|
|
5
|
-
export interface Params extends BaseUseCaseParams {
|
|
6
|
-
where: Partial<ChatProps>;
|
|
7
|
-
options?: QueryOptions;
|
|
8
|
-
}
|
|
9
|
-
export interface Output extends BaseUseCaseOutput {
|
|
10
|
-
data: ChatProps[] | null;
|
|
11
|
-
}
|
|
12
|
-
export declare class ListChatsByPropsUseCase extends BaseUseCase<Params, Output> {
|
|
13
|
-
private readonly chatRepository;
|
|
14
|
-
constructor(chatRepository: ChatRepository);
|
|
15
|
-
execute(params: Params): Promise<Output>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './list-chats-by-user.use-case';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { QueryOptions } from '@common/repositories';
|
|
2
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
3
|
-
import { ChatRepository } from '../../repositories';
|
|
4
|
-
import { ChatProps } from '../../entities';
|
|
5
|
-
export interface Params extends BaseUseCaseParams {
|
|
6
|
-
filters?: Partial<ChatProps>;
|
|
7
|
-
options?: QueryOptions;
|
|
8
|
-
}
|
|
9
|
-
export interface Output extends BaseUseCaseOutput {
|
|
10
|
-
data: ChatProps[] | null;
|
|
11
|
-
}
|
|
12
|
-
export declare class ListChatsByUserUseCase extends BaseUseCase<Params, Output> {
|
|
13
|
-
private readonly chatRepository;
|
|
14
|
-
constructor(chatRepository: ChatRepository);
|
|
15
|
-
execute(params: Params): Promise<Output>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './update-chat.use-case';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { ChatRepository } from '../../repositories';
|
|
3
|
-
import { ChatProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
payload?: ChatProps;
|
|
7
|
-
}
|
|
8
|
-
export interface Output extends BaseUseCaseOutput {
|
|
9
|
-
data: ChatProps;
|
|
10
|
-
}
|
|
11
|
-
export declare class UpdateChatUseCase extends BaseUseCase<Params, Output> {
|
|
12
|
-
private readonly chatRepository;
|
|
13
|
-
constructor(chatRepository: ChatRepository);
|
|
14
|
-
execute(params: Params): Promise<Output>;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MongoRepository, QueryOptions, QueryParams } from '@common/repositories';
|
|
2
|
-
import { Chat, ChatProps } from '../entities';
|
|
3
|
-
export declare class ChatRepository {
|
|
4
|
-
readonly _: MongoRepository<ChatProps>;
|
|
5
|
-
create(chat: Chat): Promise<Chat>;
|
|
6
|
-
update(chat: Chat): Promise<ChatProps | null>;
|
|
7
|
-
findById(id: string, select?: QueryParams<ChatProps>['select']): Promise<ChatProps | null>;
|
|
8
|
-
deleteById(id: string): Promise<number>;
|
|
9
|
-
findByProps(where: ChatProps, options: QueryOptions): Promise<ChatProps[]>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chat.repository';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './llmcall.entity';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ObjectId } from 'mongodb';
|
|
2
|
-
import type { AssistantMessage } from '@mariozechner/pi-ai';
|
|
3
|
-
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
4
|
-
export interface LLMCallProps extends BaseEntityProps {
|
|
5
|
-
taskName?: string;
|
|
6
|
-
answerId?: string | ObjectId;
|
|
7
|
-
sessionId?: string | ObjectId;
|
|
8
|
-
costInUsd?: number;
|
|
9
|
-
response?: AssistantMessage;
|
|
10
|
-
}
|
|
11
|
-
export declare class LLMCall extends BaseEntity {
|
|
12
|
-
private readonly props;
|
|
13
|
-
taskName?: string | undefined;
|
|
14
|
-
answerId?: ObjectId | undefined;
|
|
15
|
-
sessionId?: ObjectId | undefined;
|
|
16
|
-
costInUsd?: number | undefined;
|
|
17
|
-
response?: AssistantMessage | undefined;
|
|
18
|
-
static fromJSON(props: LLMCallProps): LLMCall;
|
|
19
|
-
constructor(props: LLMCallProps, taskName?: string | undefined, answerId?: ObjectId | undefined, sessionId?: ObjectId | undefined, costInUsd?: number | undefined, response?: AssistantMessage | undefined);
|
|
20
|
-
toJSON(): LLMCallProps;
|
|
21
|
-
setResponse(response: AssistantMessage): void;
|
|
22
|
-
setTaskName(taskId: string): void;
|
|
23
|
-
}
|
package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/create-llmcall.use-case.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallProps } from '../../entities';
|
|
3
|
-
import { LLMCallRepository } from '../../repositories';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
payload?: LLMCallProps;
|
|
6
|
-
}
|
|
7
|
-
export interface Output extends BaseUseCaseOutput {
|
|
8
|
-
data: LLMCallProps | null;
|
|
9
|
-
}
|
|
10
|
-
export declare class CreateLLMCallUseCase extends BaseUseCase<Params, Output> {
|
|
11
|
-
private readonly llmCallRepository;
|
|
12
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
13
|
-
execute(params: Params): Promise<Output>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './create-llmcall.use-case';
|
package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/delete-llmcall.use-case.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallProps } from '../../entities';
|
|
3
|
-
import { LLMCallRepository } from '../../repositories';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
hardDelete?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface Output extends BaseUseCaseOutput {
|
|
9
|
-
data: LLMCallProps | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class DeleteLLMCallUseCase extends BaseUseCase<Params, Output> {
|
|
12
|
-
private readonly llmCallRepository;
|
|
13
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
14
|
-
execute(params: Params): Promise<Output>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './delete-llmcall.use-case';
|
package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/get-llm-usage.use-case.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallRepository } from '../../repositories';
|
|
3
|
-
export interface Params extends BaseUseCaseParams {
|
|
4
|
-
filters: {
|
|
5
|
-
sessionId?: string;
|
|
6
|
-
messageId?: string;
|
|
7
|
-
fromDate?: string;
|
|
8
|
-
toDate?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface Output extends BaseUseCaseOutput {
|
|
12
|
-
data: {
|
|
13
|
-
totalTokens?: number;
|
|
14
|
-
tokensLimit?: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare class GetLLMUsageUseCase extends BaseUseCase<Params, Output> {
|
|
18
|
-
private readonly llmCallRepository;
|
|
19
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
20
|
-
execute(params: Params): Promise<Output>;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-llm-usage.use-case';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallRepository } from '../../repositories';
|
|
3
|
-
import { LLMCallProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Output extends BaseUseCaseOutput {
|
|
8
|
-
data: LLMCallProps | null;
|
|
9
|
-
}
|
|
10
|
-
export declare class GetLLMCallByIdUseCase extends BaseUseCase<Params, Output> {
|
|
11
|
-
private readonly llmCallRepository;
|
|
12
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
13
|
-
execute(params: Params): Promise<Output>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-llmcall-by-id.use-case';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './list-llmcalls-by-props.use-case';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallRepository } from '../../repositories';
|
|
3
|
-
import { QueryOptions } from '@common/repositories';
|
|
4
|
-
import { LLMCallProps } from '../../entities';
|
|
5
|
-
export interface Params extends BaseUseCaseParams {
|
|
6
|
-
where: LLMCallProps;
|
|
7
|
-
options?: QueryOptions;
|
|
8
|
-
}
|
|
9
|
-
export interface Output extends BaseUseCaseOutput {
|
|
10
|
-
data: LLMCallProps[] | null;
|
|
11
|
-
}
|
|
12
|
-
export declare class ListLLMCallsByPropsUseCase extends BaseUseCase<Params, Output> {
|
|
13
|
-
private readonly llmCallRepository;
|
|
14
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
15
|
-
execute(params: Params): Promise<Output>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './update-llmcall.use-case';
|
package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/update-llmcall.use-case.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseUseCase, BaseUseCaseParams, BaseUseCaseOutput } from '@common/core/base.use-case';
|
|
2
|
-
import { LLMCallRepository } from '../../repositories';
|
|
3
|
-
import { LLMCallProps } from '../../entities';
|
|
4
|
-
export interface Params extends BaseUseCaseParams {
|
|
5
|
-
id: string;
|
|
6
|
-
payload?: LLMCallProps;
|
|
7
|
-
}
|
|
8
|
-
export interface Output extends BaseUseCaseOutput {
|
|
9
|
-
data: LLMCallProps;
|
|
10
|
-
}
|
|
11
|
-
export declare class UpdateLLMCallUseCase extends BaseUseCase<Params, Output> {
|
|
12
|
-
private readonly llmCallRepository;
|
|
13
|
-
constructor(llmCallRepository: LLMCallRepository);
|
|
14
|
-
execute(params: Params): Promise<Output>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './llmcall.repository';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MongoRepository, QueryOptions } from '@common/repositories';
|
|
2
|
-
import { LLMCall, LLMCallProps } from '../entities';
|
|
3
|
-
export declare class LLMCallRepository {
|
|
4
|
-
readonly _: MongoRepository<LLMCallProps>;
|
|
5
|
-
create(llmCall: LLMCall): Promise<LLMCall>;
|
|
6
|
-
update(llmCall: LLMCall): Promise<LLMCallProps | null>;
|
|
7
|
-
findById(id: string): Promise<LLMCallProps | null>;
|
|
8
|
-
deleteById(id: string): Promise<number>;
|
|
9
|
-
findByProps(where: LLMCallProps, options?: QueryOptions): Promise<LLMCallProps[]>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './mcpserver.entity';
|