@@ -280,7 +280,7 @@ async def get_messages(self) -> List[ApiBaseMessage]:
280
280
'id' : message ['message_id' ],
281
281
'timestamp' : message ['timestamp' ],
282
282
'text' : agent_json ['text' ],
283
- 'options' :indexed_task_options
283
+ 'options' : indexed_task_options
284
284
})
285
285
)
286
286
elif is_api_context_json (message_type = agent_json_type , agent_json_text = agent_json ['text' ]):
@@ -289,8 +289,7 @@ async def get_messages(self) -> List[ApiBaseMessage]:
289
289
'id' : message ['message_id' ],
290
290
'timestamp' : message ['timestamp' ],
291
291
'text' : agent_json ['text' ],
292
- 'model' : agent_json ['context_json' ]['digest' ],
293
- 'payload' : agent_json ['context_json' ]['args' ],
292
+ 'payload' : agent_json ['context_json' ],
294
293
})
295
294
)
296
295
elif is_data_request_message (message_type = agent_json_type ):
@@ -352,7 +351,7 @@ async def delete(self):
352
351
endpoint = f"/v1beta1/engine/chat/sessions/{ self .session_id } "
353
352
)
354
353
355
- async def execute_function (self , function_ids : list [str ], objective : str , context : str | None = None ):
354
+ async def execute_function (self , function_ids : list [str ], objective : str , context : str | None = None ):
356
355
await self ._submit_message (
357
356
payload = ApiUserMessageExecuteFunctions .model_validate ({
358
357
"functions" : function_ids ,
@@ -367,7 +366,6 @@ def __init__(self, api_key: str, options: Optional[dict] = None):
367
366
self ._api_base_url = options .get ('api_base_url' ) if options and 'api_base_url' in options else default_api_base_url
368
367
self ._api_key = api_key
369
368
370
-
371
369
####
372
370
# Function groups
373
371
####
@@ -579,4 +577,4 @@ async def share_function_group(
579
577
payload = payload
580
578
)
581
579
logger .debug (f"FG successfully shared: { function_group_id } with { target_user_email } " )
582
- return raw_response
580
+ return raw_response
0 commit comments