88 StudioResource ,
99)
1010from ai21 .models .responses .route_response import RouteResponse , ListRouteResponse
11- from ai21 .types import NotGiven
11+ from ai21 .types import NotGiven , NOT_GIVEN
1212
1313
1414class AssistantRoutes (StudioResource , BaseRoutes ):
@@ -36,7 +36,7 @@ def list(
3636 self ,
3737 * ,
3838 assistant_id : str ,
39- name : str | NotGiven = NotGiven ,
39+ name : str | NotGiven = NOT_GIVEN ,
4040 ) -> ListRouteResponse :
4141 params = self ._create_body (name = name )
4242
@@ -57,8 +57,8 @@ def modify(
5757 * ,
5858 assistant_id : str ,
5959 route_id : str ,
60- description : str | NotGiven = NotGiven ,
61- examples : List [str ] | NotGiven = NotGiven ,
60+ description : str | NotGiven = NOT_GIVEN ,
61+ examples : List [str ] | NotGiven = NOT_GIVEN ,
6262 ) -> RouteResponse :
6363 body = self ._create_body (
6464 description = description ,
@@ -105,7 +105,7 @@ async def list(
105105 self ,
106106 * ,
107107 assistant_id : str ,
108- name : str | NotGiven = NotGiven ,
108+ name : str | NotGiven = NOT_GIVEN ,
109109 ) -> ListRouteResponse :
110110 params = self ._create_body (name = name )
111111
@@ -128,8 +128,8 @@ async def modify(
128128 * ,
129129 assistant_id : str ,
130130 route_id : str ,
131- description : str | NotGiven = NotGiven ,
132- examples : List [str ] | NotGiven = NotGiven ,
131+ description : str | NotGiven = NOT_GIVEN ,
132+ examples : List [str ] | NotGiven = NOT_GIVEN ,
133133 ) -> RouteResponse :
134134 body = self ._create_body (
135135 description = description ,
0 commit comments