ai_bridge_genui 1.0.0 copy "ai_bridge_genui: ^1.0.0" to clipboard
ai_bridge_genui: ^1.0.0 copied to clipboard

Server-Driven Generative UI framework for flutter_ai_bridge. Dynamically render native Flutter widgets from LLM tool calls using strict JSON Schema.

ai_bridge_genui #

Server-Driven Generative UI framework for ai_bridge_core — dynamically render native Flutter widgets from LLM tool calls using strict JSON Schema.

Features #

  • GenUIWidgetRegistry — map string names to Flutter WidgetBuilder functions
  • GenUITool — exposes the widget registry to the LLM as a callable tool with JSON Schema validation
  • AIGeneratedView — intercepts AI tool calls and renders native Flutter widgets inline

Usage #

import 'package:ai_bridge_genui/ai_bridge_genui.dart';

// Register your widgets
final registry = GenUIWidgetRegistry();
registry.register(RegisteredGenUIWidget(
  name: 'weather_card',
  description: 'A weather forecast card',
  parametersSchema: {'type': 'object', 'properties': {'city': {'type': 'string'}}},
  builder: (ctx, data) => Text('Weather in ${data["city"]}'),
));

// Give the registry to your agent as a tool
final tool = GenUITool(registry: registry);

License #

MIT

0
likes
150
points
60
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Server-Driven Generative UI framework for flutter_ai_bridge. Dynamically render native Flutter widgets from LLM tool calls using strict JSON Schema.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ai_bridge_core, flutter

More

Packages that depend on ai_bridge_genui