@olane/o-tool-registry 0.6.12 → 0.7.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/README.md +0 -253
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -0
- package/dist/auth/interfaces/index.d.ts +4 -0
- package/dist/auth/interfaces/index.d.ts.map +1 -0
- package/dist/auth/interfaces/index.js +3 -0
- package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +9 -0
- package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/oAuth-tokens.interface.js +1 -0
- package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +8 -0
- package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/oAuth-user-info.interface.js +1 -0
- package/dist/auth/interfaces/oAuth.config.d.ts +14 -0
- package/dist/auth/interfaces/oAuth.config.d.ts.map +1 -0
- package/dist/auth/interfaces/oAuth.config.js +1 -0
- package/dist/auth/methods/auth.methods.d.ts +5 -0
- package/dist/auth/methods/auth.methods.d.ts.map +1 -0
- package/dist/auth/methods/auth.methods.js +302 -0
- package/dist/auth/oAuth.tool.d.ts +20 -0
- package/dist/auth/oAuth.tool.d.ts.map +1 -0
- package/dist/auth/oAuth.tool.js +419 -0
- package/dist/embeddings/embeddings.tool.d.ts +6 -0
- package/dist/embeddings/embeddings.tool.d.ts.map +1 -0
- package/dist/embeddings/embeddings.tool.js +11 -0
- package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +9 -0
- package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +1 -0
- package/dist/embeddings/huggingface-text-embeddings.tool.js +21 -0
- package/dist/embeddings/index.d.ts +4 -0
- package/dist/embeddings/index.d.ts.map +1 -0
- package/dist/embeddings/index.js +3 -0
- package/dist/embeddings/methods/text-embeddings.method.d.ts +5 -0
- package/dist/embeddings/methods/text-embeddings.method.d.ts.map +1 -0
- package/dist/embeddings/methods/text-embeddings.method.js +29 -0
- package/dist/embeddings/text-embeddings.tool.d.ts +9 -0
- package/dist/embeddings/text-embeddings.tool.d.ts.map +1 -0
- package/dist/embeddings/text-embeddings.tool.js +13 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/init.d.ts +3 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +36 -0
- package/dist/intelligence/anthropic-intelligence.tool.d.ts +224 -0
- package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/anthropic-intelligence.tool.js +477 -0
- package/dist/intelligence/gemini-intelligence.tool.d.ts +29 -0
- package/dist/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/gemini-intelligence.tool.js +267 -0
- package/dist/intelligence/index.d.ts +6 -0
- package/dist/intelligence/index.d.ts.map +1 -0
- package/dist/intelligence/index.js +5 -0
- package/dist/intelligence/intelligence.tool.d.ts +11 -0
- package/dist/intelligence/intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/intelligence.tool.js +120 -0
- package/dist/intelligence/methods/intelligence.methods.d.ts +5 -0
- package/dist/intelligence/methods/intelligence.methods.d.ts.map +1 -0
- package/dist/intelligence/methods/intelligence.methods.js +98 -0
- package/dist/intelligence/ollama-intelligence.tool.d.ts +36 -0
- package/dist/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/ollama-intelligence.tool.js +312 -0
- package/dist/intelligence/openai-intelligence.tool.d.ts +30 -0
- package/dist/intelligence/openai-intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/openai-intelligence.tool.js +255 -0
- package/dist/intelligence/perplexity-intelligence.tool.d.ts +27 -0
- package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
- package/dist/intelligence/perplexity-intelligence.tool.js +309 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/mcp-bridge.tool.d.ts +12 -0
- package/dist/mcp/mcp-bridge.tool.d.ts.map +1 -0
- package/dist/mcp/mcp-bridge.tool.js +126 -0
- package/dist/mcp/mcp.tool.d.ts +14 -0
- package/dist/mcp/mcp.tool.d.ts.map +1 -0
- package/dist/mcp/mcp.tool.js +83 -0
- package/dist/mcp/methods/mcp-bridge.methods.d.ts +5 -0
- package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
- package/dist/mcp/methods/mcp-bridge.methods.js +79 -0
- package/dist/nlp/index.d.ts +2 -0
- package/dist/nlp/index.d.ts.map +1 -0
- package/dist/nlp/index.js +1 -0
- package/dist/nlp/methods/nlp.methods.d.ts +5 -0
- package/dist/nlp/methods/nlp.methods.d.ts.map +1 -0
- package/dist/nlp/methods/nlp.methods.js +15 -0
- package/dist/nlp/ner.tool.d.ts +7 -0
- package/dist/nlp/ner.tool.d.ts.map +1 -0
- package/dist/nlp/ner.tool.js +25 -0
- package/dist/src/auth/oAuth.tool.d.ts +4 -3
- package/dist/src/auth/oAuth.tool.d.ts.map +1 -1
- package/dist/src/auth/oAuth.tool.js +2 -2
- package/dist/src/embeddings/embeddings.tool.d.ts +4 -4
- package/dist/src/embeddings/embeddings.tool.d.ts.map +1 -1
- package/dist/src/embeddings/embeddings.tool.js +2 -2
- package/dist/src/embeddings/text-embeddings.tool.d.ts +4 -4
- package/dist/src/embeddings/text-embeddings.tool.d.ts.map +1 -1
- package/dist/src/embeddings/text-embeddings.tool.js +2 -2
- package/dist/src/init.d.ts +2 -2
- package/dist/src/init.d.ts.map +1 -1
- package/dist/src/init.js +8 -4
- package/dist/src/intelligence/anthropic-intelligence.tool.d.ts +224 -0
- package/dist/src/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/anthropic-intelligence.tool.js +477 -0
- package/dist/src/intelligence/gemini-intelligence.tool.d.ts +29 -0
- package/dist/src/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/gemini-intelligence.tool.js +267 -0
- package/dist/src/intelligence/index.d.ts +6 -0
- package/dist/src/intelligence/index.d.ts.map +1 -0
- package/dist/src/intelligence/index.js +5 -0
- package/dist/src/intelligence/intelligence.tool.d.ts +11 -0
- package/dist/src/intelligence/intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/intelligence.tool.js +134 -0
- package/dist/src/intelligence/methods/intelligence.methods.d.ts +5 -0
- package/dist/src/intelligence/methods/intelligence.methods.d.ts.map +1 -0
- package/dist/src/intelligence/methods/intelligence.methods.js +132 -0
- package/dist/src/intelligence/ollama-intelligence.tool.d.ts +36 -0
- package/dist/src/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/ollama-intelligence.tool.js +312 -0
- package/dist/src/intelligence/openai-intelligence.tool.d.ts +30 -0
- package/dist/src/intelligence/openai-intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/openai-intelligence.tool.js +255 -0
- package/dist/src/intelligence/perplexity-intelligence.tool.d.ts +28 -0
- package/dist/src/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
- package/dist/src/intelligence/perplexity-intelligence.tool.js +310 -0
- package/dist/src/mcp/index.d.ts +3 -0
- package/dist/src/mcp/index.d.ts.map +1 -0
- package/dist/src/mcp/index.js +2 -0
- package/dist/src/mcp/mcp-bridge.tool.d.ts +12 -0
- package/dist/src/mcp/mcp-bridge.tool.d.ts.map +1 -0
- package/dist/src/mcp/mcp-bridge.tool.js +107 -0
- package/dist/src/mcp/mcp.tool.d.ts +15 -0
- package/dist/src/mcp/mcp.tool.d.ts.map +1 -0
- package/dist/src/mcp/mcp.tool.js +85 -0
- package/dist/src/mcp/methods/mcp-bridge.methods.d.ts +5 -0
- package/dist/src/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
- package/dist/src/mcp/methods/mcp-bridge.methods.js +58 -0
- package/dist/src/nlp/ner.tool.d.ts +5 -3
- package/dist/src/nlp/ner.tool.d.ts.map +1 -1
- package/dist/src/nlp/ner.tool.js +2 -2
- package/dist/src/vector-store/langchain-memory.vector-store.tool.d.ts +2 -2
- package/dist/src/vector-store/langchain-memory.vector-store.tool.d.ts.map +1 -1
- package/dist/src/vector-store/vector-memory.tool.d.ts +5 -4
- package/dist/src/vector-store/vector-memory.tool.d.ts.map +1 -1
- package/dist/src/vector-store/vector-memory.tool.js +2 -2
- package/dist/vector-store/index.d.ts +3 -0
- package/dist/vector-store/index.d.ts.map +1 -0
- package/dist/vector-store/index.js +2 -0
- package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +14 -0
- package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +1 -0
- package/dist/vector-store/langchain-memory.vector-store.tool.js +60 -0
- package/dist/vector-store/methods/vector-store.methods.d.ts +5 -0
- package/dist/vector-store/methods/vector-store.methods.d.ts.map +1 -0
- package/dist/vector-store/methods/vector-store.methods.js +60 -0
- package/dist/vector-store/vector-memory.tool.d.ts +11 -0
- package/dist/vector-store/vector-memory.tool.d.ts.map +1 -0
- package/dist/vector-store/vector-memory.tool.js +13 -0
- package/package.json +9 -8
|
@@ -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
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"oAuth.tool.d.ts","sourceRoot":"","sources":["../../../src/auth/oAuth.tool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,SAAU,SAAQ,SAAS;IACtC,OAAO,CAAC,YAAY,CAAuC;IAC3D,OAAO,CAAC,UAAU,CAAuC;gBAE7C,MAAM,EAAE,eAAe;IAW7B,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,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAgD/C,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAoF7C,kBAAkB,CAAC,OAAO,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
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
export declare class EmbeddingsTool extends
|
|
4
|
-
constructor(config:
|
|
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":"
|
|
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
|
-
|
|
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 {
|
|
4
|
-
|
|
5
|
-
|
|
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,
|
|
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
|
-
|
|
3
|
+
import { oLaneTool } from '@olane/o-lane';
|
|
4
|
+
export class TextEmbeddingsTool extends oLaneTool {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
super({
|
|
7
7
|
...config,
|
package/dist/src/init.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const initRegistryTools: (oNode:
|
|
1
|
+
import { oLaneTool } from '@olane/o-lane';
|
|
2
|
+
export declare const initRegistryTools: (oNode: oLaneTool) => Promise<void>;
|
|
3
3
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/src/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
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.
|
|
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.
|
|
36
|
+
await Promise.all(tools.map(async (tool) => {
|
|
37
|
+
await tool.start();
|
|
34
38
|
oNode.addChildNode(tool);
|
|
35
|
-
});
|
|
39
|
+
}));
|
|
36
40
|
};
|
|
@@ -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"}
|