Skip to content

Commit 6e480b0

Browse files
committed
wip
1 parent d3feade commit 6e480b0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • ai21/clients/common/agents

ai21/clients/common/agents/run.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABC, abstractmethod
2-
from typing import List, Dict, Any
2+
from typing import List, Dict, Any, Union
33

44
from ai21.models.maestro.run import RunResponse
55
from 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

Comments
 (0)