From 2e411ddf856ca020374c327ac57a2323df919d2a Mon Sep 17 00:00:00 2001 From: Tatsuo Nomura Date: Sat, 27 Apr 2024 18:03:58 +0800 Subject: [PATCH] Add "run_id" parameter to the listMesages API. --- lib/src/messages.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/messages.dart b/lib/src/messages.dart index 26b56d9..87f1017 100644 --- a/lib/src/messages.dart +++ b/lib/src/messages.dart @@ -33,6 +33,7 @@ class Messages { String order = 'desc', String? after, String? before, + String? runId, }) { String url = _client.apiUrl + kThread + @@ -44,6 +45,9 @@ class Messages { if (after != null && after.isNotEmpty) { url += '&after=$after'; } + if (runId != null && runId.isNotEmpty) { + url += '&run_id=$runId'; + } return _client.get( url,