callCeiling method

  1. @override
Duration callCeiling(
  1. GlintSession session,
  2. Map<String, Object?> args
)
override

How long a call with args may run before glint cancels it and answers toolTimeout; tools that wait on request raise it.

Implementation

@override
Duration callCeiling(GlintSession session, Map<String, Object?> args) {
  final length = (args['text'] as String?)?.runes.length ?? 0;
  return GlintTool.actionCeiling(session, args, extraMs: length * (40 + (argInt(args, 'keyDelayMs') ?? 0)));
}