@squidcloud/client 1.0.294 → 1.0.295

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.
@@ -0,0 +1,38 @@
1
+ import { AiContextMetadata } from './ai-chatbot.public-types';
2
+ /**
3
+ * Represents a category in the matchmaker.
4
+ * The description is used by the AI to extract features from the content.
5
+ */
6
+ export interface MmCategory {
7
+ id: string;
8
+ description: string;
9
+ }
10
+ /**
11
+ * Represents a matchmaker entity for a given category.
12
+ * The metadata is used to filter the entities when finding matches.
13
+ */
14
+ export interface MmEntity {
15
+ id: string;
16
+ content: string;
17
+ categoryId: string;
18
+ metadata: AiContextMetadata;
19
+ }
20
+ /**
21
+ * Represents a matchmaker.
22
+ * The description is used to describe the matchmaker and by the AI to better understand the domain.
23
+ * The two categories represent the two types of entities that can be matched.
24
+ */
25
+ export interface MmMatchMaker {
26
+ id: string;
27
+ description: string;
28
+ firstCategory: MmCategory;
29
+ secondCategory: MmCategory;
30
+ }
31
+ /**
32
+ * Represents a matchmaker entity match. A high score indicates a good match.
33
+ */
34
+ export interface MmEntityMatch extends MmEntity {
35
+ /** The score of the match between 0 and 100 - 100 represents best match. */
36
+ score: number;
37
+ reasoning: string;
38
+ }
@@ -1,6 +1,6 @@
1
- import { MmEntity, MmEntityMatch, MmMatchMaker } from '../../internal-common/src/types/ai-matchmaking.types';
2
1
  import { RpcManager } from './rpc.manager';
3
2
  import { AiContextMetadataFilter } from '../../internal-common/src/public-types/ai-chatbot.public-types';
3
+ import { MmEntity, MmEntityMatch, MmMatchMaker } from '../../internal-common/src/public-types/ai-matchmaking.types';
4
4
  /**
5
5
  * Client for the AI Matchmaking service. This service allows you to create matchmakers and insert entities into them.
6
6
  * The service will then find matches for the entities.
@@ -23,3 +23,4 @@ export * from '../../internal-common/src/public-types/socket.public-types';
23
23
  export * from '../../internal-common/src/public-types/storage.types';
24
24
  export * from '../../internal-common/src/public-types/typescript.public-types';
25
25
  export * from '../../internal-common/src/public-types/extraction.public-types';
26
+ export * from '../../internal-common/src/public-types/ai-matchmaking.types';
@@ -1 +1 @@
1
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.294";
1
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.295";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.294",
3
+ "version": "1.0.295",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",