From de56d1c697f1dfdf2409502444f040e333ac90d7 Mon Sep 17 00:00:00 2001 From: etang Date: Sat, 20 Sep 2025 14:38:29 +0300 Subject: [PATCH] feat: return error object --- src/types/maestro/MaestroRunResponse.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/types/maestro/MaestroRunResponse.ts b/src/types/maestro/MaestroRunResponse.ts index 33d28fd..c7702ab 100644 --- a/src/types/maestro/MaestroRunResponse.ts +++ b/src/types/maestro/MaestroRunResponse.ts @@ -32,6 +32,11 @@ type DataSources = { web_search?: WebSearchResult[]; }; +type ErrorObject = { + message: string; +}; + + export interface MaestroRunResponse { /* The ID of the maestro run for polling the status. @@ -50,4 +55,8 @@ export interface MaestroRunResponse { Detailed results for each requirement. */ requirements_result: MaestroRunRequirementResult; + /* + Error object, present if the run failed. + */ + error?: ErrorObject | null; }