@@ -68,7 +68,7 @@ async def create_session(
68
68
if state :
69
69
session_json_dict ['session_state' ] = state
70
70
71
- api_response = await self .api_client .async_request (
71
+ api_response = self .api_client .request (
72
72
http_method = 'POST' ,
73
73
path = f'reasoningEngines/{ reasoning_engine_id } /sessions' ,
74
74
request_dict = session_json_dict ,
@@ -80,7 +80,7 @@ async def create_session(
80
80
81
81
max_retry_attempt = 5
82
82
while max_retry_attempt >= 0 :
83
- lro_response = await self .api_client .async_request (
83
+ lro_response = self .api_client .request (
84
84
http_method = 'GET' ,
85
85
path = f'operations/{ operation_id } ' ,
86
86
request_dict = {},
@@ -93,7 +93,7 @@ async def create_session(
93
93
max_retry_attempt -= 1
94
94
95
95
# Get session resource
96
- get_session_api_response = await self .api_client .async_request (
96
+ get_session_api_response = self .api_client .request (
97
97
http_method = 'GET' ,
98
98
path = f'reasoningEngines/{ reasoning_engine_id } /sessions/{ session_id } ' ,
99
99
request_dict = {},
@@ -123,7 +123,7 @@ async def get_session(
123
123
reasoning_engine_id = _parse_reasoning_engine_id (app_name )
124
124
125
125
# Get session resource
126
- get_session_api_response = await self .api_client .async_request (
126
+ get_session_api_response = self .api_client .request (
127
127
http_method = 'GET' ,
128
128
path = f'reasoningEngines/{ reasoning_engine_id } /sessions/{ session_id } ' ,
129
129
request_dict = {},
@@ -141,7 +141,7 @@ async def get_session(
141
141
last_update_time = update_timestamp ,
142
142
)
143
143
144
- list_events_api_response = await self .api_client .async_request (
144
+ list_events_api_response = self .api_client .request (
145
145
http_method = 'GET' ,
146
146
path = f'reasoningEngines/{ reasoning_engine_id } /sessions/{ session_id } /events' ,
147
147
request_dict = {},
@@ -206,7 +206,7 @@ async def delete_session(
206
206
self , * , app_name : str , user_id : str , session_id : str
207
207
) -> None :
208
208
reasoning_engine_id = _parse_reasoning_engine_id (app_name )
209
- await self .api_client .async_request (
209
+ self .api_client .request (
210
210
http_method = 'DELETE' ,
211
211
path = f'reasoningEngines/{ reasoning_engine_id } /sessions/{ session_id } ' ,
212
212
request_dict = {},
@@ -218,7 +218,7 @@ async def append_event(self, session: Session, event: Event) -> Event:
218
218
await super ().append_event (session = session , event = event )
219
219
220
220
reasoning_engine_id = _parse_reasoning_engine_id (session .app_name )
221
- await self .api_client .async_request (
221
+ self .api_client .request (
222
222
http_method = 'POST' ,
223
223
path = f'reasoningEngines/{ reasoning_engine_id } /sessions/{ session .id } :appendEvent' ,
224
224
request_dict = _convert_event_to_json (event ),
0 commit comments