@eko-ai/eko 1.2.0 → 1.2.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/dist/common/log.d.ts +2 -0
- package/dist/core/eko.d.ts +1 -0
- package/dist/extension/content/index.d.ts +1 -16
- package/dist/extension.cjs.js +778 -149
- package/dist/extension.esm.js +778 -149
- package/dist/extension_content_script.js +634 -6
- package/dist/index.cjs.js +751 -79
- package/dist/index.esm.js +751 -79
- package/dist/nodejs.cjs.js +712 -88
- package/dist/nodejs.esm.js +648 -24
- package/dist/types/eko.types.d.ts +5 -0
- package/dist/types/llm.types.d.ts +2 -0
- package/dist/web.cjs.js +651 -23
- package/dist/web.esm.js +651 -23
- package/package.json +5 -2
|
@@ -17,11 +17,16 @@ export interface OpenaiConfig {
|
|
|
17
17
|
}
|
|
18
18
|
export type ClaudeApiKey = string;
|
|
19
19
|
export type LLMConfig = ClaudeApiKey | ClaudeConfig | OpenaiConfig | LLMProvider;
|
|
20
|
+
export interface LogtailConfig {
|
|
21
|
+
sourceToken: string;
|
|
22
|
+
ingestingHost: string;
|
|
23
|
+
}
|
|
20
24
|
export interface EkoConfig {
|
|
21
25
|
workingWindowId?: number;
|
|
22
26
|
chromeProxy?: any;
|
|
23
27
|
callback?: WorkflowCallback;
|
|
24
28
|
patchServerUrl?: string;
|
|
29
|
+
logtailConfig?: LogtailConfig;
|
|
25
30
|
}
|
|
26
31
|
export interface EkoInvokeParam {
|
|
27
32
|
tools?: Array<string> | Array<Tool<any, any>>;
|
|
@@ -47,6 +47,8 @@ export interface LLMStreamHandler {
|
|
|
47
47
|
onError?: (error: Error) => void;
|
|
48
48
|
}
|
|
49
49
|
export interface LLMProvider {
|
|
50
|
+
client: any;
|
|
51
|
+
defaultModel: string;
|
|
50
52
|
generateText(messages: Message[], params: LLMParameters): Promise<LLMResponse>;
|
|
51
53
|
generateStream(messages: Message[], params: LLMParameters, handler: LLMStreamHandler): Promise<void>;
|
|
52
54
|
}
|