@olane/o-tool-registry 1.0.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 (147) hide show
  1. package/README.md +253 -0
  2. package/dist/apple/apple.tool.d.ts +70 -0
  3. package/dist/apple/apple.tool.d.ts.map +1 -0
  4. package/dist/apple/apple.tool.js +12 -0
  5. package/dist/apple/apple.tool.js.map +1 -0
  6. package/dist/apple/index.d.ts +1 -0
  7. package/dist/apple/index.d.ts.map +1 -0
  8. package/dist/apple/index.js +1 -0
  9. package/dist/apple/index.js.map +1 -0
  10. package/dist/apple/notes.tool.d.ts +78 -0
  11. package/dist/apple/notes.tool.d.ts.map +1 -0
  12. package/dist/apple/notes.tool.js +216 -0
  13. package/dist/apple/notes.tool.js.map +1 -0
  14. package/dist/auth/index.d.ts +4 -0
  15. package/dist/auth/index.d.ts.map +1 -0
  16. package/dist/auth/index.js +4 -0
  17. package/dist/auth/index.js.map +1 -0
  18. package/dist/auth/interfaces/index.d.ts +4 -0
  19. package/dist/auth/interfaces/index.d.ts.map +1 -0
  20. package/dist/auth/interfaces/index.js +4 -0
  21. package/dist/auth/interfaces/index.js.map +1 -0
  22. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +9 -0
  23. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +1 -0
  24. package/dist/auth/interfaces/oAuth-tokens.interface.js +2 -0
  25. package/dist/auth/interfaces/oAuth-tokens.interface.js.map +1 -0
  26. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +8 -0
  27. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +1 -0
  28. package/dist/auth/interfaces/oAuth-user-info.interface.js +2 -0
  29. package/dist/auth/interfaces/oAuth-user-info.interface.js.map +1 -0
  30. package/dist/auth/interfaces/oAuth.config.d.ts +14 -0
  31. package/dist/auth/interfaces/oAuth.config.d.ts.map +1 -0
  32. package/dist/auth/interfaces/oAuth.config.js +2 -0
  33. package/dist/auth/interfaces/oAuth.config.js.map +1 -0
  34. package/dist/auth/methods/auth.methods.d.ts +5 -0
  35. package/dist/auth/methods/auth.methods.d.ts.map +1 -0
  36. package/dist/auth/methods/auth.methods.js +303 -0
  37. package/dist/auth/methods/auth.methods.js.map +1 -0
  38. package/dist/auth/oAuth.tool.d.ts +20 -0
  39. package/dist/auth/oAuth.tool.d.ts.map +1 -0
  40. package/dist/auth/oAuth.tool.js +410 -0
  41. package/dist/auth/oAuth.tool.js.map +1 -0
  42. package/dist/embeddings/embeddings.tool.d.ts +70 -0
  43. package/dist/embeddings/embeddings.tool.d.ts.map +1 -0
  44. package/dist/embeddings/embeddings.tool.js +12 -0
  45. package/dist/embeddings/embeddings.tool.js.map +1 -0
  46. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +9 -0
  47. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +1 -0
  48. package/dist/embeddings/huggingface-text-embeddings.tool.js +23 -0
  49. package/dist/embeddings/huggingface-text-embeddings.tool.js.map +1 -0
  50. package/dist/embeddings/index.d.ts +4 -0
  51. package/dist/embeddings/index.d.ts.map +1 -0
  52. package/dist/embeddings/index.js +4 -0
  53. package/dist/embeddings/index.js.map +1 -0
  54. package/dist/embeddings/methods/text-embeddings.method.d.ts +5 -0
  55. package/dist/embeddings/methods/text-embeddings.method.d.ts.map +1 -0
  56. package/dist/embeddings/methods/text-embeddings.method.js +30 -0
  57. package/dist/embeddings/methods/text-embeddings.method.js.map +1 -0
  58. package/dist/embeddings/text-embeddings.tool.d.ts +72 -0
  59. package/dist/embeddings/text-embeddings.tool.d.ts.map +1 -0
  60. package/dist/embeddings/text-embeddings.tool.js +14 -0
  61. package/dist/embeddings/text-embeddings.tool.js.map +1 -0
  62. package/dist/index.d.ts +7 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +7 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/init.d.ts +3 -0
  67. package/dist/init.d.ts.map +1 -0
  68. package/dist/init.js +37 -0
  69. package/dist/init.js.map +1 -0
  70. package/dist/intelligence/anthropic-intelligence.tool.d.ts +258 -0
  71. package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
  72. package/dist/intelligence/anthropic-intelligence.tool.js +447 -0
  73. package/dist/intelligence/anthropic-intelligence.tool.js.map +1 -0
  74. package/dist/intelligence/gemini-intelligence.tool.d.ts +78 -0
  75. package/dist/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
  76. package/dist/intelligence/gemini-intelligence.tool.js +254 -0
  77. package/dist/intelligence/gemini-intelligence.tool.js.map +1 -0
  78. package/dist/intelligence/index.d.ts +6 -0
  79. package/dist/intelligence/index.d.ts.map +1 -0
  80. package/dist/intelligence/index.js +6 -0
  81. package/dist/intelligence/index.js.map +1 -0
  82. package/dist/intelligence/intelligence.tool.d.ts +76 -0
  83. package/dist/intelligence/intelligence.tool.d.ts.map +1 -0
  84. package/dist/intelligence/intelligence.tool.js +109 -0
  85. package/dist/intelligence/intelligence.tool.js.map +1 -0
  86. package/dist/intelligence/methods/intelligence.methods.d.ts +5 -0
  87. package/dist/intelligence/methods/intelligence.methods.d.ts.map +1 -0
  88. package/dist/intelligence/methods/intelligence.methods.js +99 -0
  89. package/dist/intelligence/methods/intelligence.methods.js.map +1 -0
  90. package/dist/intelligence/ollama-intelligence.tool.d.ts +79 -0
  91. package/dist/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
  92. package/dist/intelligence/ollama-intelligence.tool.js +288 -0
  93. package/dist/intelligence/ollama-intelligence.tool.js.map +1 -0
  94. package/dist/intelligence/openai-intelligence.tool.d.ts +79 -0
  95. package/dist/intelligence/openai-intelligence.tool.d.ts.map +1 -0
  96. package/dist/intelligence/openai-intelligence.tool.js +242 -0
  97. package/dist/intelligence/openai-intelligence.tool.js.map +1 -0
  98. package/dist/intelligence/perplexity-intelligence.tool.d.ts +76 -0
  99. package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
  100. package/dist/intelligence/perplexity-intelligence.tool.js +292 -0
  101. package/dist/intelligence/perplexity-intelligence.tool.js.map +1 -0
  102. package/dist/mcp/index.d.ts +3 -0
  103. package/dist/mcp/index.d.ts.map +1 -0
  104. package/dist/mcp/index.js +3 -0
  105. package/dist/mcp/index.js.map +1 -0
  106. package/dist/mcp/mcp-bridge.tool.d.ts +76 -0
  107. package/dist/mcp/mcp-bridge.tool.d.ts.map +1 -0
  108. package/dist/mcp/mcp-bridge.tool.js +115 -0
  109. package/dist/mcp/mcp-bridge.tool.js.map +1 -0
  110. package/dist/mcp/mcp.tool.d.ts +85 -0
  111. package/dist/mcp/mcp.tool.d.ts.map +1 -0
  112. package/dist/mcp/mcp.tool.js +80 -0
  113. package/dist/mcp/mcp.tool.js.map +1 -0
  114. package/dist/mcp/methods/mcp-bridge.methods.d.ts +5 -0
  115. package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
  116. package/dist/mcp/methods/mcp-bridge.methods.js +52 -0
  117. package/dist/mcp/methods/mcp-bridge.methods.js.map +1 -0
  118. package/dist/nlp/index.d.ts +2 -0
  119. package/dist/nlp/index.d.ts.map +1 -0
  120. package/dist/nlp/index.js +2 -0
  121. package/dist/nlp/index.js.map +1 -0
  122. package/dist/nlp/methods/nlp.methods.d.ts +5 -0
  123. package/dist/nlp/methods/nlp.methods.d.ts.map +1 -0
  124. package/dist/nlp/methods/nlp.methods.js +16 -0
  125. package/dist/nlp/methods/nlp.methods.js.map +1 -0
  126. package/dist/nlp/ner.tool.d.ts +71 -0
  127. package/dist/nlp/ner.tool.d.ts.map +1 -0
  128. package/dist/nlp/ner.tool.js +26 -0
  129. package/dist/nlp/ner.tool.js.map +1 -0
  130. package/dist/tsconfig.tsbuildinfo +1 -0
  131. package/dist/vector-store/index.d.ts +3 -0
  132. package/dist/vector-store/index.d.ts.map +1 -0
  133. package/dist/vector-store/index.js +3 -0
  134. package/dist/vector-store/index.js.map +1 -0
  135. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +14 -0
  136. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +1 -0
  137. package/dist/vector-store/langchain-memory.vector-store.tool.js +64 -0
  138. package/dist/vector-store/langchain-memory.vector-store.tool.js.map +1 -0
  139. package/dist/vector-store/methods/vector-store.methods.d.ts +5 -0
  140. package/dist/vector-store/methods/vector-store.methods.d.ts.map +1 -0
  141. package/dist/vector-store/methods/vector-store.methods.js +61 -0
  142. package/dist/vector-store/methods/vector-store.methods.js.map +1 -0
  143. package/dist/vector-store/vector-memory.tool.d.ts +75 -0
  144. package/dist/vector-store/vector-memory.tool.d.ts.map +1 -0
  145. package/dist/vector-store/vector-memory.tool.js +14 -0
  146. package/dist/vector-store/vector-memory.tool.js.map +1 -0
  147. package/package.json +90 -0
@@ -0,0 +1,72 @@
1
+ import { oAddress, oRequest, oVirtualNode } from '@olane/o-core';
2
+ import { oToolConfig } from '@olane/o-tool';
3
+ declare const TextEmbeddingsTool_base: (new (...args: any[]) => {
4
+ validateToolCall(oRequest: oRequest): boolean;
5
+ handleProtocol(address: oAddress): Promise<void>;
6
+ initialize(): Promise<void>;
7
+ use(address: oAddress, data: {
8
+ [key: string]: unknown;
9
+ }, config?: import("@olane/o-core").UseOptions): Promise<import("@olane/o-core").oResponse>;
10
+ handleStream(streamData: import("@olane/o-config/dist").IncomingStreamData): Promise<void>;
11
+ execute(req: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
12
+ run(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
13
+ myTools(): string[];
14
+ myToolParams(tool: string): Record<string, any>;
15
+ callMyTool(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").ToolResult>;
16
+ index(): Promise<{
17
+ provider: string;
18
+ summary: string;
19
+ } | {
20
+ summary: string | null;
21
+ provider?: undefined;
22
+ }>;
23
+ _tool_index_network(request: oRequest): Promise<import("@olane/o-tool").ToolResult>;
24
+ whoami(): Promise<{
25
+ tools: string[];
26
+ description: string;
27
+ }>;
28
+ findMissingParams(methodName: string, params: any): import("@olane/o-protocol/dist").oParameter[];
29
+ readonly config: import("@olane/o-core").CoreConfig;
30
+ p2pNode: import("@olane/o-config/dist").Libp2p;
31
+ logger: import("@olane/o-core").Logger;
32
+ networkConfig: import("@olane/o-config/dist").Libp2pConfig;
33
+ address: oAddress;
34
+ readonly staticAddress: oAddress;
35
+ peerId: import("@olane/o-config/dist").PeerId;
36
+ state: import("@olane/o-core").NodeState;
37
+ errors: Error[];
38
+ connectionManager: import("@olane/o-core").oConnectionManager;
39
+ leaders: import("@olane/o-config/dist").Multiaddr[];
40
+ addressResolution: import("@olane/o-core").oAddressResolution;
41
+ readonly description: string;
42
+ dependencies: import("@olane/o-core").oDependency[];
43
+ methods: {
44
+ [key: string]: import("@olane/o-protocol/dist").oMethod;
45
+ };
46
+ successCount: number;
47
+ errorCount: number;
48
+ get type(): import("@olane/o-core").NodeType;
49
+ get transports(): string[];
50
+ get parent(): oAddress | null;
51
+ get parentTransports(): import("@olane/o-config/dist").Multiaddr[];
52
+ getTransports(address: oAddress): import("@olane/o-config/dist").Multiaddr[];
53
+ handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
54
+ translateAddress(addressWithLeaderTransports: oAddress): Promise<{
55
+ nextHopAddress: oAddress;
56
+ targetAddress: oAddress;
57
+ }>;
58
+ advertiseToNetwork(): Promise<void>;
59
+ connectToParent(): Promise<void>;
60
+ register(): Promise<void>;
61
+ connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
62
+ teardown(): Promise<void>;
63
+ start(): Promise<void>;
64
+ stop(): Promise<void>;
65
+ }) & typeof oVirtualNode;
66
+ export declare abstract class TextEmbeddingsTool extends TextEmbeddingsTool_base {
67
+ constructor(config: oToolConfig);
68
+ abstract _tool_embed_documents(request: oRequest): Promise<number[][]>;
69
+ abstract _tool_embed_query(request: oRequest): Promise<number[]>;
70
+ }
71
+ export {};
72
+ //# sourceMappingURL=text-embeddings.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-embeddings.tool.d.ts","sourceRoot":"","sources":["../../src/embeddings/text-embeddings.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;;;;;;aAexB,CAAC;;iCAEuE,CAAC;iCAAoE,CAAC;;;wCAAiK,CAAC;;;;;;gBAA4L,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAbjgB,8BAAsB,kBAAmB,SAAQ,uBAAmB;gBACtD,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"}
@@ -0,0 +1,14 @@
1
+ import { oTool } from '@olane/o-tool';
2
+ import { oAddress, oVirtualNode } from '@olane/o-core';
3
+ import { TEXT_EMBEDDINGS_PARAMS } from './methods/text-embeddings.method';
4
+ export class TextEmbeddingsTool extends oTool(oVirtualNode) {
5
+ constructor(config) {
6
+ super({
7
+ ...config,
8
+ address: new oAddress('o://embeddings-text'),
9
+ methods: TEXT_EMBEDDINGS_PARAMS,
10
+ description: config.description || 'Tool to generate text embeddings',
11
+ });
12
+ }
13
+ }
14
+ //# sourceMappingURL=text-embeddings.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-embeddings.tool.js","sourceRoot":"","sources":["../../src/embeddings/text-embeddings.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAY,YAAY,EAAE,MAAM,eAAe,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,OAAgB,kBAAmB,SAAQ,KAAK,CAAC,YAAY,CAAC;IAClE,YAAY,MAAmB;QAC7B,KAAK,CAAC;YACJ,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,QAAQ,CAAC,qBAAqB,CAAC;YAC5C,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,kCAAkC;SACtE,CAAC,CAAC;IACL,CAAC;CAIF"}
@@ -0,0 +1,7 @@
1
+ export * from './intelligence';
2
+ export * from './init';
3
+ export * from './nlp';
4
+ export * from './vector-store';
5
+ export * from './mcp';
6
+ export * from './auth';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from './intelligence';
2
+ export * from './init';
3
+ export * from './nlp';
4
+ export * from './vector-store';
5
+ export * from './mcp';
6
+ export * from './auth';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
package/dist/init.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { oNode } from '@olane/o-core';
2
+ export declare const initRegistryTools: (oNode: oNode) => void;
3
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,SA8B7C,CAAC"}
package/dist/init.js ADDED
@@ -0,0 +1,37 @@
1
+ import { NERTool } from './nlp/ner.tool';
2
+ import { HuggingfaceTextEmbeddingsTool } from './embeddings';
3
+ import { LangchainMemoryVectorStoreTool } from './vector-store';
4
+ import { IntelligenceTool } from './intelligence';
5
+ import { McpBridgeTool } from './mcp';
6
+ export const initRegistryTools = (oNode) => {
7
+ const params = {
8
+ parent: oNode.address,
9
+ leader: oNode.address,
10
+ };
11
+ const tools = [
12
+ new NERTool({
13
+ name: 'ner',
14
+ ...params,
15
+ }),
16
+ new IntelligenceTool({
17
+ name: 'intelligence',
18
+ ...params,
19
+ }),
20
+ new HuggingfaceTextEmbeddingsTool({
21
+ name: 'embeddings-text',
22
+ ...params,
23
+ }),
24
+ new LangchainMemoryVectorStoreTool({
25
+ name: 'vector-store',
26
+ ...params,
27
+ }),
28
+ new McpBridgeTool({
29
+ name: 'mcp',
30
+ ...params,
31
+ }),
32
+ ];
33
+ tools.forEach((tool) => {
34
+ oNode.addChildNode(tool);
35
+ });
36
+ };
37
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE;IAChD,MAAM,MAAM,GAAG;QACb,MAAM,EAAE,KAAK,CAAC,OAAO;QACrB,MAAM,EAAE,KAAK,CAAC,OAAO;KACtB,CAAC;IACF,MAAM,KAAK,GAAG;QACZ,IAAI,OAAO,CAAC;YACV,IAAI,EAAE,KAAK;YACX,GAAG,MAAM;SACV,CAAC;QACF,IAAI,gBAAgB,CAAC;YACnB,IAAI,EAAE,cAAc;YACpB,GAAG,MAAM;SACV,CAAC;QACF,IAAI,6BAA6B,CAAC;YAChC,IAAI,EAAE,iBAAiB;YACvB,GAAG,MAAM;SACV,CAAC;QACF,IAAI,8BAA8B,CAAC;YACjC,IAAI,EAAE,cAAc;YACpB,GAAG,MAAM;SACV,CAAC;QACF,IAAI,aAAa,CAAC;YAChB,IAAI,EAAE,KAAK;YACX,GAAG,MAAM;SACV,CAAC;KACH,CAAC;IACF,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,258 @@
1
+ import { oAddress, oRequest, oVirtualNode } from '@olane/o-core';
2
+ import { oToolConfig, ToolResult } from '@olane/o-tool';
3
+ declare const AnthropicIntelligenceTool_base: (new (...args: any[]) => {
4
+ validateToolCall(oRequest: oRequest): boolean;
5
+ handleProtocol(address: oAddress): Promise<void>;
6
+ initialize(): Promise<void>;
7
+ use(address: oAddress, data: {
8
+ [key: string]: unknown;
9
+ }, config?: import("@olane/o-core").UseOptions): Promise<import("@olane/o-core").oResponse>;
10
+ handleStream(streamData: import("@olane/o-config/dist").IncomingStreamData): Promise<void>;
11
+ execute(req: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
12
+ run(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
13
+ myTools(): string[];
14
+ myToolParams(tool: string): Record<string, any>;
15
+ callMyTool(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<ToolResult>;
16
+ index(): Promise<{
17
+ provider: string;
18
+ summary: string;
19
+ } | {
20
+ summary: string | null;
21
+ provider?: undefined;
22
+ }>;
23
+ _tool_index_network(request: oRequest): Promise<ToolResult>;
24
+ whoami(): Promise<{
25
+ tools: string[];
26
+ description: string;
27
+ }>;
28
+ findMissingParams(methodName: string, params: any): import("@olane/o-protocol/dist").oParameter[];
29
+ readonly config: import("@olane/o-core").CoreConfig;
30
+ p2pNode: import("@olane/o-config/dist").Libp2p;
31
+ logger: import("@olane/o-core").Logger;
32
+ networkConfig: import("@olane/o-config/dist").Libp2pConfig;
33
+ address: oAddress;
34
+ readonly staticAddress: oAddress;
35
+ peerId: import("@olane/o-config/dist").PeerId;
36
+ state: import("@olane/o-core").NodeState;
37
+ errors: Error[];
38
+ connectionManager: import("@olane/o-core").oConnectionManager;
39
+ leaders: import("@olane/o-config/dist").Multiaddr[];
40
+ addressResolution: import("@olane/o-core").oAddressResolution;
41
+ readonly description: string;
42
+ dependencies: import("@olane/o-core").oDependency[];
43
+ methods: {
44
+ [key: string]: import("@olane/o-protocol/dist").oMethod;
45
+ };
46
+ successCount: number;
47
+ errorCount: number;
48
+ get type(): import("@olane/o-core").NodeType;
49
+ get transports(): string[];
50
+ get parent(): oAddress | null;
51
+ get parentTransports(): import("@olane/o-config/dist").Multiaddr[];
52
+ getTransports(address: oAddress): import("@olane/o-config/dist").Multiaddr[];
53
+ handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
54
+ translateAddress(addressWithLeaderTransports: oAddress): Promise<{
55
+ nextHopAddress: oAddress;
56
+ targetAddress: oAddress;
57
+ }>;
58
+ advertiseToNetwork(): Promise<void>;
59
+ connectToParent(): Promise<void>;
60
+ register(): Promise<void>;
61
+ connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
62
+ teardown(): Promise<void>;
63
+ start(): Promise<void>;
64
+ stop(): Promise<void>;
65
+ }) & typeof oVirtualNode;
66
+ export declare class AnthropicIntelligenceTool extends AnthropicIntelligenceTool_base {
67
+ private defaultModel;
68
+ constructor(config: oToolConfig);
69
+ _tool_completion(request: oRequest): Promise<ToolResult>;
70
+ _tool_generate(request: oRequest): Promise<ToolResult>;
71
+ _tool_list_models(request: oRequest): Promise<ToolResult>;
72
+ _tool_model_info(request: oRequest): Promise<ToolResult>;
73
+ _tool_status(request: oRequest): Promise<ToolResult>;
74
+ _params_completion(): {
75
+ type: string;
76
+ properties: {
77
+ model: {
78
+ type: string;
79
+ description: string;
80
+ default: string;
81
+ };
82
+ messages: {
83
+ type: string;
84
+ description: string;
85
+ items: {
86
+ type: string;
87
+ properties: {
88
+ role: {
89
+ type: string;
90
+ enum: string[];
91
+ description: string;
92
+ };
93
+ content: {
94
+ oneOf: ({
95
+ type: string;
96
+ description: string;
97
+ items?: undefined;
98
+ } | {
99
+ type: string;
100
+ description: string;
101
+ items: {
102
+ type: string;
103
+ properties: {
104
+ type: {
105
+ type: string;
106
+ enum: string[];
107
+ };
108
+ text: {
109
+ type: string;
110
+ };
111
+ source: {
112
+ type: string;
113
+ properties: {
114
+ type: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ media_type: {
119
+ type: string;
120
+ };
121
+ data: {
122
+ type: string;
123
+ };
124
+ };
125
+ };
126
+ };
127
+ };
128
+ })[];
129
+ };
130
+ };
131
+ required: string[];
132
+ };
133
+ };
134
+ system: {
135
+ type: string;
136
+ description: string;
137
+ };
138
+ max_tokens: {
139
+ type: string;
140
+ description: string;
141
+ default: number;
142
+ };
143
+ temperature: {
144
+ type: string;
145
+ description: string;
146
+ minimum: number;
147
+ maximum: number;
148
+ };
149
+ top_p: {
150
+ type: string;
151
+ description: string;
152
+ minimum: number;
153
+ maximum: number;
154
+ };
155
+ top_k: {
156
+ type: string;
157
+ description: string;
158
+ minimum: number;
159
+ };
160
+ stop_sequences: {
161
+ type: string;
162
+ description: string;
163
+ items: {
164
+ type: string;
165
+ };
166
+ };
167
+ metadata: {
168
+ type: string;
169
+ description: string;
170
+ properties: {
171
+ user_id: {
172
+ type: string;
173
+ description: string;
174
+ };
175
+ };
176
+ };
177
+ };
178
+ required: string[];
179
+ };
180
+ _params_generate(): {
181
+ type: string;
182
+ properties: {
183
+ model: {
184
+ type: string;
185
+ description: string;
186
+ default: string;
187
+ };
188
+ prompt: {
189
+ type: string;
190
+ description: string;
191
+ };
192
+ system: {
193
+ type: string;
194
+ description: string;
195
+ };
196
+ max_tokens: {
197
+ type: string;
198
+ description: string;
199
+ default: number;
200
+ };
201
+ temperature: {
202
+ type: string;
203
+ description: string;
204
+ minimum: number;
205
+ maximum: number;
206
+ };
207
+ top_p: {
208
+ type: string;
209
+ description: string;
210
+ minimum: number;
211
+ maximum: number;
212
+ };
213
+ top_k: {
214
+ type: string;
215
+ description: string;
216
+ minimum: number;
217
+ };
218
+ stop_sequences: {
219
+ type: string;
220
+ description: string;
221
+ items: {
222
+ type: string;
223
+ };
224
+ };
225
+ metadata: {
226
+ type: string;
227
+ description: string;
228
+ properties: {
229
+ user_id: {
230
+ type: string;
231
+ description: string;
232
+ };
233
+ };
234
+ };
235
+ };
236
+ required: string[];
237
+ };
238
+ _params_list_models(): {
239
+ type: string;
240
+ properties: {};
241
+ };
242
+ _params_model_info(): {
243
+ type: string;
244
+ properties: {
245
+ model: {
246
+ type: string;
247
+ description: string;
248
+ default: string;
249
+ };
250
+ };
251
+ };
252
+ _params_status(): {
253
+ type: string;
254
+ properties: {};
255
+ };
256
+ }
257
+ export {};
258
+ //# 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,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAS,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;aA2BtC,CAAC;;iCAUb,CAAC;iCAKV,CAAC;;;wCASI,CAAC;;;;;;gBASR,CAAF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,qBAAa,yBAA0B,SAAQ,8BAAmB;IAChE,OAAO,CAAC,YAAY,CAA4B;gBAEpC,MAAM,EAAE,WAAW;IAczB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAuExD,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAiFtD,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA8CzD,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAsDxD,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA2C1D,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkHlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgEhB,mBAAmB;;;;IAUnB,kBAAkB;;;;;;;;;;IAgBlB,cAAc;;;;CAMf"}