@xinshu/openagi 0.0.1 → 0.0.2-dev.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/.npmignore +8 -0
- package/LICENSE.md +196 -18
- package/README.md +405 -41
- package/cli.js +1889 -11
- package/package.json +39 -27
- package/sdk-tools.d.ts +267 -27
- package/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/cli.mjs +0 -2
- package/sdk.d.ts +0 -33
- package/sdk.mjs +0 -18
package/sdk.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// OpenAGI SDK TypeScript definitions
|
|
2
|
-
// Generated for @anthropic-ai/claude-code style distribution
|
|
3
|
-
|
|
4
|
-
declare module 'openagi' {
|
|
5
|
-
export interface OpenAGIConfig {
|
|
6
|
-
apiKey?: string;
|
|
7
|
-
model?: string;
|
|
8
|
-
maxTokens?: number;
|
|
9
|
-
baseURL?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export class OpenAGI {
|
|
13
|
-
constructor(config?: OpenAGIConfig);
|
|
14
|
-
chat(message: string, options?: { stream?: boolean }): Promise<string>;
|
|
15
|
-
complete(prompt: string, options?: { model?: string }): Promise<string>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface Tool {
|
|
19
|
-
name: string;
|
|
20
|
-
description: string;
|
|
21
|
-
parameters?: object;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface Session {
|
|
25
|
-
id: string;
|
|
26
|
-
messages: Array<{ role: string; content: string }>;
|
|
27
|
-
model: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default OpenAGI;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export {};
|
package/sdk.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// OpenAGI SDK ES Module
|
|
2
|
-
// Generated for @anthropic-ai/claude-code style distribution
|
|
3
|
-
|
|
4
|
-
export class OpenAGI {
|
|
5
|
-
constructor(config = {}) {
|
|
6
|
-
this.config = config;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
async chat(message, options = {}) {
|
|
10
|
-
throw new Error('SDK not implemented - this is a placeholder for @anthropic-ai/claude-code style distribution');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
async complete(prompt, options = {}) {
|
|
14
|
-
throw new Error('SDK not implemented - this is a placeholder for @anthropic-ai/claude-code style distribution');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default OpenAGI;
|