@almadar/llm 2.40.0 → 2.41.0

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/dist/index.d.ts CHANGED
@@ -273,6 +273,16 @@ type LLMServiceActions = {
273
273
  keyPoints: string[];
274
274
  };
275
275
  };
276
+ /** Generate embeddings for an array of texts. */
277
+ embed: {
278
+ params: {
279
+ texts: string[];
280
+ model?: string;
281
+ };
282
+ result: {
283
+ embeddings: number[][];
284
+ };
285
+ };
276
286
  };
277
287
  /**
278
288
  * The full service contract for the LLM service.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/llm",
3
- "version": "2.40.0",
3
+ "version": "2.41.0",
4
4
  "description": "Multi-provider LLM client with rate limiting, token tracking, structured outputs, and continuation handling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,10 +46,10 @@
46
46
  "@almadar/logger": "^1.11.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@almadar/core": "^10.56.0"
49
+ "@almadar/core": "^10.66.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@almadar/core": "^10.56.0",
52
+ "@almadar/core": "^10.66.0",
53
53
  "@almadar/eslint-plugin": "^2.15.0",
54
54
  "@types/node": "^22.0.0",
55
55
  "@typescript-eslint/parser": "8.65.0",
package/src/contracts.ts CHANGED
@@ -97,6 +97,17 @@ export type LLMServiceActions = {
97
97
  keyPoints: string[];
98
98
  };
99
99
  };
100
+
101
+ /** Generate embeddings for an array of texts. */
102
+ embed: {
103
+ params: {
104
+ texts: string[];
105
+ model?: string;
106
+ };
107
+ result: {
108
+ embeddings: number[][];
109
+ };
110
+ };
100
111
  };
101
112
 
102
113
  /**