@olane/o-intelligence 0.6.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.
Files changed (38) hide show
  1. package/README.md +11 -0
  2. package/dist/src/anthropic-intelligence.tool.d.ts +224 -0
  3. package/dist/src/anthropic-intelligence.tool.d.ts.map +1 -0
  4. package/dist/src/anthropic-intelligence.tool.js +477 -0
  5. package/dist/src/enums/intelligence-storage-keys.enum.d.ts +5 -0
  6. package/dist/src/enums/intelligence-storage-keys.enum.d.ts.map +1 -0
  7. package/dist/src/enums/intelligence-storage-keys.enum.js +5 -0
  8. package/dist/src/enums/llm-providers.enum.d.ts +8 -0
  9. package/dist/src/enums/llm-providers.enum.d.ts.map +1 -0
  10. package/dist/src/enums/llm-providers.enum.js +8 -0
  11. package/dist/src/gemini-intelligence.tool.d.ts +29 -0
  12. package/dist/src/gemini-intelligence.tool.d.ts.map +1 -0
  13. package/dist/src/gemini-intelligence.tool.js +267 -0
  14. package/dist/src/grok-intelligence.tool.d.ts +13 -0
  15. package/dist/src/grok-intelligence.tool.d.ts.map +1 -0
  16. package/dist/src/grok-intelligence.tool.js +214 -0
  17. package/dist/src/index.d.ts +7 -0
  18. package/dist/src/index.d.ts.map +1 -0
  19. package/dist/src/index.js +6 -0
  20. package/dist/src/intelligence.tool.d.ts +21 -0
  21. package/dist/src/intelligence.tool.d.ts.map +1 -0
  22. package/dist/src/intelligence.tool.js +201 -0
  23. package/dist/src/methods/intelligence.methods.d.ts +5 -0
  24. package/dist/src/methods/intelligence.methods.d.ts.map +1 -0
  25. package/dist/src/methods/intelligence.methods.js +132 -0
  26. package/dist/src/ollama-intelligence.tool.d.ts +36 -0
  27. package/dist/src/ollama-intelligence.tool.d.ts.map +1 -0
  28. package/dist/src/ollama-intelligence.tool.js +312 -0
  29. package/dist/src/openai-intelligence.tool.d.ts +29 -0
  30. package/dist/src/openai-intelligence.tool.d.ts.map +1 -0
  31. package/dist/src/openai-intelligence.tool.js +261 -0
  32. package/dist/src/perplexity-intelligence.tool.d.ts +28 -0
  33. package/dist/src/perplexity-intelligence.tool.d.ts.map +1 -0
  34. package/dist/src/perplexity-intelligence.tool.js +310 -0
  35. package/dist/test/basic.spec.d.ts +1 -0
  36. package/dist/test/basic.spec.d.ts.map +1 -0
  37. package/dist/test/basic.spec.js +1 -0
  38. package/package.json +70 -0
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # o-intelligence
2
+ Important configuration options below:
3
+
4
+ ```
5
+ MODEL_PROVIDER_CHOICE=[openai,anthropic,grok,gemini,ollama]
6
+ ANTHROPIC_API_KEY=YOUR_API_KEY
7
+ OPENAI_API_KEY=YOUR_API_KEY
8
+ SONAR_API_KEY=YOUR_API_KEY
9
+ GEMINI_API_KEY=YOUR_API_KEY
10
+ GROK_API_KEY=YOUR_API_KEY
11
+ ```
@@ -0,0 +1,224 @@
1
+ import { oRequest } from '@olane/o-core';
2
+ import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
3
+ export declare class AnthropicIntelligenceTool extends oVirtualTool {
4
+ private defaultModel;
5
+ constructor(config: oToolConfig);
6
+ /**
7
+ * Chat completion with Anthropic
8
+ */
9
+ _tool_completion(request: oRequest): Promise<ToolResult>;
10
+ /**
11
+ * Generate text with Anthropic (using messages endpoint)
12
+ */
13
+ _tool_generate(request: oRequest): Promise<ToolResult>;
14
+ /**
15
+ * List available models
16
+ */
17
+ _tool_list_models(request: oRequest): Promise<ToolResult>;
18
+ /**
19
+ * Get model information
20
+ */
21
+ _tool_model_info(request: oRequest): Promise<ToolResult>;
22
+ /**
23
+ * Check API status
24
+ */
25
+ _tool_status(request: oRequest): Promise<ToolResult>;
26
+ /**
27
+ * Parameter definitions for completion
28
+ */
29
+ _params_completion(): {
30
+ type: string;
31
+ properties: {
32
+ model: {
33
+ type: string;
34
+ description: string;
35
+ default: string;
36
+ };
37
+ messages: {
38
+ type: string;
39
+ description: string;
40
+ items: {
41
+ type: string;
42
+ properties: {
43
+ role: {
44
+ type: string;
45
+ enum: string[];
46
+ description: string;
47
+ };
48
+ content: {
49
+ oneOf: ({
50
+ type: string;
51
+ description: string;
52
+ items?: undefined;
53
+ } | {
54
+ type: string;
55
+ description: string;
56
+ items: {
57
+ type: string;
58
+ properties: {
59
+ type: {
60
+ type: string;
61
+ enum: string[];
62
+ };
63
+ text: {
64
+ type: string;
65
+ };
66
+ source: {
67
+ type: string;
68
+ properties: {
69
+ type: {
70
+ type: string;
71
+ enum: string[];
72
+ };
73
+ media_type: {
74
+ type: string;
75
+ };
76
+ data: {
77
+ type: string;
78
+ };
79
+ };
80
+ };
81
+ };
82
+ };
83
+ })[];
84
+ };
85
+ };
86
+ required: string[];
87
+ };
88
+ };
89
+ system: {
90
+ type: string;
91
+ description: string;
92
+ };
93
+ max_tokens: {
94
+ type: string;
95
+ description: string;
96
+ default: number;
97
+ };
98
+ temperature: {
99
+ type: string;
100
+ description: string;
101
+ minimum: number;
102
+ maximum: number;
103
+ };
104
+ top_p: {
105
+ type: string;
106
+ description: string;
107
+ minimum: number;
108
+ maximum: number;
109
+ };
110
+ top_k: {
111
+ type: string;
112
+ description: string;
113
+ minimum: number;
114
+ };
115
+ stop_sequences: {
116
+ type: string;
117
+ description: string;
118
+ items: {
119
+ type: string;
120
+ };
121
+ };
122
+ metadata: {
123
+ type: string;
124
+ description: string;
125
+ properties: {
126
+ user_id: {
127
+ type: string;
128
+ description: string;
129
+ };
130
+ };
131
+ };
132
+ };
133
+ required: string[];
134
+ };
135
+ /**
136
+ * Parameter definitions for generate
137
+ */
138
+ _params_generate(): {
139
+ type: string;
140
+ properties: {
141
+ model: {
142
+ type: string;
143
+ description: string;
144
+ default: string;
145
+ };
146
+ prompt: {
147
+ type: string;
148
+ description: string;
149
+ };
150
+ system: {
151
+ type: string;
152
+ description: string;
153
+ };
154
+ max_tokens: {
155
+ type: string;
156
+ description: string;
157
+ default: number;
158
+ };
159
+ temperature: {
160
+ type: string;
161
+ description: string;
162
+ minimum: number;
163
+ maximum: number;
164
+ };
165
+ top_p: {
166
+ type: string;
167
+ description: string;
168
+ minimum: number;
169
+ maximum: number;
170
+ };
171
+ top_k: {
172
+ type: string;
173
+ description: string;
174
+ minimum: number;
175
+ };
176
+ stop_sequences: {
177
+ type: string;
178
+ description: string;
179
+ items: {
180
+ type: string;
181
+ };
182
+ };
183
+ metadata: {
184
+ type: string;
185
+ description: string;
186
+ properties: {
187
+ user_id: {
188
+ type: string;
189
+ description: string;
190
+ };
191
+ };
192
+ };
193
+ };
194
+ required: string[];
195
+ };
196
+ /**
197
+ * Parameter definitions for list_models
198
+ */
199
+ _params_list_models(): {
200
+ type: string;
201
+ properties: {};
202
+ };
203
+ /**
204
+ * Parameter definitions for model_info
205
+ */
206
+ _params_model_info(): {
207
+ type: string;
208
+ properties: {
209
+ model: {
210
+ type: string;
211
+ description: string;
212
+ default: string;
213
+ };
214
+ };
215
+ };
216
+ /**
217
+ * Parameter definitions for status
218
+ */
219
+ _params_status(): {
220
+ type: string;
221
+ properties: {};
222
+ };
223
+ }
224
+ //# sourceMappingURL=anthropic-intelligence.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anthropic-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/anthropic-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAmGtE,qBAAa,yBAA0B,SAAQ,YAAY;IACzD,OAAO,CAAC,YAAY,CAA8B;gBAEtC,MAAM,EAAE,WAAW;IAW/B;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAqE9D;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+E5D;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA4C/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAoD9D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwC1D;;OAEG;IACH,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+GlB;;OAEG;IACH,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6DhB;;OAEG;IACH,mBAAmB;;;;IAOnB;;OAEG;IACH,kBAAkB;;;;;;;;;;IAalB;;OAEG;IACH,cAAc;;;;CAMf"}