Skip to content

Commit ac2e69e

Browse files
authored
Merge pull request #32 from grunde/main
feat: return error object
2 parents c69977e + de56d1c commit ac2e69e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/types/maestro/MaestroRunResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ type DataSources = {
3232
web_search?: WebSearchResult[];
3333
};
3434

35+
type ErrorObject = {
36+
message: string;
37+
};
38+
39+
3540
export interface MaestroRunResponse {
3641
/*
3742
The ID of the maestro run for polling the status.
@@ -50,4 +55,8 @@ export interface MaestroRunResponse {
5055
Detailed results for each requirement.
5156
*/
5257
requirements_result: MaestroRunRequirementResult;
58+
/*
59+
Error object, present if the run failed.
60+
*/
61+
error?: ErrorObject | null;
5362
}

0 commit comments

Comments
 (0)