@memberjunction/aiengine 6.2.0-edge.0 → 6.2.0-edge.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 CHANGED
@@ -13,7 +13,7 @@ graph TD
13
13
  style AIE fill:#2d8659,stroke:#1a5c3a,color:#fff
14
14
 
15
15
  subgraph "Server Capabilities"
16
- LLM["LLM Execution<br/>ChatCompletion, Classify, Summarize"]
16
+ LLM["LLM Execution<br/>ChatCompletion"]
17
17
  style LLM fill:#7c5295,stroke:#563a6b,color:#fff
18
18
 
19
19
  EMB["Embedding Services<br/>Agent & Action Embeddings"]
@@ -85,21 +85,10 @@ const result = await AIEngine.Instance.ChatCompletion({
85
85
  model: 'gpt-4',
86
86
  messages: [{ role: 'user', content: 'Explain quantum computing' }]
87
87
  });
88
-
89
- // Summarize text
90
- const summary = await AIEngine.Instance.SummarizeText({
91
- model: 'gpt-4',
92
- text: longDocument
93
- });
94
-
95
- // Classify text
96
- const classification = await AIEngine.Instance.ClassifyText({
97
- model: 'gpt-4',
98
- text: inputText,
99
- categories: ['positive', 'negative', 'neutral']
100
- });
101
88
  ```
102
89
 
90
+ Classification and summarization run as AI Prompts through `AIPromptRunner` (`@memberjunction/ai-prompts`).
91
+
103
92
  #### Semantic Search
104
93
 
105
94
  Find agents, actions, notes, and examples using vector similarity:
@@ -77,7 +77,7 @@ export declare class AIEngine extends BaseSingleton<AIEngine> implements IStartu
77
77
  private _agentBaseCatalogCache;
78
78
  private _agentCatalogListenerSetUp;
79
79
  /** Entities whose change must coarse-invalidate the agent base-catalog cache (lowercased). */
80
- private static readonly AgentCatalogInvalidatingEntities;
80
+ private static readonly agentCatalogInvalidatingEntities;
81
81
  /**
82
82
  * Returns the cached base catalog for an agent, or undefined if not yet built / invalidated.
83
83
  * The shape is defined and typed by the caller (BaseAgent) — pass the concrete type as `T`.
package/dist/AIEngine.js CHANGED
@@ -107,7 +107,7 @@ let AIEngine = class AIEngine extends BaseSingleton {
107
107
  return `${modelId}|${hash}`;
108
108
  }
109
109
  /** Entities whose change must coarse-invalidate the agent base-catalog cache (lowercased). */
110
- static { this.AgentCatalogInvalidatingEntities = new Set([
110
+ static { this.agentCatalogInvalidatingEntities = new Set([
111
111
  'ai agents',
112
112
  'mj: ai agent actions',
113
113
  'mj: ai agent relationships',
@@ -146,7 +146,7 @@ let AIEngine = class AIEngine extends BaseSingleton {
146
146
  const e = event.args;
147
147
  if (e?.type === 'save' || e?.type === 'delete' || e?.type === 'remote-invalidate') {
148
148
  const name = e.baseEntity?.EntityInfo?.Name?.toLowerCase().trim();
149
- if (name && AIEngine_1.AgentCatalogInvalidatingEntities.has(name)) {
149
+ if (name && AIEngine_1.agentCatalogInvalidatingEntities.has(name)) {
150
150
  this.ClearAgentBaseCatalogCache();
151
151
  }
152
152
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/aiengine",
3
3
  "type": "module",
4
- "version": "6.2.0-edge.0",
4
+ "version": "6.2.0-edge.1",
5
5
  "description": "MemberJunction: AI Engine Package - handles automatic execution of Entity AI Actions using AI Models",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,15 +11,15 @@
11
11
  "author": "MemberJunction.com",
12
12
  "license": "BUSL-1.1",
13
13
  "dependencies": {
14
- "@memberjunction/actions-base": "6.2.0-edge.0",
15
- "@memberjunction/ai": "6.2.0-edge.0",
16
- "@memberjunction/ai-core-plus": "6.2.0-edge.0",
17
- "@memberjunction/ai-engine-base": "6.2.0-edge.0",
18
- "@memberjunction/ai-vectors-memory": "6.2.0-edge.0",
19
- "@memberjunction/core": "6.2.0-edge.0",
20
- "@memberjunction/core-entities": "6.2.0-edge.0",
21
- "@memberjunction/global": "6.2.0-edge.0",
22
- "@memberjunction/storage": "6.2.0-edge.0",
14
+ "@memberjunction/actions-base": "6.2.0-edge.1",
15
+ "@memberjunction/ai": "6.2.0-edge.1",
16
+ "@memberjunction/ai-core-plus": "6.2.0-edge.1",
17
+ "@memberjunction/ai-engine-base": "6.2.0-edge.1",
18
+ "@memberjunction/ai-vectors-memory": "6.2.0-edge.1",
19
+ "@memberjunction/core": "6.2.0-edge.1",
20
+ "@memberjunction/core-entities": "6.2.0-edge.1",
21
+ "@memberjunction/global": "6.2.0-edge.1",
22
+ "@memberjunction/storage": "6.2.0-edge.1",
23
23
  "dotenv": "^17.2.4",
24
24
  "rxjs": "^7.8.2"
25
25
  },