@looopy-ai/core 1.1.3 → 1.1.6
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/core/agent.js +1 -0
- package/dist/core/types.d.ts +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/prompt.d.ts +1 -1
- package/package.json +1 -1
package/dist/core/agent.js
CHANGED
package/dist/core/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type pino from 'pino';
|
|
|
2
2
|
import type { AuthContext } from '../types/context';
|
|
3
3
|
import type { LLMProvider } from '../types/llm';
|
|
4
4
|
import type { ToolProvider } from '../types/tools';
|
|
5
|
+
import type { SystemPromptProp } from '../utils';
|
|
5
6
|
export type AgentContext = {
|
|
6
7
|
agentId: string;
|
|
7
8
|
contextId: string;
|
|
@@ -9,7 +10,7 @@ export type AgentContext = {
|
|
|
9
10
|
authContext?: AuthContext;
|
|
10
11
|
toolProviders: ToolProvider[];
|
|
11
12
|
logger: pino.Logger;
|
|
12
|
-
systemPrompt?:
|
|
13
|
+
systemPrompt?: SystemPromptProp;
|
|
13
14
|
skillPrompts?: Record<string, string>;
|
|
14
15
|
metadata?: Record<string, unknown>;
|
|
15
16
|
};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
package/dist/utils/prompt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type SystemPrompt = {
|
|
2
2
|
prompt: string;
|
|
3
3
|
name?: string;
|
|
4
|
-
version?:
|
|
4
|
+
version?: number;
|
|
5
5
|
};
|
|
6
6
|
export type SystemPromptProp = string | SystemPrompt | (() => Promise<SystemPrompt> | SystemPrompt);
|
|
7
7
|
export declare const getSystemPrompt: (systemPrompt?: SystemPromptProp) => Promise<SystemPrompt | undefined>;
|