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) => args['op'] == 'wait'
    ? GlintTool.ceilingFor(((argNum(args, 'timeoutSec') ?? 120) * 1000).round())
    : const Duration(seconds: 90);