11from abc import ABC , abstractmethod
2- from typing import List , Dict , Any
2+ from typing import List , Dict , Any , Union
33
44from ai21 .models .maestro .run import RunResponse
55from ai21 .types import NOT_GIVEN , NotGiven
@@ -15,8 +15,8 @@ def create(
1515 * ,
1616 input : List [Dict [str , str ]],
1717 verbose : bool = False ,
18- output_type : Dict [str , Any ] | NotGiven = NOT_GIVEN ,
19- include : List [str ] | NotGiven = NOT_GIVEN ,
18+ output_type : Union [ Dict [str , Any ], NotGiven ] = NOT_GIVEN ,
19+ include : Union [ List [str ], NotGiven ] = NOT_GIVEN ,
2020 structured_rag_enabled : bool = False ,
2121 dynamic_planning_enabled : bool = False ,
2222 response_language : str = "english" ,
@@ -32,8 +32,8 @@ def create_and_poll(
3232 * ,
3333 input : List [Dict [str , str ]],
3434 verbose : bool = False ,
35- output_type : Dict [str , Any ] | NotGiven = NOT_GIVEN ,
36- include : List [str ] | NotGiven = NOT_GIVEN ,
35+ output_type : Union [ Dict [str , Any ], NotGiven ] = NOT_GIVEN ,
36+ include : Union [ List [str ], NotGiven ] = NOT_GIVEN ,
3737 structured_rag_enabled : bool = False ,
3838 dynamic_planning_enabled : bool = False ,
3939 response_language : str = "english" ,
0 commit comments