@olane/o-tool-registry 0.6.13 → 0.7.2

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/README.md CHANGED
@@ -1,253 +0,0 @@
1
- # o-Tool Registry
2
-
3
- A registry of tools for the oLane network, including the OllamaIntelligenceTool for interacting with local Ollama instances.
4
-
5
- ## OllamaIntelligenceTool
6
-
7
- The `OllamaIntelligenceTool` provides a comprehensive API interface to interact with a local Ollama instance. It supports chat completion, text generation, model management, and server status monitoring.
8
-
9
- ### Features
10
-
11
- - **Chat Completion**: Multi-turn conversations with Ollama models
12
- - **Text Generation**: Single-prompt text generation
13
- - **Model Management**: List, pull, delete, and get information about models
14
- - **Server Status**: Check if Ollama server is running
15
- - **Configurable**: Customizable base URL and default model
16
-
17
- ### Configuration
18
-
19
- The tool accepts the following configuration options:
20
-
21
- ```typescript
22
- {
23
- ollamaUrl: 'http://localhost:11434', // Default Ollama server URL
24
- defaultModel: 'llama2' // Default model to use
25
- }
26
- ```
27
-
28
- ### Available Methods
29
-
30
- #### 1. `completion` - Chat Completion
31
-
32
- Performs chat completion with a conversation history.
33
-
34
- **Parameters:**
35
- - `model` (string, optional): Model name to use (defaults to configured default)
36
- - `messages` (array, required): Array of chat messages with role and content
37
- - `options` (object, optional): Generation options (temperature, top_p, etc.)
38
-
39
- **Example:**
40
- ```json
41
- {
42
- "method": "completion",
43
- "params": {
44
- "model": "llama2",
45
- "messages": [
46
- {"role": "system", "content": "You are a helpful assistant."},
47
- {"role": "user", "content": "What is the capital of France?"}
48
- ],
49
- "options": {
50
- "temperature": 0.7,
51
- "top_p": 0.9
52
- }
53
- }
54
- }
55
- ```
56
-
57
- #### 2. `generate` - Text Generation
58
-
59
- Generates text from a single prompt.
60
-
61
- **Parameters:**
62
- - `model` (string, optional): Model name to use (defaults to configured default)
63
- - `prompt` (string, required): Text prompt for generation
64
- - `system` (string, optional): System prompt
65
- - `options` (object, optional): Generation options
66
-
67
- **Example:**
68
- ```json
69
- {
70
- "method": "generate",
71
- "params": {
72
- "model": "llama2",
73
- "prompt": "Write a short story about a robot learning to paint.",
74
- "system": "You are a creative writing assistant.",
75
- "options": {
76
- "temperature": 0.8,
77
- "num_predict": 200
78
- }
79
- }
80
- }
81
- ```
82
-
83
- #### 3. `list_models` - List Available Models
84
-
85
- Lists all available models on the Ollama server.
86
-
87
- **Parameters:** None
88
-
89
- **Example:**
90
- ```json
91
- {
92
- "method": "list_models",
93
- "params": {}
94
- }
95
- ```
96
-
97
- #### 4. `pull_model` - Pull a Model
98
-
99
- Downloads a model from the Ollama library.
100
-
101
- **Parameters:**
102
- - `model` (string, required): Model name to pull
103
- - `insecure` (boolean, optional): Allow insecure registry connections (default: false)
104
-
105
- **Example:**
106
- ```json
107
- {
108
- "method": "pull_model",
109
- "params": {
110
- "model": "llama2:7b",
111
- "insecure": false
112
- }
113
- }
114
- ```
115
-
116
- #### 5. `delete_model` - Delete a Model
117
-
118
- Removes a model from the local Ollama installation.
119
-
120
- **Parameters:**
121
- - `model` (string, required): Model name to delete
122
-
123
- **Example:**
124
- ```json
125
- {
126
- "method": "delete_model",
127
- "params": {
128
- "model": "llama2:7b"
129
- }
130
- }
131
- ```
132
-
133
- #### 6. `model_info` - Get Model Information
134
-
135
- Retrieves detailed information about a specific model.
136
-
137
- **Parameters:**
138
- - `model` (string, optional): Model name (defaults to configured default)
139
-
140
- **Example:**
141
- ```json
142
- {
143
- "method": "model_info",
144
- "params": {
145
- "model": "llama2"
146
- }
147
- }
148
- ```
149
-
150
- #### 7. `status` - Check Server Status
151
-
152
- Checks if the Ollama server is running and accessible.
153
-
154
- **Parameters:** None
155
-
156
- **Example:**
157
- ```json
158
- {
159
- "method": "status",
160
- "params": {}
161
- }
162
- ```
163
-
164
- ### Generation Options
165
-
166
- All generation methods support the following options:
167
-
168
- - `temperature` (number): Controls randomness (0.0 to 1.0)
169
- - `top_p` (number): Nucleus sampling parameter (0.0 to 1.0)
170
- - `top_k` (number): Top-k sampling parameter
171
- - `num_predict` (number): Maximum number of tokens to generate
172
- - `stop` (array): Array of strings to stop generation
173
- - `seed` (number): Random seed for reproducible results
174
- - `num_ctx` (number): Context window size
175
- - `num_gpu` (number): Number of GPUs to use
176
- - `num_thread` (number): Number of CPU threads to use
177
- - `repeat_penalty` (number): Penalty for repeating tokens
178
- - `repeat_last_n` (number): Number of tokens to consider for repetition penalty
179
- - `tfs_z` (number): Tail free sampling parameter
180
- - `mirostat` (number): Mirostat sampling algorithm (0, 1, or 2)
181
- - `mirostat_tau` (number): Mirostat target entropy
182
- - `mirostat_eta` (number): Mirostat learning rate
183
- - `penalize_newline` (boolean): Penalize newline tokens
184
- - `presence_penalty` (number): Presence penalty
185
- - `frequency_penalty` (number): Frequency penalty
186
-
187
- ### Response Format
188
-
189
- All methods return a `ToolResult` object with the following structure:
190
-
191
- **Success Response:**
192
- ```json
193
- {
194
- "success": true,
195
- "response": "Generated text content",
196
- "model": "model_name",
197
- "done": true,
198
- "total_duration": 1234,
199
- "eval_count": 50,
200
- "eval_duration": 1000
201
- }
202
- ```
203
-
204
- **Error Response:**
205
- ```json
206
- {
207
- "success": false,
208
- "error": "Error description"
209
- }
210
- ```
211
-
212
- ### Prerequisites
213
-
214
- 1. **Ollama Installation**: Make sure Ollama is installed and running locally
215
- 2. **Model Availability**: Ensure the required models are available or can be pulled
216
- 3. **Network Access**: The tool needs network access to pull models from the Ollama library
217
-
218
- ### Getting Started
219
-
220
- 1. Start your Ollama server:
221
- ```bash
222
- ollama serve
223
- ```
224
-
225
- 2. Pull a model (if not already available):
226
- ```bash
227
- ollama pull llama2
228
- ```
229
-
230
- 3. Use the tool through the oLane network with the appropriate method calls.
231
-
232
- ### Error Handling
233
-
234
- The tool provides comprehensive error handling for:
235
- - Network connectivity issues
236
- - Invalid model names
237
- - Missing required parameters
238
- - Ollama server errors
239
- - Model availability issues
240
-
241
- ### Performance Considerations
242
-
243
- - **Streaming**: The tool currently uses non-streaming responses for simplicity
244
- - **Timeout**: Consider setting appropriate timeouts for long-running operations
245
- - **Memory**: Large models may require significant memory resources
246
- - **GPU**: Enable GPU acceleration in Ollama for better performance
247
-
248
- ### Security Notes
249
-
250
- - The tool connects to localhost by default for security
251
- - Use HTTPS when connecting to remote Ollama instances
252
- - Be cautious with the `insecure` flag when pulling models
253
- - Validate all input parameters before processing
@@ -1,8 +1,9 @@
1
- import { oToolConfig, oVirtualTool } from '@olane/o-tool';
2
- export declare class OAuthTool extends oVirtualTool {
1
+ import { oLaneTool } from '@olane/o-lane';
2
+ import { oNodeToolConfig } from '@olane/o-node';
3
+ export declare class OAuthTool extends oLaneTool {
3
4
  private oauthConfigs;
4
5
  private tokenStore;
5
- constructor(config: oToolConfig);
6
+ constructor(config: oNodeToolConfig);
6
7
  _tool_configure(request: any): Promise<any>;
7
8
  _tool_getAuthorizationUrl(request: any): Promise<any>;
8
9
  _tool_exchangeCode(request: any): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"oAuth.tool.d.ts","sourceRoot":"","sources":["../../../src/auth/oAuth.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAO1D,qBAAa,SAAU,SAAQ,YAAY;IACzC,OAAO,CAAC,YAAY,CAAuC;IAC3D,OAAO,CAAC,UAAU,CAAuC;gBAE7C,MAAM,EAAE,WAAW;IAWzB,eAAe,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuC3C,yBAAyB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAqDrD,kBAAkB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuE9C,kBAAkB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuE9C,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAgD7C,mBAAmB,CAAC,OAA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O,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAU9C,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAyCjD,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IA4BnD,OAAO,CAAC,oBAAoB;YAMd,qBAAqB;IAOnC,OAAO,CAAC,eAAe;CAMxB"}
@@ -1,7 +1,7 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oAddress } from '@olane/o-core';
3
2
  import { oauthMethods } from './methods/auth.methods.js';
4
- export class OAuthTool extends oVirtualTool {
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ export class OAuthTool extends oLaneTool {
5
5
  constructor(config) {
6
6
  super({
7
7
  ...config,
@@ -1,6 +1,6 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
- import { oToolConfig } from '@olane/o-tool';
3
- export declare class EmbeddingsTool extends oVirtualTool {
4
- constructor(config: oToolConfig);
1
+ import { oLaneTool } from '@olane/o-lane';
2
+ import { oNodeToolConfig } from '@olane/o-node';
3
+ export declare class EmbeddingsTool extends oLaneTool {
4
+ constructor(config: oNodeToolConfig);
5
5
  }
6
6
  //# sourceMappingURL=embeddings.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"embeddings.tool.d.ts","sourceRoot":"","sources":["../../../src/embeddings/embeddings.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,cAAe,SAAQ,YAAY;gBAClC,MAAM,EAAE,WAAW;CAQhC"}
1
+ {"version":3,"file":"embeddings.tool.d.ts","sourceRoot":"","sources":["../../../src/embeddings/embeddings.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,qBAAa,cAAe,SAAQ,SAAS;gBAC/B,MAAM,EAAE,eAAe;CAQpC"}
@@ -1,6 +1,6 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oAddress } from '@olane/o-core';
3
- export class EmbeddingsTool extends oVirtualTool {
2
+ import { oLaneTool } from '@olane/o-lane';
3
+ export class EmbeddingsTool extends oLaneTool {
4
4
  constructor(config) {
5
5
  super({
6
6
  ...config,
@@ -1,8 +1,8 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oRequest } from '@olane/o-core';
3
- import { oToolConfig } from '@olane/o-tool';
4
- export declare abstract class TextEmbeddingsTool extends oVirtualTool {
5
- constructor(config: oToolConfig);
2
+ import { oLaneTool } from '@olane/o-lane';
3
+ import { oNodeToolConfig } from '@olane/o-node';
4
+ export declare abstract class TextEmbeddingsTool extends oLaneTool {
5
+ constructor(config: oNodeToolConfig);
6
6
  abstract _tool_embed_documents(request: oRequest): Promise<number[][]>;
7
7
  abstract _tool_embed_query(request: oRequest): Promise<number[]>;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"text-embeddings.tool.d.ts","sourceRoot":"","sources":["../../../src/embeddings/text-embeddings.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,kBAAmB,SAAQ,YAAY;gBAC/C,MAAM,EAAE,WAAW;IAS/B,QAAQ,CAAC,qBAAqB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;IACtE,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CACjE"}
1
+ {"version":3,"file":"text-embeddings.tool.d.ts","sourceRoot":"","sources":["../../../src/embeddings/text-embeddings.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,8BAAsB,kBAAmB,SAAQ,SAAS;gBAC5C,MAAM,EAAE,eAAe;IASnC,QAAQ,CAAC,qBAAqB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;IACtE,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CACjE"}
@@ -1,7 +1,7 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oAddress } from '@olane/o-core';
3
2
  import { TEXT_EMBEDDINGS_PARAMS } from './methods/text-embeddings.method.js';
4
- export class TextEmbeddingsTool extends oVirtualTool {
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ export class TextEmbeddingsTool extends oLaneTool {
5
5
  constructor(config) {
6
6
  super({
7
7
  ...config,
@@ -1,3 +1,3 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
- export declare const initRegistryTools: (oNode: oVirtualTool) => void;
1
+ import { oLaneTool } from '@olane/o-lane';
2
+ export declare const initRegistryTools: (oNode: oLaneTool) => Promise<void>;
3
3
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,eAAO,MAAM,iBAAiB,UAAW,YAAY,KAAG,IA8BvD,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,eAAO,MAAM,iBAAiB,UAAiB,SAAS,KAAG,QAAQ,IAAI,CAoCtE,CAAC"}
package/dist/src/init.js CHANGED
@@ -3,10 +3,13 @@ import { HuggingfaceTextEmbeddingsTool } from './embeddings/index.js';
3
3
  import { LangchainMemoryVectorStoreTool } from './vector-store/index.js';
4
4
  import { IntelligenceTool } from '@olane/o-intelligence';
5
5
  import { McpBridgeTool } from '@olane/o-mcp';
6
- export const initRegistryTools = (oNode) => {
6
+ import { NodeType } from '@olane/o-core';
7
+ export const initRegistryTools = async (oNode) => {
7
8
  const params = {
8
9
  parent: oNode.address,
9
- leader: oNode.address,
10
+ leader: oNode.type === NodeType.LEADER
11
+ ? oNode.address
12
+ : oNode.hierarchyManager.leader,
10
13
  };
11
14
  const tools = [
12
15
  new NERTool({
@@ -30,7 +33,8 @@ export const initRegistryTools = (oNode) => {
30
33
  ...params,
31
34
  }),
32
35
  ];
33
- tools.forEach((tool) => {
36
+ await Promise.all(tools.map(async (tool) => {
37
+ await tool.start();
34
38
  oNode.addChildNode(tool);
35
- });
39
+ }));
36
40
  };
@@ -1,7 +1,9 @@
1
- import { oToolConfig, oVirtualTool, ToolResult } from '@olane/o-tool';
1
+ import { ToolResult } from '@olane/o-tool';
2
2
  import { oRequest } from '@olane/o-core';
3
- export declare class NERTool extends oVirtualTool {
4
- constructor(config: oToolConfig);
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ import { oNodeToolConfig } from '@olane/o-node';
5
+ export declare class NERTool extends oLaneTool {
6
+ constructor(config: oNodeToolConfig);
5
7
  _tool_extract(request: oRequest): Promise<ToolResult>;
6
8
  }
7
9
  //# sourceMappingURL=ner.tool.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ner.tool.d.ts","sourceRoot":"","sources":["../../../src/nlp/ner.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,OAAQ,SAAQ,SAAS;gBACxB,MAAM,EAAE,eAAe;IAS7B,aAAa,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAa5D"}
@@ -1,7 +1,7 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oAddress } from '@olane/o-core';
3
2
  import { NLP_PARAMS } from './methods/nlp.methods.js';
4
- export class NERTool extends oVirtualTool {
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ export class NERTool extends oLaneTool {
5
5
  constructor(config) {
6
6
  super({
7
7
  ...config,
@@ -1,9 +1,9 @@
1
1
  import { oRequest } from '@olane/o-core';
2
- import { oToolConfig } from '@olane/o-tool';
3
2
  import { VectorMemoryStorageTool } from './vector-memory.tool.js';
3
+ import { oNodeToolConfig } from '@olane/o-node';
4
4
  export declare class LangchainMemoryVectorStoreTool extends VectorMemoryStorageTool {
5
5
  private vectorStore;
6
- constructor(config: oToolConfig);
6
+ constructor(config: oNodeToolConfig);
7
7
  private embeddingsTool;
8
8
  initialize(): Promise<void>;
9
9
  _tool_add_documents(request: oRequest): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"langchain-memory.vector-store.tool.d.ts","sourceRoot":"","sources":["../../../src/vector-store/langchain-memory.vector-store.tool.ts"],"names":[],"mapp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AAC,GAAG,CAAC;IAIvD,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;CAO5D"}
@@ -1,8 +1,9 @@
1
- import { oVirtualTool, ToolResult } from '@olane/o-tool';
1
+ import { ToolResult } from '@olane/o-tool';
2
2
  import { oRequest } from '@olane/o-core';
3
- import { oToolConfig } from '@olane/o-tool';
4
- export declare abstract class VectorMemoryStorageTool extends oVirtualTool {
5
- constructor(config: oToolConfig);
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ import { oNodeToolConfig } from '@olane/o-node';
5
+ export declare abstract class VectorMemoryStorageTool extends oLaneTool {
6
+ constructor(config: oNodeToolConfig);
6
7
  abstract _tool_search_similar(request: oRequest): Promise<ToolResult>;
7
8
  abstract _tool_add_documents(request: oRequest): Promise<ToolResult>;
8
9
  abstract _tool_delete_documents(request: oRequest): Promise<ToolResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"vector-memory.tool.d.ts","sourceRoot":"","sources":["../../../src/vector-store/vector-memory.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,8BAAsB,uBAAwB,SAAQ,YAAY;gBACpD,MAAM,EAAE,WAAW;IAS/B,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACrE,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACpE,QAAQ,CAAC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACvE,QAAQ,CAAC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CACxE"}
1
+ {"version":3,"file":"vector-memory.tool.d.ts","sourceRoot":"","sources":["../../../src/vector-store/vector-memory.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,8BAAsB,uBAAwB,SAAQ,SAAS;gBACjD,MAAM,EAAE,eAAe;IASnC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACrE,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACpE,QAAQ,CAAC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IACvE,QAAQ,CAAC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CACxE"}
@@ -1,7 +1,7 @@
1
- import { oVirtualTool } from '@olane/o-tool';
2
1
  import { oAddress } from '@olane/o-core';
3
2
  import { VECTOR_STORE_PARAMS } from './methods/vector-store.methods.js';
4
- export class VectorMemoryStorageTool extends oVirtualTool {
3
+ import { oLaneTool } from '@olane/o-lane';
4
+ export class VectorMemoryStorageTool extends oLaneTool {
5
5
  constructor(config) {
6
6
  super({
7
7
  ...config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-tool-registry",
3
- "version": "0.6.13",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -55,13 +55,14 @@
55
55
  "typescript": "5.4.5"
56
56
  },
57
57
  "peerDependencies": {
58
- "@olane/o-config": "^0.6.12",
59
- "@olane/o-core": "^0.6.12",
60
- "@olane/o-intelligence": "^0.6.7",
61
- "@olane/o-mcp": "^0.6.7",
62
- "@olane/o-protocol": "^0.6.12",
63
- "@olane/o-tool": "^0.6.12",
64
- "@olane/o-tools-common": "^0.6.12"
58
+ "@olane/o-config": "^0.7.1",
59
+ "@olane/o-core": "^0.7.1",
60
+ "@olane/o-intelligence": "^0.7.1",
61
+ "@olane/o-lane": "^0.7.1",
62
+ "@olane/o-mcp": "^0.7.1",
63
+ "@olane/o-protocol": "^0.7.1",
64
+ "@olane/o-tool": "^0.7.1",
65
+ "@olane/o-tools-common": "^0.7.1"
65
66
  },
66
67
  "dependencies": {
67
68
  "@huggingface/transformers": "^3.5.2",