@dataclouder/ngx-lessons 0.1.7 → 0.1.9

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
@@ -371,6 +371,7 @@ declare class DcLessonCardComponent implements OnInit {
371
371
  }
372
372
 
373
373
  declare class DCLessonListComponent extends EntityBaseListComponent<ILesson> implements OnDestroy, AfterViewInit {
374
+ userService: UserService;
374
375
  customCardComponent?: Type<DcLessonCardComponent>;
375
376
  customFilters: ICustomFilter[];
376
377
  protected entityCommunicationService: DefaultLessonsService;
@@ -404,7 +405,6 @@ declare class DCLessonEditorComponent extends EntityBaseFormComponent<ILesson> {
404
405
  version: _angular_forms.FormControl<string>;
405
406
  id: _angular_forms.FormControl<string>;
406
407
  name: _angular_forms.FormControl<string>;
407
- title: _angular_forms.FormControl<string>;
408
408
  description: _angular_forms.FormControl<string>;
409
409
  format: _angular_forms.FormControl<string>;
410
410
  lang: _angular_forms.FormControl<string>;
@@ -504,19 +504,33 @@ declare class LessonRendererService {
504
504
  }
505
505
 
506
506
  declare class LessonConversationService {
507
- private readonly lessonAIService;
508
- private readonly userDataExchange;
507
+ lessonsService: DefaultLessonsService;
508
+ userService: UserService;
509
509
  conversationSettings: i0.WritableSignal<IConversationSettings>;
510
510
  conversationFlow: i0.WritableSignal<IConversationFlow>;
511
511
  evalAgentTask: i0.WritableSignal<SimpleAgentTask>;
512
512
  initializeConversationFlow(): void;
513
513
  startAI(lesson: ILesson, settings: ILessonsSettings): Promise<IConversationSettings | null>;
514
+ /**
515
+ * Builds the scenario prompt string based on lesson content and user info.
516
+ * @param lessonText The extracted text content of the lesson.
517
+ * @param userInformationPrompt The formatted string containing user details.
518
+ * @returns The complete scenario prompt string.
519
+ */
520
+ private _buildLessonInstructionsPrompt;
521
+ /**
522
+ * Generates conversation settings for a lesson, using the lesson scenario as the initial prompt.
523
+ * @param lesson The lesson data.
524
+ * @returns An IConversationSettings object configured for the lesson scenario.
525
+ */
526
+ generateConversationSettingsForLesson(lesson: ILesson, settings: ILessonsSettings): Promise<IConversationSettings | null>;
514
527
  static ɵfac: i0.ɵɵFactoryDeclaration<LessonConversationService, never>;
515
528
  static ɵprov: i0.ɵɵInjectableDeclaration<LessonConversationService>;
516
529
  }
517
530
 
518
531
  interface ILessonsSettings {
519
532
  additionalPrompt: string;
533
+ instructionsPrompt: string;
520
534
  }
521
535
  declare class DCLessonRendererComponent implements OnInit {
522
536
  lessonInput: i0.InputSignal<ILesson>;
@@ -683,7 +697,7 @@ declare class CourseFormComponent extends EntityBaseFormComponent<ICourse> {
683
697
  declare class CourseListComponent extends PaginationBase implements OnInit {
684
698
  private toastService;
685
699
  private courseService;
686
- private userService;
700
+ userService: UserService;
687
701
  private cdr;
688
702
  viewType: 'table' | 'card';
689
703
  readonly onlyView: i0.InputSignal<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-lessons",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",