@dataclouder/ngx-lessons 0.1.7 → 0.1.8
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/index.d.ts
CHANGED
|
@@ -404,7 +404,6 @@ declare class DCLessonEditorComponent extends EntityBaseFormComponent<ILesson> {
|
|
|
404
404
|
version: _angular_forms.FormControl<string>;
|
|
405
405
|
id: _angular_forms.FormControl<string>;
|
|
406
406
|
name: _angular_forms.FormControl<string>;
|
|
407
|
-
title: _angular_forms.FormControl<string>;
|
|
408
407
|
description: _angular_forms.FormControl<string>;
|
|
409
408
|
format: _angular_forms.FormControl<string>;
|
|
410
409
|
lang: _angular_forms.FormControl<string>;
|
|
@@ -504,19 +503,33 @@ declare class LessonRendererService {
|
|
|
504
503
|
}
|
|
505
504
|
|
|
506
505
|
declare class LessonConversationService {
|
|
507
|
-
|
|
508
|
-
private readonly
|
|
506
|
+
lessonsService: DefaultLessonsService;
|
|
507
|
+
private readonly userService;
|
|
509
508
|
conversationSettings: i0.WritableSignal<IConversationSettings>;
|
|
510
509
|
conversationFlow: i0.WritableSignal<IConversationFlow>;
|
|
511
510
|
evalAgentTask: i0.WritableSignal<SimpleAgentTask>;
|
|
512
511
|
initializeConversationFlow(): void;
|
|
513
512
|
startAI(lesson: ILesson, settings: ILessonsSettings): Promise<IConversationSettings | null>;
|
|
513
|
+
/**
|
|
514
|
+
* Builds the scenario prompt string based on lesson content and user info.
|
|
515
|
+
* @param lessonText The extracted text content of the lesson.
|
|
516
|
+
* @param userInformationPrompt The formatted string containing user details.
|
|
517
|
+
* @returns The complete scenario prompt string.
|
|
518
|
+
*/
|
|
519
|
+
private _buildLessonInstructionsPrompt;
|
|
520
|
+
/**
|
|
521
|
+
* Generates conversation settings for a lesson, using the lesson scenario as the initial prompt.
|
|
522
|
+
* @param lesson The lesson data.
|
|
523
|
+
* @returns An IConversationSettings object configured for the lesson scenario.
|
|
524
|
+
*/
|
|
525
|
+
generateConversationSettingsForLesson(lesson: ILesson, settings: ILessonsSettings): Promise<IConversationSettings | null>;
|
|
514
526
|
static ɵfac: i0.ɵɵFactoryDeclaration<LessonConversationService, never>;
|
|
515
527
|
static ɵprov: i0.ɵɵInjectableDeclaration<LessonConversationService>;
|
|
516
528
|
}
|
|
517
529
|
|
|
518
530
|
interface ILessonsSettings {
|
|
519
531
|
additionalPrompt: string;
|
|
532
|
+
instructionsPrompt: string;
|
|
520
533
|
}
|
|
521
534
|
declare class DCLessonRendererComponent implements OnInit {
|
|
522
535
|
lessonInput: i0.InputSignal<ILesson>;
|