Bus UI Assistant
AIDropController validates assistant attachment intake.
Use the drop controller helpers when assistant composer UI receives browser drop events and must convert them into safe attachment references.
Public API
| Package | github.com/busdk/bus-ui/pkg/ui |
|---|---|
| Context | DropZoneContext |
| Accept | AcceptDropItems |
| Decode | DecodeDropItems |
Example
accepted, err := ui.AcceptDropItems(ui.DropZoneContext{
MaxFiles: 5,
}, browserItems)
