inlineWidget property

Map? get inlineWidget

Inline widget tool call requested by this choice, when present.

Implementation

Map? get inlineWidget {
  final dynamic function =
      (message?['tool_calls'] as List?)?.firstOrNull?['function'];
  if (function == null) {
    return null;
  }

  return {function['name']: function['arguments']};
}