sarufi_io library

File-based helpers for building bots from JSON/YAML config on disk.

This library imports dart:io and is therefore not supported on Flutter web. Import it only where a filesystem is available (mobile, desktop, server, CLI):

import 'package:sarufi/sarufi.dart';
import 'package:sarufi/sarufi_io.dart';

final sarufi = Sarufi('YOUR_API_KEY');
final bot = await sarufi.createFromFile(
  intents: 'data/intents.yaml',
  flow: 'data/flow.yaml',
  metadata: 'data/metadata.json',
);

Extensions

SarufiFileConfig on Sarufi
Adds .json / .yaml file loaders to Sarufi.