File size: 660 Bytes
68d7816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { ITodoListTool } from '#/features/todo/tools/todo-list/todo-list';
import { TodoListTool } from '#/features/todo/tools/todo-list/todoListTool';
import { Feature } from '#/features/feature';
import { registerFeature } from '#/features/featureRegistry';
import { AgentTodoService, IAgentTodoService } from '#/features/todo/todoService';

export class TodoFeature extends Feature {
  static override readonly name = 'todo';

  constructor() {
    super();
    this.contributeAgentService(IAgentTodoService, AgentTodoService);
    this.contributeTool(ITodoListTool, TodoListTool, { name: 'TodoList', domain: 'todo' });
  }
}

registerFeature(TodoFeature);