createThreadAndRun method
Implementation
Future<ThreadRun?> createThreadAndRun(String assistantId,
[List<Message>? messages]) async {
final result = await _repository.createThreadAndRun(assistantId, messages);
return result.fold(
(l) => null,
(r) => r,
);
}