@@ -10,30 +10,23 @@ import '../model/catalog.dart';
1010import '../model/tools.dart' ;
1111import '../model/ui_models.dart' ;
1212import '../primitives/simple_items.dart' ;
13- import 'genui_configuration.dart' ;
1413
1514/// An [AiTool] for adding or updating a UI surface.
1615///
1716/// This tool allows the AI to create a new UI surface or update an existing
1817/// one with a new definition.
1918class SurfaceUpdateTool extends AiTool <JsonMap > {
2019 /// Creates an [SurfaceUpdateTool] .
21- SurfaceUpdateTool ({
22- required this .handleMessage,
23- required Catalog catalog,
24- required this .configuration,
25- }) : super (
26- name: 'surfaceUpdate' ,
27- description: 'Updates a surface with a new set of components.' ,
28- parameters: A2uiSchemas .surfaceUpdateSchema (catalog),
29- );
20+ SurfaceUpdateTool ({required this .handleMessage, required Catalog catalog})
21+ : super (
22+ name: 'surfaceUpdate' ,
23+ description: 'Updates a surface with a new set of components.' ,
24+ parameters: A2uiSchemas .surfaceUpdateSchema (catalog),
25+ );
3026
3127 /// The callback to invoke when adding or updating a surface.
3228 final void Function (A2uiMessage message) handleMessage;
3329
34- /// The configuration of the Gen UI system.
35- final GenUiConfiguration configuration;
36-
3730 @override
3831 Future <JsonMap > invoke (JsonMap args) async {
3932 final surfaceId = args[surfaceIdKey] as String ;
0 commit comments