loadConversation method

Future<void> loadConversation(
  1. String conversationId
)

Load conversation

Implementation

Future<void> loadConversation(String conversationId) async {
  if (_client == null) {
    _setError('Client not initialized');
    return;
  }

  try {
    _setLoading(true);
    _currentConversation = await _client!.getConversation(conversationId);
    _messages.clear();
    _error = null;
    notifyListeners();
  } catch (e) {
    _setError('Failed to load conversation: $e');
  } finally {
    _setLoading(false);
  }
}