@rimori/client 2.5.5-next.5 → 2.5.5-next.6
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.
|
@@ -157,6 +157,8 @@ interface ToolParameter {
|
|
|
157
157
|
enum?: string[];
|
|
158
158
|
/** Whether the parameter is optional */
|
|
159
159
|
optional?: boolean;
|
|
160
|
+
/** Whether the parameter is an array */
|
|
161
|
+
isArray?: boolean;
|
|
160
162
|
}
|
|
161
163
|
/**
|
|
162
164
|
* Union type defining all possible parameter types for LLM tools.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ObjectTool } from '../../fromRimori/PluginTypes';
|
|
1
2
|
import { SupabaseClient } from '../CommunicationHandler';
|
|
2
3
|
import { RimoriClient } from '../RimoriClient';
|
|
3
4
|
export type SharedContent<T> = BasicSharedContent & T;
|
|
@@ -28,6 +29,7 @@ export declare class SharedContentController {
|
|
|
28
29
|
* then falls back to AI generation if nothing suitable is found.
|
|
29
30
|
* @param params - Parameters object
|
|
30
31
|
* @param params.table - Name of the shared content table (without plugin prefix)
|
|
32
|
+
* @param params.skillType - Type of skill this content is for (grammar, reading, writing, speaking, listening, understanding)
|
|
31
33
|
* @param params.placeholders - Placeholders for instructions template for AI generation (e.g., {topicAreas: "history"})
|
|
32
34
|
* @param params.filter - Filter to find existing content:
|
|
33
35
|
* - `exact`: Match field value exactly (e.g., {topic_category: {filterType: "exact", value: "history"}})
|
|
@@ -40,12 +42,14 @@ export declare class SharedContentController {
|
|
|
40
42
|
*/
|
|
41
43
|
getNew<T>(params: {
|
|
42
44
|
table: string;
|
|
45
|
+
skillType: 'grammar' | 'reading' | 'writing' | 'speaking' | 'listening' | 'understanding';
|
|
43
46
|
placeholders?: Record<string, string>;
|
|
44
47
|
filter?: Record<string, {
|
|
45
48
|
filterType: 'rag' | 'exact' | 'exclude';
|
|
46
49
|
value: string;
|
|
47
50
|
}>;
|
|
48
51
|
customFields?: Record<string, string | number | boolean | null>;
|
|
52
|
+
tool?: ObjectTool;
|
|
49
53
|
skipDbSave?: boolean;
|
|
50
54
|
isPrivate?: boolean;
|
|
51
55
|
}): Promise<SharedContent<T>>;
|
|
@@ -17,6 +17,7 @@ export class SharedContentController {
|
|
|
17
17
|
* then falls back to AI generation if nothing suitable is found.
|
|
18
18
|
* @param params - Parameters object
|
|
19
19
|
* @param params.table - Name of the shared content table (without plugin prefix)
|
|
20
|
+
* @param params.skillType - Type of skill this content is for (grammar, reading, writing, speaking, listening, understanding)
|
|
20
21
|
* @param params.placeholders - Placeholders for instructions template for AI generation (e.g., {topicAreas: "history"})
|
|
21
22
|
* @param params.filter - Filter to find existing content:
|
|
22
23
|
* - `exact`: Match field value exactly (e.g., {topic_category: {filterType: "exact", value: "history"}})
|
|
@@ -35,9 +36,11 @@ export class SharedContentController {
|
|
|
35
36
|
headers: { 'Content-Type': 'application/json' },
|
|
36
37
|
body: JSON.stringify({
|
|
37
38
|
tableName: params.table,
|
|
39
|
+
skillType: params.skillType,
|
|
38
40
|
placeholders: params.placeholders,
|
|
39
41
|
filter: params.filter,
|
|
40
42
|
customFields: params.customFields,
|
|
43
|
+
tool: params.tool,
|
|
41
44
|
options: {
|
|
42
45
|
skipDbSave: params.skipDbSave,
|
|
43
46
|
isPrivate: params.isPrivate,
|