@olane/o-tool-registry 0.6.7 → 0.6.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.
Files changed (136) hide show
  1. package/dist/auth/index.d.ts +4 -0
  2. package/dist/auth/index.d.ts.map +1 -0
  3. package/dist/auth/index.js +3 -0
  4. package/dist/auth/interfaces/index.d.ts +4 -0
  5. package/dist/auth/interfaces/index.d.ts.map +1 -0
  6. package/dist/auth/interfaces/index.js +3 -0
  7. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +9 -0
  8. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +1 -0
  9. package/dist/auth/interfaces/oAuth-tokens.interface.js +1 -0
  10. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +8 -0
  11. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +1 -0
  12. package/dist/auth/interfaces/oAuth-user-info.interface.js +1 -0
  13. package/dist/auth/interfaces/oAuth.config.d.ts +14 -0
  14. package/dist/auth/interfaces/oAuth.config.d.ts.map +1 -0
  15. package/dist/auth/interfaces/oAuth.config.js +1 -0
  16. package/dist/auth/methods/auth.methods.d.ts +5 -0
  17. package/dist/auth/methods/auth.methods.d.ts.map +1 -0
  18. package/dist/auth/methods/auth.methods.js +302 -0
  19. package/dist/auth/oAuth.tool.d.ts +20 -0
  20. package/dist/auth/oAuth.tool.d.ts.map +1 -0
  21. package/dist/auth/oAuth.tool.js +419 -0
  22. package/dist/embeddings/embeddings.tool.d.ts +6 -0
  23. package/dist/embeddings/embeddings.tool.d.ts.map +1 -0
  24. package/dist/embeddings/embeddings.tool.js +11 -0
  25. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +9 -0
  26. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +1 -0
  27. package/dist/embeddings/huggingface-text-embeddings.tool.js +21 -0
  28. package/dist/embeddings/index.d.ts +4 -0
  29. package/dist/embeddings/index.d.ts.map +1 -0
  30. package/dist/embeddings/index.js +3 -0
  31. package/dist/embeddings/methods/text-embeddings.method.d.ts +5 -0
  32. package/dist/embeddings/methods/text-embeddings.method.d.ts.map +1 -0
  33. package/dist/embeddings/methods/text-embeddings.method.js +29 -0
  34. package/dist/embeddings/text-embeddings.tool.d.ts +9 -0
  35. package/dist/embeddings/text-embeddings.tool.d.ts.map +1 -0
  36. package/dist/embeddings/text-embeddings.tool.js +13 -0
  37. package/dist/index.d.ts +7 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +6 -0
  40. package/dist/init.d.ts +3 -0
  41. package/dist/init.d.ts.map +1 -0
  42. package/dist/init.js +36 -0
  43. package/dist/intelligence/anthropic-intelligence.tool.d.ts +224 -0
  44. package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
  45. package/dist/intelligence/anthropic-intelligence.tool.js +477 -0
  46. package/dist/intelligence/gemini-intelligence.tool.d.ts +29 -0
  47. package/dist/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
  48. package/dist/intelligence/gemini-intelligence.tool.js +267 -0
  49. package/dist/intelligence/index.d.ts +6 -0
  50. package/dist/intelligence/index.d.ts.map +1 -0
  51. package/dist/intelligence/index.js +5 -0
  52. package/dist/intelligence/intelligence.tool.d.ts +11 -0
  53. package/dist/intelligence/intelligence.tool.d.ts.map +1 -0
  54. package/dist/intelligence/intelligence.tool.js +120 -0
  55. package/dist/intelligence/methods/intelligence.methods.d.ts +5 -0
  56. package/dist/intelligence/methods/intelligence.methods.d.ts.map +1 -0
  57. package/dist/intelligence/methods/intelligence.methods.js +98 -0
  58. package/dist/intelligence/ollama-intelligence.tool.d.ts +36 -0
  59. package/dist/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
  60. package/dist/intelligence/ollama-intelligence.tool.js +312 -0
  61. package/dist/intelligence/openai-intelligence.tool.d.ts +30 -0
  62. package/dist/intelligence/openai-intelligence.tool.d.ts.map +1 -0
  63. package/dist/intelligence/openai-intelligence.tool.js +255 -0
  64. package/dist/intelligence/perplexity-intelligence.tool.d.ts +27 -0
  65. package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
  66. package/dist/intelligence/perplexity-intelligence.tool.js +309 -0
  67. package/dist/mcp/index.d.ts +3 -0
  68. package/dist/mcp/index.d.ts.map +1 -0
  69. package/dist/mcp/index.js +2 -0
  70. package/dist/mcp/mcp-bridge.tool.d.ts +12 -0
  71. package/dist/mcp/mcp-bridge.tool.d.ts.map +1 -0
  72. package/dist/mcp/mcp-bridge.tool.js +126 -0
  73. package/dist/mcp/mcp.tool.d.ts +14 -0
  74. package/dist/mcp/mcp.tool.d.ts.map +1 -0
  75. package/dist/mcp/mcp.tool.js +83 -0
  76. package/dist/mcp/methods/mcp-bridge.methods.d.ts +5 -0
  77. package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
  78. package/dist/mcp/methods/mcp-bridge.methods.js +79 -0
  79. package/dist/nlp/index.d.ts +2 -0
  80. package/dist/nlp/index.d.ts.map +1 -0
  81. package/dist/nlp/index.js +1 -0
  82. package/dist/nlp/methods/nlp.methods.d.ts +5 -0
  83. package/dist/nlp/methods/nlp.methods.d.ts.map +1 -0
  84. package/dist/nlp/methods/nlp.methods.js +15 -0
  85. package/dist/nlp/ner.tool.d.ts +7 -0
  86. package/dist/nlp/ner.tool.d.ts.map +1 -0
  87. package/dist/nlp/ner.tool.js +25 -0
  88. package/dist/src/intelligence/anthropic-intelligence.tool.d.ts +224 -0
  89. package/dist/src/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
  90. package/dist/src/intelligence/anthropic-intelligence.tool.js +477 -0
  91. package/dist/src/intelligence/gemini-intelligence.tool.d.ts +29 -0
  92. package/dist/src/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
  93. package/dist/src/intelligence/gemini-intelligence.tool.js +267 -0
  94. package/dist/src/intelligence/index.d.ts +6 -0
  95. package/dist/src/intelligence/index.d.ts.map +1 -0
  96. package/dist/src/intelligence/index.js +5 -0
  97. package/dist/src/intelligence/intelligence.tool.d.ts +11 -0
  98. package/dist/src/intelligence/intelligence.tool.d.ts.map +1 -0
  99. package/dist/src/intelligence/intelligence.tool.js +134 -0
  100. package/dist/src/intelligence/methods/intelligence.methods.d.ts +5 -0
  101. package/dist/src/intelligence/methods/intelligence.methods.d.ts.map +1 -0
  102. package/dist/src/intelligence/methods/intelligence.methods.js +132 -0
  103. package/dist/src/intelligence/ollama-intelligence.tool.d.ts +36 -0
  104. package/dist/src/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
  105. package/dist/src/intelligence/ollama-intelligence.tool.js +312 -0
  106. package/dist/src/intelligence/openai-intelligence.tool.d.ts +30 -0
  107. package/dist/src/intelligence/openai-intelligence.tool.d.ts.map +1 -0
  108. package/dist/src/intelligence/openai-intelligence.tool.js +255 -0
  109. package/dist/src/intelligence/perplexity-intelligence.tool.d.ts +28 -0
  110. package/dist/src/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
  111. package/dist/src/intelligence/perplexity-intelligence.tool.js +310 -0
  112. package/dist/src/mcp/index.d.ts +3 -0
  113. package/dist/src/mcp/index.d.ts.map +1 -0
  114. package/dist/src/mcp/index.js +2 -0
  115. package/dist/src/mcp/mcp-bridge.tool.d.ts +12 -0
  116. package/dist/src/mcp/mcp-bridge.tool.d.ts.map +1 -0
  117. package/dist/src/mcp/mcp-bridge.tool.js +107 -0
  118. package/dist/src/mcp/mcp.tool.d.ts +15 -0
  119. package/dist/src/mcp/mcp.tool.d.ts.map +1 -0
  120. package/dist/src/mcp/mcp.tool.js +85 -0
  121. package/dist/src/mcp/methods/mcp-bridge.methods.d.ts +5 -0
  122. package/dist/src/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
  123. package/dist/src/mcp/methods/mcp-bridge.methods.js +58 -0
  124. package/dist/vector-store/index.d.ts +3 -0
  125. package/dist/vector-store/index.d.ts.map +1 -0
  126. package/dist/vector-store/index.js +2 -0
  127. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +14 -0
  128. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +1 -0
  129. package/dist/vector-store/langchain-memory.vector-store.tool.js +60 -0
  130. package/dist/vector-store/methods/vector-store.methods.d.ts +5 -0
  131. package/dist/vector-store/methods/vector-store.methods.d.ts.map +1 -0
  132. package/dist/vector-store/methods/vector-store.methods.js +60 -0
  133. package/dist/vector-store/vector-memory.tool.d.ts +11 -0
  134. package/dist/vector-store/vector-memory.tool.d.ts.map +1 -0
  135. package/dist/vector-store/vector-memory.tool.js +13 -0
  136. package/package.json +7 -7
@@ -0,0 +1,15 @@
1
+ export const NLP_PARAMS = {
2
+ extract: {
3
+ name: 'extract',
4
+ description: 'Extract',
5
+ dependencies: [],
6
+ parameters: [
7
+ {
8
+ name: 'text',
9
+ type: 'string',
10
+ value: 'string',
11
+ description: 'The text to extract from',
12
+ },
13
+ ],
14
+ },
15
+ };
@@ -0,0 +1,7 @@
1
+ import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
2
+ import { oRequest } from '@olane/o-core';
3
+ export declare class NERTool extends oVirtualTool {
4
+ constructor(config: oToolConfig);
5
+ _tool_extract(request: oRequest): Promise<ToolResult>;
6
+ }
7
+ //# sourceMappingURL=ner.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ner.tool.d.ts","sourceRoot":"","sources":["../../src/nlp/ner.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,qBAAa,OAAQ,SAAQ,YAAY;gBAC3B,MAAM,EAAE,WAAW;IASzB,aAAa,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAa5D"}
@@ -0,0 +1,25 @@
1
+ import { oVirtualTool } from '@olane/o-tool';
2
+ import { oAddress } from '@olane/o-core';
3
+ import { NLP_PARAMS } from './methods/nlp.methods.js';
4
+ export class NERTool extends oVirtualTool {
5
+ constructor(config) {
6
+ super({
7
+ ...config,
8
+ address: new oAddress('o://ner'),
9
+ methods: NLP_PARAMS,
10
+ description: 'Tool to extract named entities from text',
11
+ });
12
+ }
13
+ async _tool_extract(request) {
14
+ const params = request.params;
15
+ const { text } = params;
16
+ this.logger.debug('Extracting entities from text', text);
17
+ const response = await this.use(new oAddress('o://intelligence'), {
18
+ method: 'prompt',
19
+ params: {
20
+ prompt: `Extract named entities and their metadata from the following text: ${text}`,
21
+ },
22
+ });
23
+ return response.result;
24
+ }
25
+ }
@@ -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/intelligence/anthropic-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAgB,MAAM,eAAe,CAAC;AACjE,OAAO,EAAS,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAmG7E,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"}