responseFormat property

ResponseFormat? get responseFormat

The format every reply must have, read from session (core's structured session carries it), so a chat over a session that enforces nothing cannot claim one. Null before the chat has a session.

Implementation

ResponseFormat? get responseFormat {
  final current = _sessionIfAny;
  return current == null ? null : responseFormatOf(current);
}